Scott Simmons said the following on 10/26/2013 09:49 PM:
Consider what happens if you have a standard, non-fancy HTML page with
two external stylesheets referenced in the source.  You open that page
in the browser, and the browser reads the code to display the page,
building a working version (a DOM) out of what it encounters.  It loads
the first external stylesheet into memory, then the second.  If a class
in the second stylesheet contradicts the first, it supersedes it — but
the browser doesn't write those changes back to the HTML file.

Yes, but the moment you introduce javascript everything changes and the above assertion isn't true any more. In fact its irrelevant.

The javascript could then write out a copy of itself but with the CSS is head read from external sources 'inline'. Self replicating code is a common 'exercise left to the reader' in CompSci courses.

Further, if the source of the CSS is a list of files rather than ones defines in the <HEAD>, the the javascript can manipulate the list, reverse it, randomise it any which way, combine it with CSS it already has, translate HEX colours to decimal "rgb()" style, convert keywords to upper-case, convert all character entities the the ampersand format. Heck, the code to do much of that is in the 'tidy' HTML reformatter, its no big deal.

My point is that the moment you fail to consider what javascript can do, as in the above, then all bets are off.

TiddlyWiki could be doing anything.
The issue is what it *IS* doing, and considering what a non-javascript driven browser does with CSS statements in the <HEAD> is irrelevant since (a) the inline CSS in the <head> of an empty.html Tiddlywiki is minimal and (b) all the real CSS is produced programatically by javascript.





--
Men fear thought as they fear nothing else on earth, more than ruin, more even than death. . . . Thought is subversive and revolutionary, destructive and terrible, thought is merciless to privilege, established institutions, and comfortable habit. Thought looks into the pit of hell and is not afraid. Thought is great and swift and free, the light of the world, and the chief glory of man.
   -- Bertrand Russell

--
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