From ca7b598032eeb347e53f53fa9ab561dcf52e26df Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Thu, 8 Jan 2015 01:51:06 +0300 Subject: [PATCH] Allow dach in html tag names (for upcoming spec changes), related to #32 --- lib/common/html_re.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = //;