Domain: jibbering.com
Stories and comments across the archive that link to jibbering.com.
Comments · 52
-
Re:Um...
So instead all of our javascripts have to check whether a document.layers object exists?
If that's the feature you are using, yes. You should always use feature detection rather than user-agent sniffing when you want to actually use those features.
For instance, all the people who sniffed out Netscape to use layers back in the 4.x days weren't very happy when they found out that 6.x had dropped layers for a more standard approach. Had they used feature detection, nothing would have broken.
-
Re:window.status ?
There is nothing wrong with the code.
Incorrect. When setting window.status, you should return true. That page doesn't.
It is quite funny watching mozilla/firebird fanboys bitch about "non standard" code. Especially when such code is the only way to get the desired effect.
Huh? It's broken because the event can never be successful. Fix the event to return true, and you can get the desired effect.
Just because it isn't in the W3C document doesnt mean it shouldn't be implemented in a web browser.
Of course not. But if you have any expectation of it working, you'll stay in spec when coding stuff like this, and when people complain about out-of-spec code not working, you'll know exactly who to blame.