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)

task

Tracking

()

People

(Reporter: Ms2ger, Unassigned)

References

()

Details

(Keywords: html5)

Attachments

(1 file)

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.
Attachment #495574 - Flags: review?(jst)
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.
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 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-
Anyway, I think I already removed this from my queue due to lack of reviewer responsiveness.
Assignee: Ms2ger → nobody
Status: ASSIGNED → NEW
(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. ;-)
Sadly enough, it does seem hard to get a review if you're not asking bz or smaug...
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
Severity: normal → --
Component: DOM: Core & HTML → DOM: Selection
Priority: P5 → --
Severity: -- → S3
Type: defect → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: