hi,
I'm a bit annoyed by the fact, that I'm not able to reach nodes made with "non-standard" tags,
by using javascript under Konqueror.
For example
|
Source code
|
1
|
<unsupported id="whatever"></unsupported>
|
Nor
document.getElementsByTagName("unsupported" )
nor
document.getElementById("whatever" )
works, while it works for all other browsers I've tested: IE5,6,7 , opera9, firefox, seamonkey, swift (an apple-like browser, for testing under windows).
Why konqueror doesn't support this ?
I'm currently working on a script I'll distribute, and I'm pretty hesitating to drop the support
for konqueror.
Remark 1: I can't access to children of a non standard tag with internet explorer, but that's not a big matter for me.
Remark 2: I will use also "non standard" attributes (this one konqueror accept it, with
getAttribute).
That's why after all, I prefer to use a dedicated tag (let's put everything "not standard" together).
The solution that comes to my mind for konqueror is to to do:
|
Source code
|
1
|
<span class="myclass" attrib1="data1" attrib2="data2" > </span>
|
And then loop through all span tags, and look for class that are "myclass".
Any suggestion for a more elegant/better solution ?
If you have a "XHTML" compliant solution tell me: I need to store many different datas,
inside different "attributes".The code should require the "less typing", small size, easy to read etc...
It would be nice if konqueror has a minimal support for non standard tags ....
thanks