Bug 149101

Summary: CharacterData API parameters should not be optional
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, commit-queue, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://dom.spec.whatwg.org/#characterdata
Attachments:
Description Flags
Patch none

Chris Dumez
Reported 2015-09-12 22:21:05 PDT
Calling Text.appendData() / Comment.appendData() without parameter should throw: https://dom.spec.whatwg.org/#characterdata (parameter is mandatory) However, WebKit currently does not throw and appends the string "undefined". Firefox and Chrome match the specification and throw in this case.
Attachments
Patch (26.35 KB, patch)
2015-09-12 23:21 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2015-09-12 22:21:36 PDT
Chris Dumez
Comment 2 2015-09-12 23:21:38 PDT
WebKit Commit Bot
Comment 3 2015-09-13 19:42:19 PDT
Comment on attachment 261078 [details] Patch Clearing flags on attachment: 261078 Committed r189676: <http://trac.webkit.org/changeset/189676>
WebKit Commit Bot
Comment 4 2015-09-13 19:42: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.