Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Make Attr.nodeValue/textContent not nullable
https://bugs.webkit.org/show_bug.cgi?id=249323 rdar://problem/103602803 Reviewed by Chris Dumez. This patch aligns WebKit with Gecko / Firefox and Blink / Chromium. Inspired: https://chromium.googlesource.com/chromium/blink/+/a7c3bb9f22401c30e906a3ec53595247e707de83 This patch updates Attr value for 'nodeVAlue' and 'textContent' to return empty string if null. Web-Spec: https://dom.spec.whatwg.org/#interface-attr * Source/WebCore/dom/Attr.cpp: (Attr::setNodeValue): As per commit message * LayoutTests/fast/dom/coreDOM-element-attribute-js-null.xhtml: Rebaselined * LayoutTests/fast/dom/coreDOM-element-attribute-js-null-expected.txt: Rebaselined Canonical link: https://commits.webkit.org/265769@main
- Loading branch information
1 parent
8e5e36c
commit 2da4c96
Showing
3 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
LayoutTests/fast/dom/coreDOM-element-attribute-js-null-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters