Bug 172185 - Option() named constructor is not per spec
Summary: Option() named constructor is not per spec
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: https://html.spec.whatwg.org/#dom-option
Keywords: WebExposed
Depends on:
Blocks:
 
Reported: 2017-05-16 13:59 PDT by Domenic Denicola
Modified: 2017-05-19 16:20 PDT (History)
6 users (show)

See Also:


Attachments
WIP Patch (12.40 KB, patch)
2017-05-19 13:46 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (15.39 KB, patch)
2017-05-19 14:09 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Domenic Denicola 2017-05-16 13:59:13 PDT
In particular it does not work correctly with no arguments or undefined arguments. See tests at http://w3c-test.org/html/semantics/forms/the-option-element/option-element-constructor.html and spec at https://html.spec.whatwg.org/#dom-option
Comment 1 Chris Dumez 2017-05-19 13:46:30 PDT
Created attachment 310696 [details]
WIP Patch
Comment 2 Chris Dumez 2017-05-19 14:09:27 PDT
Created attachment 310697 [details]
Patch
Comment 3 WebKit Commit Bot 2017-05-19 16:20:12 PDT
Comment on attachment 310697 [details]
Patch

Clearing flags on attachment: 310697

Committed r217168: <http://trac.webkit.org/changeset/217168>
Comment 4 WebKit Commit Bot 2017-05-19 16:20:13 PDT
All reviewed patches have been landed.  Closing bug.