node-html-parser icon indicating copy to clipboard operation
node-html-parser copied to clipboard

docs: `parse()` always adds a wrapper node [#285]

Open olets opened this issue 10 months ago • 0 comments

  • For #285

Documents the fact that parse() adds a wrapper node.

Currently that's only hinted at in the example

const root = parse('<ul id="list"><li>Hello World</li></ul>');
console.log(root.firstChild.structure);

olets avatar Jan 10 '25 23:01 olets