Bug 148973 - new Comment(undefined) / new Text(undefined) should use default's empty string
Summary: new Comment(undefined) / new Text(undefined) should use default's empty string
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar, WebExposed
Depends on:
Blocks:
 
Reported: 2015-09-08 11:29 PDT by Chris Dumez
Modified: 2015-09-08 14:57 PDT (History)
6 users (show)

See Also:


Attachments
Patch (15.44 KB, patch)
2015-09-08 11:49 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-mavericks (701.71 KB, application/zip)
2015-09-08 12:14 PDT, Build Bot
no flags Details
Patch (17.58 KB, patch)
2015-09-08 12:23 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 Chris Dumez 2015-09-08 11:29:55 PDT
new Comment(undefined) / new Text(undefined) should use default's empty string instead of converting undefined to the "undefined" string:
https://dom.spec.whatwg.org/#interface-comment (parameter is optional, default value is empty String)
https://dom.spec.whatwg.org/#text (ditto)

undefined should be treated as if the parameter is missing, in the case the parameter is optional, as per the Web IDL specification.
Comment 1 Chris Dumez 2015-09-08 11:30:23 PDT
rdar://problem/22548042
Comment 2 Chris Dumez 2015-09-08 11:49:59 PDT
Created attachment 260777 [details]
Patch
Comment 3 Build Bot 2015-09-08 12:14:55 PDT
Comment on attachment 260777 [details]
Patch

Attachment 260777 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/151594

New failing tests:
js/dom/custom-constructors.html
Comment 4 Build Bot 2015-09-08 12:14:58 PDT
Created attachment 260780 [details]
Archive of layout-test-results from ews103 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 5 Chris Dumez 2015-09-08 12:23:15 PDT
Created attachment 260781 [details]
Patch
Comment 6 WebKit Commit Bot 2015-09-08 14:57:30 PDT
Comment on attachment 260781 [details]
Patch

Clearing flags on attachment: 260781

Committed r189507: <http://trac.webkit.org/changeset/189507>
Comment 7 WebKit Commit Bot 2015-09-08 14:57:35 PDT
All reviewed patches have been landed.  Closing bug.