Bug 160777

Summary: Align Range.surroundContents() with the latest DOM specification
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, commit-queue, darin, dbates, esprehn+autocc, kangil.han, rniwa, sam
Priority: P2 Keywords: WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://dom.spec.whatwg.org/#dom-range-surroundcontents
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews122 for ios-simulator-elcapitan-wk2
none
Patch none

Description Chris Dumez 2016-08-11 13:08:52 PDT
Align Range.surroundContents() with the latest DOM specification:
- https://dom.spec.whatwg.org/#dom-range-surroundcontents

This would get us much closer to Firefox's behavior.
Comment 1 Chris Dumez 2016-08-11 13:37:16 PDT
Created attachment 285850 [details]
Patch
Comment 2 Ryosuke Niwa 2016-08-11 14:36:51 PDT
Comment on attachment 285850 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=285850&action=review

> LayoutTests/platform/mac/fast/dom/Range/surroundContents-1-expected.txt:8
>            text run at (0,0) width 564: "This tests for HIERARCHY_REQUEST_ERRs when calling Range::surroundContents."

Can we convert this test to a dump-as-markup.js test?
Comment 3 Build Bot 2016-08-11 14:48:56 PDT
Comment on attachment 285850 [details]
Patch

Attachment 285850 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/1853617

New failing tests:
fast/dom/Range/surroundContents-1.html
Comment 4 Build Bot 2016-08-11 14:48:59 PDT
Created attachment 285855 [details]
Archive of layout-test-results from ews122 for ios-simulator-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122  Port: ios-simulator-elcapitan-wk2  Platform: Mac OS X 10.11.5
Comment 5 Chris Dumez 2016-08-11 14:57:56 PDT
Created attachment 285856 [details]
Patch
Comment 6 WebKit Commit Bot 2016-08-11 15:28:48 PDT
Comment on attachment 285856 [details]
Patch

Clearing flags on attachment: 285856

Committed r204390: <http://trac.webkit.org/changeset/204390>
Comment 7 WebKit Commit Bot 2016-08-11 15:28:55 PDT
All reviewed patches have been landed.  Closing bug.