-
-
Notifications
You must be signed in to change notification settings - Fork 2k
LibWeb: Return base Document for non-HTML parses #5557
New issue
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
Conversation
This change causes at least
|
i also run without the commit: I add one observation: let me know |
I had a quick look and there's no regressions in either I'm not sure whether the test is wrong or not, but if the imported test is correct then the failing test simply needs to be rebaselined, as it's testing exactly what you've changed in this PR. |
The HTML specification does not explicitly require a specific return type for parseFromString(), but according to Web Platform TestsDOMParser-parseFromString.html, the expected return value for XML MIME types is a Document—not an XMLDocument.
Ok i change the local test. PS: when i run ./Meta/WPT.sh run dom against the main branch i got the result above. |
The results you got are what I would expect. To compare WPT results this is what I did: > git checkout master
> ./Meta/WPT.sh run --log results.log dom domparsing
> git checkout <this-pr-branch>
> ./Meta/WPT.sh compare results.log dom domparsing |
Thank you. |
The HTML specification does not explicitly require a specific return type for parseFromString(),
but according to Web Platform TestsDOMParser-parseFromString.html, the expected return value for
XML MIME types is a Document—not an XMLDocument.