Closed Bug 940698 Opened 11 years ago Closed 11 years ago

Add a "ownerNumberControl" property to HTMLInputElement

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

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.
Attached patch patchSplinter Review
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+
Blocks: 939635, 940696
Summary: Add a "numberControlOwner" property to HTMLInputElement → Add a "ownerNumberControl" property to HTMLInputElement
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: