getAttribute() always non-null
Mikolaj Machowski
mikmach at wp.pl
Sun Nov 20 19:17:27 GMT 2005
Hello,
Konqueror 3.5 branch (one week old)
I was playing recently with S5:
http://www.meyerweb.com/eric/tools/s5/primer.html
Simple demo is at:
http://www.meyerweb.com/eric/tools/s5/v/1.1/s5-11.zip
Last time I used it was 1.0 and everything worked, now it is in version
1.1 and one thing doesn't work: advance to next slide with left mouse
button click.
I tracked it down to:
target.getAttribute('href') != null
Looks like output from getAttribute() is always non-null breaking S5.
So, is behaviour of Konq bad or S5?
For me looks like Konq behaviour is broken because there are non-logical
behaviours like tested in debugger:
document.getElementsByTagName("body")[0].getAttribute("asdf") != null
true
It probably returns empty string. It should return null for two reasons:
1. Looks like all other browsers are returning null.
2. Current behaviour doesn't allow for detection of cases like::
<img alt="" />
TIA
m.
ps.
More information about the kfm-devel
mailing list