diff --git a/src/index.ts b/src/index.ts
index 7b52360..4e3839e 100755
--- a/src/index.ts
+++ b/src/index.ts
@@ -726,7 +726,7 @@ export class Matcher {
}
// https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
-const kMarkupPattern = /)-->|<(\/?)([a-z][-.0-9_a-z]*)\s*([^>]*?)(\/?)>/ig;
+const kMarkupPattern = /)-->|<(\/?)([a-z][-.:0-9_a-z]*)\s*([^>]*?)(\/?)>/ig;
const kAttributePattern = /(^|\s)(id|class)\s*=\s*("([^"]+)"|'([^']+)'|(\S+))/ig;
const kSelfClosingElements = {
area: true,
diff --git a/test/html.js b/test/html.js
index 6a8721e..bdb49ae 100644
--- a/test/html.js
+++ b/test/html.js
@@ -171,6 +171,11 @@ describe('HTML Parser', function () {
});
+ it('should be able to parse namespaces', function () {
+ const namespacedXML = '