|
@ -36,11 +36,11 @@ var attribute = replace(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/) |
|
|
('attr_value', 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) |
|
|
('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
|
|
|
// That's less strict than http://www.w3.org/TR/html5/syntax.html#comments
|
|
|
// but we do the rest of check in "inline" rule.
|
|
|
// but we do the rest of check in "inline" rule.
|
|
|
var comment = /<!--[\s\S]*?-->/; |
|
|
var comment = /<!--[\s\S]*?-->/; |
|
|