[Webkit-unassigned] [Bug 11876] New: CSSMediaRule functions insertRule and deleteRule don't raise exceptions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 19 10:39:57 PST 2006


http://bugs.webkit.org/show_bug.cgi?id=11876

           Summary: CSSMediaRule functions insertRule and deleteRule don't
                    raise exceptions
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sam at webkit.org


According to the spec
(http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSMediaRule)

- the insertRule(rule, index) method can raise the following exceptions:
HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the specified
index, e.g., if an @import rule is inserted after a standard rule set or other
at-rule.
INDEX_SIZE_ERR: Raised if the specified index is not a valid insertion point.
NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is readonly.
SYNTAX_ERR: Raised if the specified rule has a syntax error and is unparsable.

- the deleteRule(index) method can raise the following exceptions:
INDEX_SIZE_ERR: Raised if the specified index does not correspond to a rule in
the media rule list.
NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is readonly.

We never raise exceptions for either method.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list