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

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

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.

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 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:58 UTC