Open Bug 559796 Opened 15 years ago Updated 3 years ago

DOM Level 2's getCounterValue() produces NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR

Categories

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

defect

Tracking

()

People

(Reporter: bugzilla, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.19) Gecko/2010033022 Iceweasel/3.0.6 (Debian-3.0.6-3) Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.19) Gecko/2010033022 Iceweasel/3.0.6 (Debian-3.0.6-3) Firebug output: [Exception... "Modifications are not allowed for this document" code: "7" nsresult: "0x80530007 (NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR)" location: "http://static.manuel-strehl.de/countertest.html Line: 71"] The attempt to access getCounterValue() on a CSSPrimitiveValue with primitiveType CSS_COUNTER (==23) should return a DOM 2 Counter object. However, trying this in above linked document produces an "no modification allowed" error. Reproducible: Always Steps to Reproduce: 1. A CSSPrimitiveValue object is produced 2. The method getCounterValue() is called 3. error happens Expected Results: A DOM 2 Counter object should be returned. In the above linked case, the getPropertyCSSValue("content")[0] on the computedStyle of element with ID 'x' has primitiveType CSS_COUNTER, as the spec requests for calls to getCounterValue(). For convenience: The spec: http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-Counter
Attached file Testcase
Confirming, though I don't think we should implement this. We should just implement CSSOM's replacement, once it's specified. (Note that Opera doesn't support getPropertyCSSValue at all, and it's not clear to me for which values WebKit supports it.)
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86 → All
I'm pretty sure this is a wontfix (the SVG version isn't getting implemented). See http://lists.w3.org/Archives/Public/www-style/2003Oct/0347.html for why.
In that case (after reading the archived email) and since I overinterpreted the power of the Counter object (cannot return the current counter value, which then doesn't seem to make any sense at all) I vote for closing it as wontfix.
QA Contact: general → style-system
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: