[Bug 17520] New: CSS Object Model does not specify how to handle multiple rules on insertRule

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17520

           Summary: CSS Object Model does not specify how to handle
                    multiple rules on insertRule
           Product: CSS
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSSOM
        AssignedTo: glenn@skynav.com
        ReportedBy: hushbeck@adobe.com
         QAContact: public-css-bugzilla@w3.org


When doing an insertRule call on a CSSStyleSheet, the spec does not specify
what to do if the rule contains multiple valid rules. It simple says:

    Parse rule.

    If parsing failed terminate these steps.

With multiple valid rules, theoretically parsing will succeed, but there is no
indication if it is valid to have multiple rules in the string. Currently, IE
9, Chrome 19, and Opera 11.6 throw SYNTAX_ERR, whereas Firefox only inserts the
first rule into the page.

This should probably be clarified to throw an error if more than 1 rule exists.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 16 June 2012 22:44:07 UTC