Closed Bug 62612 Opened 25 years ago Closed 25 years ago

CSSRule.cssText has no value

Categories

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

defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: david, Assigned: jst)

Details

(Keywords: dom2, Whiteboard: (py8ieh: verify))

Attachments

(1 file)

The cssText property of CSSStyleDeclaration has no value, as demonstrated by the code below. Note that the CSSStyleDeclaration object identifies itself as a CSS2Properties object, but it is supposed to implement both interfaces... <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>
Sorry; I was off by one on the component. Reassigning. See also bug #61607, bug #62611, bug #62613
Assignee: akkana → jst
Component: DOM to Text Conversion → DOM Level 2
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
Keywords: dom2
Component: DOM Level 2 → DOM Style
Taking QA Contact on all open or unverified DOM Style bugs...
QA Contact: sujay → ian
This is CSSRule.cssText, not CSSStyleDeclaration.cssText, which you can get by saying rule.style.cssText ...and which does seem to work in my testing.
Summary: CSSStyleDeclaration.cssText has no value → CSSRule.cssText has no value
According to W3C http://www.w3.org/TR/2000/REC-DOM-Level-2-Style- 20001113/css.html#CSS-CSSStyleDeclaration there should be a cssText property for CSSStyleDelcaration
Nominating this bug for nsbeta1 on behalf of gerardok@netscape.com.
Keywords: nsbeta1
Removing nsbeta1 nomination -- there was a misunderstanding and some "approved out features" were nominated by mistake! Sorry!
Keywords: nsbeta1
WORKSFORME on Linux build 2001052621.... (unless I misinterpreted the testcase) please verify
Worksforme.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Whiteboard: (py8ieh: verify)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: