Closed
Bug 62612
Opened 24 years ago
Closed 23 years ago
CSSRule.cssText has no value
Categories
(Core :: DOM: CSS Object Model, defect, P3)
Core
DOM: CSS Object Model
Tracking
()
RESOLVED
WORKSFORME
Future
People
(Reporter: david, Assigned: jst)
Details
(Keywords: dom2, Whiteboard: (py8ieh: verify))
Attachments
(1 file)
819 bytes,
text/html
|
Details |
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>
Reporter | ||
Comment 1•24 years ago
|
||
Sorry; I was off by one on the component. Reassigning. See also bug #61607, bug #62611, bug #62613
Reporter | ||
Comment 2•24 years ago
|
||
Assignee | ||
Comment 3•24 years ago
|
||
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
Updated•24 years ago
|
Component: DOM Level 2 → DOM Style
Comment 4•24 years ago
|
||
Taking QA Contact on all open or unverified DOM Style bugs...
QA Contact: sujay → ian
Comment 5•24 years ago
|
||
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
Comment 6•23 years ago
|
||
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
Comment 7•23 years ago
|
||
Nominating this bug for nsbeta1 on behalf of gerardok@netscape.com.
Keywords: nsbeta1
Comment 8•23 years ago
|
||
Removing nsbeta1 nomination -- there was a misunderstanding and some "approved out features" were nominated by mistake! Sorry!
Keywords: nsbeta1
Comment 9•23 years ago
|
||
WORKSFORME on Linux build 2001052621.... (unless I misinterpreted the testcase) please verify
Assignee | ||
Comment 10•23 years ago
|
||
Worksforme.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Updated•23 years ago
|
Whiteboard: (py8ieh: verify)
You need to log in
before you can comment on or make changes to this bug.
Description
•