Bug 160065

Summary: Parameter to Document.createEvent() should be mandatory
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, commit-queue, darin, dbates, esprehn+autocc, kangil.han, kondapallykalyan, rniwa, sam
Priority: P2 Keywords: WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://dom.spec.whatwg.org/#document
Attachments:
Description Flags
Patch none

Chris Dumez
Reported 2016-07-21 16:54:26 PDT
Parameter to Document.createEvent() should be mandatory as per the specification: - https://dom.spec.whatwg.org/#document We already throw anyway when the parameter is omitted because we use "undefined" as event type, which is invalid. However, we throw the wrong exception. Firefox and Chrome agree with the specification here.
Attachments
Patch (10.71 KB, patch)
2016-07-21 19:19 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2016-07-21 19:19:41 PDT
Chris Dumez
Comment 2 2016-07-21 20:30:17 PDT
Comment on attachment 284299 [details] Patch Clearing flags on attachment: 284299 Committed r203550: <http://trac.webkit.org/changeset/203550>
Chris Dumez
Comment 3 2016-07-21 20:30:23 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.