Hello,

I came across an odd behavior of TiddlyWiki when it comes to CSS
definitions inside a CSS comment.

Steps to reproduce the error:
1) Start with a TiddlyWiki 2.8.1 empty.html
2) Create a new tiddler named StyleSheetTest and in its content area
enter an empty CSS comment, i.e.

/**/

   (That is: slash-asterisk-asterisk-slash)
3) Open the shadow tiddler StyleSheet and in its content area enter

/***
[[StyleSheetTest]]
div.tiddler {background-color: gold;}
***/

4) See that the tiddler's backgrounds have turned gold colored even
though its definition is inside a CSS comment.

Observations:
* Removing the square brackets from [[StyleSheetTest]] won't provoke the error.
* Changing the order to

/***
div.tiddler {background-color: gold;}
[[StyleSheetTest]]
***/

   doesn't provoke the error either.


Possible fix:
When inside a CSS comment
* either don't include the [[...]]-linked style sheet
* or after including the [[...]]-linked style sheet automatically
insert an additional ***/

Best wishes,
Toden

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to