Closed
Bug 891340
Opened 11 years ago
Closed 11 years ago
Make Range.collapse optional and default to false
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: annevk, Assigned: annevk)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 2 obsolete files)
1.84 KB,
patch
|
annevk
:
review+
|
Details | Diff | Splinter Review |
This should be a fairly trivial IDL change and would be consistent with other boolean arguments we've made optional. http://dom.spec.whatwg.org/#range
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: mounir → annevk
Attachment #772634 -
Flags: review?(amarchesini)
Comment 2•11 years ago
|
||
Comment on attachment 772634 [details] [diff] [review]
attempt 1
Review of attachment 772634 [details] [diff] [review]:
-----------------------------------------------------------------
Congrats! Your first r+!
I sent your patch to try. If it's green I land it.
https://tbpl.mozilla.org/?tree=Try&rev=f7e9f24d8f49
Attachment #772634 -
Flags: review?(amarchesini) → review+
Comment 3•11 years ago
|
||
Needs a test!
Assignee | ||
Comment 4•11 years ago
|
||
A test should be added to dom/ranges/Range-collapse.html in https://github.com/w3c/web-platform-tests It seems that can be done separately.
Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Comment on attachment 772634 [details] [diff] [review]
attempt 1
There is something orange on try.
Attachment #772634 -
Flags: review+
Assignee | ||
Comment 7•11 years ago
|
||
Bah.
Attachment #772634 -
Attachment is obsolete: true
Attachment #772817 -
Flags: review?(amarchesini)
Assignee | ||
Comment 8•11 years ago
|
||
https://github.com/w3c/web-platform-tests/pull/244 is to fix comment 7 upstream.
Comment 9•11 years ago
|
||
Comment on attachment 772817 [details] [diff] [review]
attempt 2
Review of attachment 772817 [details] [diff] [review]:
-----------------------------------------------------------------
https://tbpl.mozilla.org/?tree=Try&rev=c11f86a3a8eb
Attachment #772817 -
Flags: review?(amarchesini) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #772817 -
Attachment is obsolete: true
Attachment #772934 -
Flags: review+
Comment 11•11 years ago
|
||
Keywords: checkin-needed
Assignee | ||
Updated•11 years ago
|
Attachment #772934 -
Attachment description: attempt 2.1 → attempt 2.1 [r=baku]
Updated•11 years ago
|
Keywords: dev-doc-needed
Comment 12•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Comment 13•11 years ago
|
||
Updated:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/25
and
https://developer.mozilla.org/en-US/docs/Web/API/range.collapse
Btw: it looks like IE (IE9-11) is defaulting to true (and the spec say false) See: http://msdn.microsoft.com/en-us/library/ie/ff975439%28v=vs.85%29.aspx
Keywords: dev-doc-needed → dev-doc-complete
Comment 14•11 years ago
|
||
The current WebIDL parser doesn't support optional arguments.
https://tbpl.mozilla.org/php/getParsedLog.php?id=26263236&tree=Mozilla-Inbound#error1
Even worse, the current testharness doesn't catch the error. So the test is effectively disabled.
https://bugzilla.mozilla.org/show_bug.cgi?id=885107#c40
Comment 15•11 years ago
|
||
You mean the WebIDL parser for tests, right? Gecko's WebIDL parser sure supports optional.
Comment 16•11 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #15)
> You mean the WebIDL parser for tests, right? Gecko's WebIDL parser sure
> supports optional.
Yes, I meant dom/imptests/WebIDLParser.js.
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
•