WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
149238
Element's attribute NS API should treat defined undefined namespace as null
https://bugs.webkit.org/show_bug.cgi?id=149238
Summary
Element's attribute NS API should treat defined undefined namespace as null
Chris Dumez
Reported
2015-09-16 16:40:07 PDT
Element's attribute NS API should defined undefined namespace as null instead of converting it to the "undefined" String. This is because the namespace parameter is a nullable String as per the DOM spec:
https://dom.spec.whatwg.org/#element
The attribute is nullable and WebIDL says undefined should be converted to null for nullable parameters:
https://heycam.github.io/webidl/#es-nullable-type
(step 3)
Attachments
Patch
(5.77 KB, patch)
2015-09-16 16:45 PDT
,
Chris Dumez
rniwa
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-09-16 16:45:51 PDT
Created
attachment 261338
[details]
Patch
Chris Dumez
Comment 2
2015-09-16 16:46:22 PDT
rdar://problem/22562204
Ryosuke Niwa
Comment 3
2015-09-16 18:23:02 PDT
Comment on
attachment 261338
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=261338&action=review
> Source/WebCore/ChangeLog:9 > + Element's attribute NS API should defined undefined namespace as null
should treat?
Chris Dumez
Comment 4
2015-09-16 18:25:12 PDT
Committed
r189893
: <
http://trac.webkit.org/changeset/189893
>
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