Closed
Bug 765590
Opened 12 years ago
Closed 12 years ago
CSSNameSpaceRule.type should be 10, not 0
Categories
(Core :: DOM: CSS Object Model, defect)
Core
DOM: CSS Object Model
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: Ms2ger, Assigned: jhk)
References
()
Details
(Keywords: dev-doc-complete, Whiteboard: [good first bug][mentor=Ms2ger][lang=c++])
Attachments
(1 file, 1 obsolete file)
3.38 KB,
patch
|
dbaron
:
review+
Ms2ger
:
feedback+
|
Details | Diff | Splinter Review |
Yeah, I don't think there was a value assigned at the time we implemented this.
Are you interested in posting a patch?
Comment 2•12 years ago
|
||
We could probably make this a "good first bug" too, although I am not sure this is really a good one...
Reporter | ||
Comment 3•12 years ago
|
||
To fix this bug, a new constant NAMESPACE_RULE = 10; should be added to <http://mxr.mozilla.org/mozilla-central/source/dom/interfaces/css/nsIDOMCSSRule.idl>, and the implementation at <http://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSRules.cpp#1197> should be updated to use it instead of the UNKNOWN_RULE it has now.
Whiteboard: [good first bug][mentor=Ms2ger][lang=c++]
and also see http://wiki.csswg.org/spec/cssom-constants
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #635234 -
Flags: feedback?(Ms2ger)
Reporter | ||
Comment 6•12 years ago
|
||
Comment on attachment 635234 [details] [diff] [review]
Patch(v1)
Review of attachment 635234 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me, code-wise; a test would be good, though.
Attachment #635234 -
Flags: feedback?(Ms2ger) → feedback+
Assignee | ||
Comment 7•12 years ago
|
||
Patch+test. I tested it locally and it doesn't break any other tests.
Attachment #635234 -
Attachment is obsolete: true
Attachment #635276 -
Flags: review?(Ms2ger)
Reporter | ||
Comment 8•12 years ago
|
||
Comment on attachment 635276 [details] [diff] [review]
Patch(v2)
Review of attachment 635276 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me.
Attachment #635276 -
Flags: review?(dbaron)
Attachment #635276 -
Flags: review?(Ms2ger)
Attachment #635276 -
Flags: feedback+
Comment on attachment 635276 [details] [diff] [review]
Patch(v2)
r=dbaron
Attachment #635276 -
Flags: review?(dbaron) → review+
Reporter | ||
Updated•12 years ago
|
Comment 10•12 years ago
|
||
Comment 11•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•12 years ago
|
Keywords: dev-doc-needed
Comment 12•12 years ago
|
||
I've added a line in :
https://developer.mozilla.org/en-US/docs/Firefox_16_for_developers
Updated: https://developer.mozilla.org/en-US/docs/DOM/CSSRule which was quite outdated.
Created: https://developer.mozilla.org/en-US/docs/DOM/CSSNamespaceRule as it didn't existed at all!
Note that I still to add a link from the doc for @namespace to the CSSOM interface, but as this at-rule is not yet documented, I'll wait a bit. (Anyway I have to make sure that every combination of at-rule/CSSOM interface are correctly linked and documented.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•