Version: (using KDE KDE 3.4.0) Installed from: SuSE RPMs From http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.html#StyleSheets-StyleSheet "href of type DOMString, readonly ... ... For inline style sheets, the value of this attribute is null." Where the returned value is supposed to be null, testing for this using the null keyword does not work.
Created attachment 11411 [details] Minimal testcase
Firefox and IE print "false" as well. Is there any real world browser returning null?
Firefox gets it wrong in a different way (https://bugzilla.mozilla.org/show_bug.cgi?id=74281) Jesse's description in that bug says IE returns an empty string. This is also what Konqueror currently does.
Konqueror 3.5.5 still returns false for the testcase. FireFox 2.0.0.1 returns false. Opera 9.10 returns true. So to answer Harri, yes there is at least one browser that does return null properly.
Will mark as confirmed since there is a real world browser returning null, but I guess the developers might want to WONTFIX this
Konqueror 4.0.3 display nothing.
What should be the correct behaviour?
Konqueror 3.5.9 display "false".
Konqueror trunk (svn r1104051), Arora using QtWebKit (Qt git > 4.6.2) and Firefox 3.6 show true in the testcase, which, apparently, is the expected and correct value. Maybe this bug should be closed?
Apparently this was fixed by commit 874250. Gecko, WebKit and KHTML return true now. Closing.