Click to See Complete Forum and Search --> : Script without style?


Vladdy
05-19-2004, 09:19 AM
While Web Developer extension of FF allows to enable/disable features at will in any combination, can anyone think of a real life situation where a user would have CSS disabled and scripting enabled for reasons other than "Gee, lets see what happens if...."

David Harrison
05-19-2004, 09:56 AM
An old browser perhaps.

Take Netscape 4 for example, if you include the .css file it won't be able to use it, however there is no way to hide JavaScript from it (that I know of).

Vladdy
05-19-2004, 10:09 AM
Let me clarify: "DOM Compliant Scripting"
if(document.getElementById) takes care of older browsers...

DaveSW
05-19-2004, 10:37 AM
some oblique form of screen reader or text browser?

Vladdy
05-19-2004, 11:33 AM
Originally posted by DaveSW
some oblique form of screen reader or text browser?

I was thinking about it, Dave.
First do we know of such browser?
Second, even in theory, how would such browser handle the following statement:
element.style.display = 'none';
Will or should it be ignored because the script attempts to modify style property that is not supported (we are talking about a browser that does not support CSS) or remove that element from the flow ???

DaveSW
05-19-2004, 02:16 PM
There's an interesting list here: http://66.102.9.104/search?q=cache:MXAcynJrZMwJ:www.netspace.net.au/~gcross/browsers.html+%22text+browser%22+javascript+support&hl=en the only one which appears to support javascript is kfm, but I'm still trying to find a download location. (Does it still exist?)

The other idea I had was opera. Some people browse with styles turned off - if the color scheme is awful...