Bug 149238

Summary: Element's attribute NS API should treat defined undefined namespace as null
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch rniwa: review+

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+
Chris Dumez
Comment 1 2015-09-16 16:45:51 PDT
Chris Dumez
Comment 2 2015-09-16 16:46:22 PDT
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
Note You need to log in before you can comment on or make changes to this bug.