Browse Source

Allow dach in html tag names (for upcoming spec changes), related to #32

pull/41/head
Vitaly Puzrin 10 years ago
parent
commit
ca7b598032
  1. 4
      lib/common/html_re.js

4
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 = /<!--[\s\S]*?-->/;

Loading…
Cancel
Save