Closed Bug 469030 Opened 16 years ago Closed 16 years ago

video control binding shouldn't use ID attribute

Categories

(Toolkit :: Video/Audio Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: Dolske, Assigned: Dolske)

References

Details

(Keywords: fixed1.9.1)

Attachments

(1 file)

See bug 461680 comment 5: > You shouldn't be using id in xbl. Two of these in a document would mean two > elements with that id. Usually, we use anonid for this, or a class for css > purposes. Yeah, the other Neil caught this. It actually seems to work now (at least, doc.getElementById doesn't pick any of them up, which was his concern), but I agreed we should change them anyway. I'll do this in a followup patch, instead of cluttering this one. Neil also put up an example patch in attachment 351361 [details] [diff] [review].
Attached patch Patch v.1 (deleted) — Splinter Review
Switches id= to class=. I started to go with anonid, but that makes the CSS slightly uglier. I also realized this might all change again when switching the controls to <buttons>, but oh well. Already finished the patch done. :)
Attachment #352445 - Flags: review?(enndeakin)
Comment on attachment 352445 [details] [diff] [review] Patch v.1 You may want to fix up the missing space on the .muteButton lines while you're at it.
Attachment #352445 - Flags: review?(enndeakin) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Attachment #352445 - Flags: approval1.9.1?
Can this alo be pushed to 1.9.1/FF3.1 as otherwise themers would have to use both # and . to style the videocontrols in their theme, if they want to keep the theme compatible between 3.1 and 3.1...
Blocks: 458246
The intention is to land this on 1.9.1, which is why I requested approval1.9.1 on the patch! :-)
Comment on attachment 352445 [details] [diff] [review] Patch v.1 a191=beltzner, though I think this should probably be a blocker ...
Attachment #352445 - Flags: approval1.9.1? → approval1.9.1+
Component: Video/Audio → Video/Audio Controls
Product: Core → Toolkit
QA Contact: video.audio → video.audio
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: