Skip to content

Fix HTML to DOM client parser #7

@remarkablemark

Description

@remarkablemark

DOMParser wraps certain elements within <html> and <body>, which breaks client-side parser.

Example:

new DOMParser().parseFromString('<div>', 'text/html');
// #document
//     <html>
//         <head></head>
//         <body>
//             <div></div>
//         </body>
//     </html>

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions