export nodes

This commit is contained in:
taoqf 2020-02-04 11:21:45 +08:00
parent 4686ba46b2
commit 7ec7292f84

View file

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