WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
160059
Make parameters mandatory for attribute-related API on Element
https://bugs.webkit.org/show_bug.cgi?id=160059
Summary
Make parameters mandatory for attribute-related API on Element
Chris Dumez
Reported
2016-07-21 16:15:40 PDT
Make parameters mandatory for attribute-related API on Element to match the specification: -
https://dom.spec.whatwg.org/#element
Firefox and Chrome agree with the specification. Calling this API without the parameters does not make much sense, especially considering WebKit uses the string "undefined" when the parameter is omitted.
Attachments
Patch
(35.93 KB, patch)
2016-07-21 16:50 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews105 for mac-yosemite-wk2
(1.11 MB, application/zip)
2016-07-21 17:39 PDT
,
Build Bot
no flags
Details
Patch
(36.83 KB, patch)
2016-07-21 18:24 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-07-21 16:50:59 PDT
Created
attachment 284283
[details]
Patch
Ryosuke Niwa
Comment 2
2016-07-21 17:06:29 PDT
Comment on
attachment 284283
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=284283&action=review
> Source/WebCore/dom/Element.idl:39 > + Attr getAttributeNode(DOMString name);
Why isn't this `Attr?` as in the spec?
Build Bot
Comment 3
2016-07-21 17:39:11 PDT
Comment on
attachment 284283
[details]
Patch
Attachment 284283
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/1728927
New failing tests: fast/dom/HTMLAnchorElement/anchor-nodownload-set.html
Build Bot
Comment 4
2016-07-21 17:39:15 PDT
Created
attachment 284290
[details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Chris Dumez
Comment 5
2016-07-21 17:49:29 PDT
Comment on
attachment 284283
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=284283&action=review
>> Source/WebCore/dom/Element.idl:39 >> + Attr getAttributeNode(DOMString name); > > Why isn't this `Attr?` as in the spec?
It has no effect but I will fix for clarity and to match the spec.
Chris Dumez
Comment 6
2016-07-21 18:24:19 PDT
Created
attachment 284296
[details]
Patch
Chris Dumez
Comment 7
2016-07-21 19:22:24 PDT
Comment on
attachment 284296
[details]
Patch Clearing flags on attachment: 284296 Committed
r203546
: <
http://trac.webkit.org/changeset/203546
>
Chris Dumez
Comment 8
2016-07-21 19:22:32 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