Closed
Bug 1211894
Opened 9 years ago
Closed 8 years ago
Throw on range.insertNode(range.startContainer)
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: ayg, Assigned: ayg)
Details
Attachments
(1 file)
3.41 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
See discussion at <https://github.com/whatwg/dom/issues/63>. The spec was just updated <https://github.com/whatwg/dom/commit/abad55d6bd76eda7b765a1eb5f6572e7a8af92dc> to change the behavior here, and a test update upstream is pending <https://github.com/w3c/web-platform-tests/pull/2227>.
We should change to match the spec. The updated spec matches Chrome, so no compat issues are expected.
Assignee | ||
Comment 1•9 years ago
|
||
Try run underway: https://treeherder.mozilla.org/#/jobs?repo=try&revision=349350e88355
Attachment #8670262 -
Flags: review?(bugs)
Assignee | ||
Comment 2•9 years ago
|
||
Try is green except for unexpected passes (fixed locally).
Comment 3•9 years ago
|
||
(need to review the spec change. not yet convinced it is a good change.)
Comment 4•9 years ago
|
||
Comment on attachment 8670262 [details] [diff] [review]
Patch
I disagree with the spec change.
Attachment #8670262 -
Flags: review?(bugs)
Assignee | ||
Comment 5•9 years ago
|
||
I understand you disagree, but I think the exact behavior here is less important than getting to interop. IE has said they want to change, and WebKit/Blink already behave this way, so if we change we'll converge on common behavior. If we don't change then we have to persuade IE, WebKit, and Blink to match us, which doesn't seem like it's worth the effort. So could we please just follow the majority here and match the current spec even if you don't like it as much?
Flags: needinfo?(bugs)
Comment 6•9 years ago
|
||
Has Edge or IE changed the behavior? If not, we should push for the better and consistent API and not do this change.
Flags: needinfo?(bugs)
Comment 7•9 years ago
|
||
But if Edge has already changed the behavior, then fine, let's follow others.
Comment 8•9 years ago
|
||
these tests currently fail in Edge, so apparently the behaviour has not yet changed: http://w3c-test.org/dom/ranges/Range-insertNode.html
example: http://i.imgur.com/d4yu2Bd.png
Comment 9•8 years ago
|
||
Olli, given <https://github.com/whatwg/dom/issues/63#issuecomment-238285079>, do you think we should change our behavior here?
Flags: needinfo?(bugs)
Comment 10•8 years ago
|
||
I can live with the change, and MS hasn't indicated they wouldn't change the behavior at some point.
Flags: needinfo?(bugs)
Assignee | ||
Comment 11•8 years ago
|
||
Comment on attachment 8670262 [details] [diff] [review]
Patch
New try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=7e0ca79e78b2636c2c9b90fca2671eff67a8f06f
Attachment #8670262 -
Flags: review?(bugs)
Updated•8 years ago
|
Attachment #8670262 -
Flags: review?(bugs) → review+
Comment 12•8 years ago
|
||
Pushed by ayg@aryeh.name:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c11b9ebe7a2e
Throw on range.insertNode(range.startContainer); r=smaug
Comment 13•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•