Closed ediamin closed 2 years ago
Fixes #522
This PR fixes the uncaught DOMException: Not Found Error when the Document class tries to load a source that has no closing head and body tags and contains invalid node in the head tag. For example,
DOMException: Not Found Error
<html><head><meta name="foo" content="bar"><foo></foo><bar></bar>
With this fix, we will get a proper structured html like this,
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="foo" content="bar" /> </head> <body> <foo></foo><bar></bar> </body> </html>
Fixes #522
This PR fixes the uncaught
DOMException: Not Found Error
when the Document class tries to load a source that has no closing head and body tags and contains invalid node in the head tag. For example,With this fix, we will get a proper structured html like this,