fixed: issue #27

This commit is contained in:
taoqf 2020-02-20 10:08:35 +08:00
parent 8d3cb4c523
commit faa24ed1c3

View file

@ -6,6 +6,7 @@ export { default as CommentNode } from './nodes/comment';
export { default as HTMLElement } from './nodes/html';
export { default as Node } from './nodes/node';
export { default as TextNode } from './nodes/text';
export { default as NodeType } from './nodes/type';
// https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
const kMarkupPattern = /<!--[^]*?(?=-->)-->|<(\/?)([a-z][-.:0-9_a-z]*)\s*([^>]*?)(\/?)>/ig;