diff --git a/lib/common/html_re.js b/lib/common/html_re.js
index 518dee1..c1a49fb 100644
--- a/lib/common/html_re.js
+++ b/lib/common/html_re.js
@@ -36,11 +36,11 @@ var attribute = replace(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)
('attr_value', attr_value)
();
-var open_tag = replace(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)
+var open_tag = replace(/<[A-Za-z][A-Za-z0-9\-]*attribute*\s*\/?>/)
('attribute', attribute)
();
-var close_tag = /<\/[A-Za-z][A-Za-z0-9]*\s*>/;
+var close_tag = /<\/[A-Za-z][A-Za-z0-9\-]*\s*>/;
// That's less strict than http://www.w3.org/TR/html5/syntax.html#comments
// but we do the rest of check in "inline" rule.
var comment = //;