Closed Bug 62611 Opened 24 years ago Closed 24 years ago

CSSStyleRule.selectorText does not return anything

Categories

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

defect

Tracking

()

VERIFIED DUPLICATE of bug 53448
Future

People

(Reporter: david, Assigned: jst)

References

Details

Attachments

(1 file)

CSSStyleRule.selectorText doesn't work, as demonstrated by the code below <head> <style> P { color: red } </style> </head> <body> <script> var rule = document.styleSheets[0].cssRules[0]; // Bug: this should display "P { color: red }" document.write("<p>rule.cssText: " + rule.cssText); // Bug: this should display "P" document.write("<p>rule.selectorText: " + rule.selectorText); // Bug: this should return "color: red" document.write("<p>rule.style.cssText: " + rule.style.cssText); // Bug: this should work like calling item() document.write("<p>rule.style[0]: " + rule.style[0]); document.write("<p>rule.style.item(0): " + rule.style.item(0)); </script> </body>
Keywords: correctness
Attached file testcase
This bug has been marked "future" because the original netscape engineer workingon this is over-burdened. If you feel this is an error, that you or another known resource will be working on this bug,or if it blocks your work in some way -- please attach your concern to the bug for reconsideration.
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Future
dependency to 53448 added
Depends on: 53448
Fixed by patch solving 53448 ; the attached test case now works fine for selectorText. *** This bug has been marked as a duplicate of 53448 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Component: DOM Level 2 → DOM Style
Taking QA Contact on all open or unverified DOM Style bugs...
QA Contact: vidur → ian
VERIFIED dup
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: