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
Hi,
Some XHTML documents are served with an XML declaration e.g.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head>
In a browser you can access the XML declaration with window.document.firstChild.data e.g. in this case:
window.document.firstChild.data "?xml version="1.0" encoding="UTF-8"?"
But this doesn't seem to work with jsdom (the firstChild is the doctype). Is there a way to access this declaration with jsdom?
The text was updated successfully, but these errors were encountered:
Add proper XML parsing
104406a
Fixes #393. Fixes #651. Fixes #415 (wasn't quite applicable). Fixes #1276.
52f774a
No branches or pull requests
Hi,
Some XHTML documents are served with an XML declaration e.g.
In a browser you can access the XML declaration with window.document.firstChild.data e.g. in this case:
But this doesn't seem to work with jsdom (the firstChild is the doctype). Is there a way to access this declaration with jsdom?
The text was updated successfully, but these errors were encountered: