Closed
Bug 62607
Opened 24 years ago
Closed 24 years ago
cssText field of CSSRule is incomplete
Categories
(Core :: DOM: CSS Object Model, defect, P3)
Core
DOM: CSS Object Model
Tracking
()
VERIFIED
FIXED
Future
People
(Reporter: david, Assigned: glazou)
References
Details
Attachments
(3 files)
596 bytes,
text/html
|
Details | |
585 bytes,
patch
|
Details | Diff | Splinter Review | |
848 bytes,
patch
|
Details | Diff | Splinter Review |
If you look at the cssText field of a CSSRule object, you get a string like "font-family: sanserif;"--a string that only contains the style description, but not the selectors. I'm pretty sure that the DOM standard intends for this property to return the entire contents of the rule, something like "P { font-family: sanserif;}" It looks to me like CSSRule.cssText is returning what CSSStyleDeclaration.cssText ought to return.
Reporter | ||
Updated•24 years ago
|
Keywords: correctness
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
See also bug #62611, bug #62612, bug#62613
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
Assignee | ||
Comment 5•24 years ago
|
||
Proposing trivial patch for missing curly braces around the declaration. According to DOM2, CSSDeclaration.cssText is "the parsable representation of the declaration block (excluding the surrounding curly braces)." and CSSStyleRule.cssText is "the parsable representation of the rule". Then David's interpretation is correct, all the rule should be replied, including selectors and the rest.
Assignee | ||
Comment 6•24 years ago
|
||
Assignee | ||
Comment 7•24 years ago
|
||
Accepting bug. Proposing new patch because the output of curly braces must be done even if there is no declaration. r= needed. BTW, it seems that the parser does not store a rule with no declarations like "P { }"... I guess it is for performance reasons but should such a rule be accessible by DOM 2 CSS ?
Assignee: jst → glazman
Status: ASSIGNED → NEW
Assignee | ||
Comment 8•24 years ago
|
||
Comment 9•24 years ago
|
||
r=brade
Comment 10•24 years ago
|
||
sr=attinasi
Assignee | ||
Comment 11•24 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Updated•24 years ago
|
Component: DOM Level 2 → DOM Style
Comment 12•24 years ago
|
||
Taking QA Contact on all open or unverified DOM Style bugs...
QA Contact: vidur → ian
You need to log in
before you can comment on or make changes to this bug.
Description
•