Interesting.
Are we using the latest and greatest CSS parser? Apparently there
was a bug in the CSS spec at some point that did not allow `_` in
identifiers, but that was fixed.
On 2007-01-06, at 22:00 EST, Benjamin Shine wrote:
Underscore should not be a problem, and yet it is. Really.
test/style/names/main_underscore.lzx demonstrates it; it gives a
compiler error:
main_underscore.lzx:9:13: Error parsing css file at line 3, Invalid
identifier start character.
(The test case itself is in a bit of a weird state, partway ported
to lzunit but not completely, but the point is, it doesn't compile.)
On Jan 6, 2007, at 4:57 PM, P T Withington wrote:
Did you mean underscore `_` or hyphen `-`. Underscore should not
be a problem.
On 2007-01-05, at 20:17 EST, [EMAIL PROTECTED] wrote:
Author: frisco
Date: 2007-01-05 17:17:35 -0800 (Fri, 05 Jan 2007)
New Revision: 3292
Modified:
openlaszlo/trunk/docs/src/dguide/css.html
Log:
Change 20070105-laszlosystems-B by [EMAIL PROTECTED]
Mini.local on 2007-01-05 17:11:20 PST
in /Users/laszlosystems/src/svn/openlaszlo/trunk
Summary: Added warning to Dguide CSS about underscores in
selector names; added " to Ox in assertions
New Features:
Bugs Fixed:
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Tests:
Modified: openlaszlo/trunk/docs/src/dguide/css.html
===================================================================
--- openlaszlo/trunk/docs/src/dguide/css.html 2007-01-05 23:39:54
UTC (rev 3291)
+++ openlaszlo/trunk/docs/src/dguide/css.html 2007-01-06 01:17:35
UTC (rev 3292)
@@ -632,6 +632,8 @@
and no stylesheet information for <code>styledbox3</code> unless
it descends from
<code>stylebox</code> and <code>stylebox2</code>.</p>
+<warning>Don't include an underscore in selector names. Your LZX
files will not compile.</warning>
+
<warning>The difference between an attribute selector and a
descendant selector is as little as a spacebar. The attribute
selector <code>person[name='george']</code> (no space between
person and name) selects a person whose name is george, but the
descendant selector <code>person [name='george']</code> selects a
view named george which is a child of the view named person.</
warning>
<h2>Specificity</h2>
@@ -785,6 +787,6 @@
</body>
</html>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights
Reserved. *
+* Copyright 2001-2007 Laszlo Systems, Inc. All Rights
Reserved. *
* Use is subject to license
terms. *
* X_LZ_COPYRIGHT_END
****************************************************** -->
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins
Benjamin Shine
Software Engineer, Open Laszlo / Laszlo Systems
[EMAIL PROTECTED]