WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
249323
Make Attr.value/nodeValue/textContent not nullable
https://bugs.webkit.org/show_bug.cgi?id=249323
Summary
Make Attr.value/nodeValue/textContent not nullable
Ahmad Saleem
Reported
2022-12-14 10:07:23 PST
Hi Team, While going through Blink's commit, I noted another bug where we differ from other browsers: Test Case -
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=3528
Blink Commit -
https://chromium.googlesource.com/chromium/blink/+/a7c3bb9f22401c30e906a3ec53595247e707de83
*** Safari 16.2 / STP 159 *** log: attr.value=null => getAttribute()=="null" log: attr.nodeValue=null => getAttribute()==null log: attr.textContent=null => getAttribute()==null rendering mode: CSS1Compat document has no title *** Chrome Canary 110 & Firefox Nightly 110 *** log: attr.value=null => getAttribute()=="null" log: attr.nodeValue=null => getAttribute()=="" log: attr.textContent=null => getAttribute()=="" rendering mode: CSS1Compat document has no title _____ Just wanted to raise it for future purposes. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2022-12-19 00:57:32 PST
It seems like a good change to merge.
Ahmad Saleem
Comment 2
2022-12-19 01:08:36 PST
(In reply to Ryosuke Niwa from
comment #1
)
> It seems like a good change to merge.
Cool! I will give it a go later today. Thanks for your input! I usually don't touch IDL files (fear of unknown). :-)
Radar WebKit Bug Importer
Comment 3
2022-12-21 10:08:37 PST
<
rdar://problem/103602803
>
Ahmad Saleem
Comment 4
2023-07-04 06:53:04 PDT
void Attr::setNodeValue(const String& value) { const AtomString valueWithoutNull = value.isNull() ? emptyAtom() : AtomString(value); setValue(valueWithoutNull); } ^ This fixes failing test case locally. Can do PR later. Thanks!
EWS
Comment 5
2023-07-05 09:24:16 PDT
Committed
265769@main
(2da4c96001cf): <
https://commits.webkit.org/265769@main
> Reviewed commits have been landed. Closing PR #15550 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug