W3C home > Mailing lists > Public > www-style@w3.org > July 2001

setting CSSStyleDeclaration.cssText and syntax errors

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 17 Jul 2001 19:19:48 -0400
Message-Id: <200107172319.TAA24193@mint-square.mit.edu>
To: www-dom@w3.org
Cc: www-style@w3.org
CSSStyleDeclaration.cssText can throw an exception on setting.  In
particular:

SYNTAX_ERR: Raised if the specified CSS string value has a syntax error
            and is unparsable.

What does this really mean?  All CSS is parsable.  If one encounters CSS
that does not make sense, the assumption is that it's a future version
of the standard and its quietly dropped.

For example, which, if any of the below statements should throw
exceptions:

cssText = "/*";
cssText = "abcde";
cssText = "font-color: black; font-size: bold; font-family: monospace";

This seems to need some clarification.

I've cced this to www-style so both groups are aware of it.

Boris
-----------------
617-764-2453
-----------------
In the first place, God made idiots; this was for
practice; then he made school boards.
                                     -- Mark Twain
Received on Tuesday, 17 July 2001 19:23:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:10 GMT