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
Setting outerHTML on child of DocumentFragment should not throw error #15575
Setting outerHTML on child of DocumentFragment should not throw error #15575
Conversation
EWS run on previous version of this PR (hash ea6917e) |
@cdumez - We have genuine WPT test failure (domparsing/outerhtml-01.html), we pass, if we return error. Although Firefox passes WPT test plus also don't throw error. |
Figured out locally on how to fix it. We don't need to revert completely but just change 'return' for one specific type of case. Will do updated push tomorrow (late here - 12 AM). |
ea6917e
to
ca7fb05
Compare
EWS run on previous version of this PR (hash ca7fb05) |
ca7fb05
to
cdf5c2e
Compare
EWS run on current version of this PR (hash cdf5c2e) |
@cdumez - Ready for your review now. :-) We are now matching Firefox. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
https://bugs.webkit.org/show_bug.cgi?id=249737 rdar://problem/103746193 Reviewed by Chris Dumez. This patch aligns WebKit with Gecko / Firefox and Web-Spec [1]. In 238774@main, WebKit aligned with behavior for better compatibility but it was not correct and clarified later to not throw error [2]. This PR is essentially revert part of 238774@main with update to align by not throwing error. [1] https://w3c.github.io/DOM-Parsing/#dom-element-outerhtml [2] whatwg/html#8657 * Source/WebCore/dom/Element.cpp: (Element::setOuterHTML): Update to not throw error * LayoutTests/fast/dynamic/outerHTML-no-element.html: Rebaselined * LayoutTests/fast/dynamic/outerHTML-no-element-expected.txt: Rebaselined * LayoutTests/fast/dom/set-outer-html-special-cases.html: Rebaselined * LayoutTests/fast/dom/set-outer-html-special-cases-expected.txt: Rebaselined Canonical link: https://commits.webkit.org/266086@main
cdf5c2e
to
b41af45
Compare
Committed 266086@main (b41af45): https://commits.webkit.org/266086@main Reviewed commits have been landed. Closing PR #15575 and removing active labels. |
b41af45
cdf5c2e