mirror of
https://github.com/danbulant/node-html-parser
synced 2026-06-20 15:11:26 +00:00
export nodes
This commit is contained in:
parent
4686ba46b2
commit
7ec7292f84
1 changed files with 3 additions and 1 deletions
|
|
@ -1,9 +1,11 @@
|
||||||
import arr_back from './back';
|
import arr_back from './back';
|
||||||
import CommentNode from './nodes/comment';
|
import CommentNode from './nodes/comment';
|
||||||
export { default as HTMLElement } from './nodes/html';
|
|
||||||
import HTMLElement from './nodes/html';
|
import HTMLElement from './nodes/html';
|
||||||
import TextNode from './nodes/text';
|
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 Node } from './nodes/node';
|
||||||
|
export { default as TextNode } from './nodes/text';
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
|
// https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
|
||||||
const kMarkupPattern = /<!--[^]*?(?=-->)-->|<(\/?)([a-z][-.:0-9_a-z]*)\s*([^>]*?)(\/?)>/ig;
|
const kMarkupPattern = /<!--[^]*?(?=-->)-->|<(\/?)([a-z][-.:0-9_a-z]*)\s*([^>]*?)(\/?)>/ig;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue