Bug 153504

Summary: Settings a reflected DOMString attribute to null should set it to the "null" string rather than the empty string
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 153519    
Bug Blocks:    
Attachments:
Description Flags
WIP Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Chris Dumez
Reported 2016-01-26 13:00:48 PST
Settings a reflected DOMString attribute to null should set it to the "null" string rather than the empty string: - https://html.spec.whatwg.org/#reflecting-content-attributes-in-idl-attributes - http://heycam.github.io/webidl/#es-DOMString - http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tostring Firefox and Chrome match the specification here. This is causing a lot of W3C HTML reflection tests to fail on WebKit, e.g.: http://w3c-test.org/html/dom/reflection-text.html
Attachments
WIP Patch (86.56 KB, patch)
2016-01-26 15:48 PST, Chris Dumez
no flags
Patch (91.59 KB, patch)
2016-01-26 19:11 PST, Chris Dumez
no flags
Patch (93.73 KB, patch)
2016-01-27 10:37 PST, Chris Dumez
no flags
Patch (93.89 KB, patch)
2016-01-27 14:18 PST, Chris Dumez
no flags
Patch (94.03 KB, patch)
2016-01-27 14:23 PST, Chris Dumez
no flags
Patch (94.03 KB, patch)
2016-01-27 14:44 PST, Chris Dumez
no flags
Patch (92.03 KB, patch)
2016-01-27 14:46 PST, Chris Dumez
no flags
Radar WebKit Bug Importer
Comment 1 2016-01-26 13:02:12 PST
Chris Dumez
Comment 2 2016-01-26 15:48:30 PST
Created attachment 269939 [details] WIP Patch
Chris Dumez
Comment 3 2016-01-26 19:11:31 PST
Chris Dumez
Comment 4 2016-01-27 10:37:23 PST
Ryosuke Niwa
Comment 5 2016-01-27 11:06:28 PST
Comment on attachment 270006 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=270006&action=review > LayoutTests/fast/shadow-dom/HTMLSlotElement-interface.html:105 > slotElement.name = null; This should be slotElement.removeAttribute('name') instead. > LayoutTests/fast/shadow-dom/NonDocumentTypeChildNode-interface-assignedSlot.html:80 > slot.name = null; Ditto.
Chris Dumez
Comment 6 2016-01-27 14:18:47 PST
WebKit Commit Bot
Comment 7 2016-01-27 14:20:39 PST
Comment on attachment 270038 [details] Patch Rejecting attachment 270038 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'apply-attachment', '--no-update', '--non-interactive', 270038, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: atching file LayoutTests/fast/shadow-dom/NonDocumentTypeChildNode-interface-assignedSlot.html Hunk #1 succeeded at 82 with fuzz 2 (offset 5 lines). patching file LayoutTests/fast/shadow-dom/shadow-layout-after-slot-changes.html patching file LayoutTests/svg/dom/svg-element-attribute-js-null-expected.txt patching file LayoutTests/svg/dom/svg-element-attribute-js-null.xhtml Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Full output: http://webkit-queues.webkit.org/results/747095
Chris Dumez
Comment 8 2016-01-27 14:23:46 PST
Chris Dumez
Comment 9 2016-01-27 14:44:26 PST
Chris Dumez
Comment 10 2016-01-27 14:46:54 PST
Chris Dumez
Comment 11 2016-01-27 15:42:53 PST
Comment on attachment 270046 [details] Patch Clearing flags on attachment: 270046 Committed r195700: <http://trac.webkit.org/changeset/195700>
Chris Dumez
Comment 12 2016-01-27 15:42:59 PST
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.