Open
Bug 617068
Opened 15 years ago
Updated 4 years ago
Match the specification for input.{select,selectionStart,selectionEnd,setSelectionRange}
Categories
(Core :: DOM: Selection, task)
Core
DOM: Selection
Tracking
()
NEW
People
(Reporter: Ms2ger, Unassigned)
References
()
Details
(Keywords: html5)
Attachments
(1 file)
|
8.06 KB,
patch
|
ehsan.akhgari
:
review-
|
Details | Diff | Splinter Review |
The spec says, in a well hidden place:
> When these methods and attributes are used with input elements while they
> don't apply, they must raise an INVALID_STATE_ERR exception. Otherwise, they
> must act as described below.
| Reporter | ||
Comment 1•15 years ago
|
||
| Reporter | ||
Updated•15 years ago
|
Attachment #495574 -
Flags: review?(jst)
Comment 2•15 years ago
|
||
Do we really want to do that? That might break scripts, isn't it?
I think we should ask for a change in the specs like we did for |.files|.
What do other browsers do? I can't say I care strongly, though in general not throwing is nice.
| Reporter | ||
Comment 4•15 years ago
|
||
I should note that we already throw due to the lack of an nsITextControlFrame; the main behavioral change is in select(). (Actually, we also throw in the case of a display:none input.)
Comment 5•14 years ago
|
||
Comment on attachment 495574 [details] [diff] [review]
Match the specification for input.{select,selectionStart,selectionEnd,setSelectionRange}
This patch does the wrong thing when getting the selection range at least. We can't just return 0 when we don't have a frame. The patch here should be rewritten on top of the patch in bug 692520.
Attachment #495574 -
Flags: review?(jst) → review-
| Reporter | ||
Comment 6•14 years ago
|
||
Anyway, I think I already removed this from my queue due to lack of reviewer responsiveness.
Assignee: Ms2ger → nobody
Status: ASSIGNED → NEW
Comment 7•14 years ago
|
||
(In reply to Ms2ger from comment #6)
> Anyway, I think I already removed this from my queue due to lack of reviewer
> responsiveness.
Next time try bz? He r+'ed my patch before I submitted it to the try server. ;-)
| Reporter | ||
Comment 8•14 years ago
|
||
Sadly enough, it does seem hard to get a review if you're not asking bz or smaug...
Comment 9•8 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•5 years ago
|
Severity: normal → --
Component: DOM: Core & HTML → DOM: Selection
Priority: P5 → --
Updated•4 years ago
|
Severity: -- → S3
Updated•4 years ago
|
Type: defect → task
You need to log in
before you can comment on or make changes to this bug.
Description
•