WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
148729
Node.textContent = undefined should be equivalent to textContent = ""
https://bugs.webkit.org/show_bug.cgi?id=148729
Summary
Node.textContent = undefined should be equivalent to textContent = ""
Ryosuke Niwa
Reported
2015-09-02 16:45:38 PDT
http://w3c-test.org/dom/nodes/Node-textContent.html
fails because we don't treat undefined as an empty string in textContent's setter.
Attachments
Fixes the bug
(4.30 KB, patch)
2015-09-02 17:57 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2015-09-02 16:47:01 PDT
<
rdar://problem/22549558
>
Chris Dumez
Comment 2
2015-09-02 16:49:55 PDT
As per
https://heycam.github.io/webidl/#es-nullable-type
, since the attribute is nullable, "if V is null or undefined, then return the IDL nullable type T? value null". Our generated bindings missed the "or undefined" part. I believe there is even a FIXME comment about this in the bindings generator already.
Ryosuke Niwa
Comment 3
2015-09-02 17:57:19 PDT
Created
attachment 260462
[details]
Fixes the bug
WebKit Commit Bot
Comment 4
2015-09-02 19:51:12 PDT
Comment on
attachment 260462
[details]
Fixes the bug Clearing flags on attachment: 260462 Committed
r189269
: <
http://trac.webkit.org/changeset/189269
>
WebKit Commit Bot
Comment 5
2015-09-02 19:51:17 PDT
All reviewed patches have been landed. Closing bug.
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