Add a "ownerNumberControl" property to HTMLInputElement

RESOLVED FIXED in mozilla28

Status

()

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: jwatt, Assigned: jwatt)

Tracking

Trunk
mozilla28
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [qa-])

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
In bug 939635 and bug 940696 I need to be able to determine whether the text control that is being handled is the anonymous text control descendant of an <input type=number> and, if so, get the number control. Probably in future this information will be required elsewhere too. Rather than encoding knowledge about the makeup of the anonymous shadow tree for <input type=number> in all places that need to know about it (and have them all break and have to be updated if we want to change the shadow tree), it seems like we should expose some means of obtaining this information on HTMLInputElement to make things more robust and less messy.
(Assignee)

Comment 1

5 years ago
Created attachment 8334899 [details] [diff] [review]
patch
Attachment #8334899 - Flags: review?(bugs)
Comment on attachment 8334899 [details] [diff] [review]
patch

Could you add a comment to the .webidl what the property is about.
Attachment #8334899 - Flags: review?(bugs) → review+
(Assignee)

Updated

5 years ago
Blocks: 939635, 940696
Summary: Add a "numberControlOwner" property to HTMLInputElement → Add a "ownerNumberControl" property to HTMLInputElement
https://hg.mozilla.org/mozilla-central/rev/1b013ca4c550
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28

Updated

5 years ago
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.