Closed Bug 44024 Opened 25 years ago Closed 25 years ago

cannot access stylesheet of style element

Categories

(Core :: DOM: CSS Object Model, defect, P2)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: marcell, Assigned: jst)

References

()

Details

(Whiteboard: [nsbeta2-][nsbeta3+][HAVE FIX])

Attachments

(3 files)

The method insertRule() should add a CSS rule (in this case, H1 { color: red }) but does not.
The problem, according ot jst's email, is that there is no way of accessing the stylesheet from the STYLE element. In other words, what we don't implement is http://www.w3.org/TR/DOM-Level-2/stylesheets.html#StyleSheets-LinkStyle .
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: DOM method insertRule() does not work → cannot access stylesheet of style element
Nominating for nsbeta2 & 3, we could probably live without this in beta2, but IMO this must be fixed for beta3. Fixing this probably takes less than one hour so it could be done for beta2...
Status: NEW → ASSIGNED
Keywords: nsbeta2, nsbeta3
Priority: P3 → P2
Target Milestone: --- → M18
Putting on [nsbeta2-] radar. Not critical to beta2.
Whiteboard: [nsbeta2-]
Keywords: correctness
Marking nsbeta3+
Whiteboard: [nsbeta2-] → [nsbeta2-][nsbeta3+]
Attached patch Proposed fixSplinter Review
I have a fix for this (see attachment), review and checking pending...
Whiteboard: [nsbeta2-][nsbeta3+] → [nsbeta2-][nsbeta3+][HAVE FIX]
Attached file more revised testcase
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified on build 2000-08-24-06-M18 on Win98
Status: RESOLVED → VERIFIED
Component: DOM Level 2 → DOM Style
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: