We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given:
const xhtml = ` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Test</title> </head> <body> </body> </html> `; const { document } = new JSDOM(xhtml).window; console.log(serialize(document));
the output will something like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Style Test</title> </head> <body> </body></html>
So I now have the xmlns attribute twice in the html-element.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given:
the output will something like this:
So I now have the xmlns attribute twice in the html-element.
The text was updated successfully, but these errors were encountered: