Skip to content

Undocumented breaking change #2399

@TheJaredWilcurt

Description

@TheJaredWilcurt

Going from 10 to 11, or 10 to 12.

-import { parseDOM } from 'htmlparser2';
+import { parseDocument } from 'htmlparser2';

 function parseMarkup (markup) {
   const options = {};
-  const ast = parseDOM(markup, options);
+  const ast = parseDocument(markup, options).children;
   return ast;
 };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions