You are not logged in.

1

Monday, September 4th 2006, 11:49pm

konqueror , javascript & non standard tags

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. :evil:

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

2

Wednesday, September 6th 2006, 4:33am

well after waiting impatiently for an answer (sorry I'm lacking of time)
I've decided that is not a big matter that my script doesn't support konqueror.
Why did I take this decision ?
Well I tryed the wonderfull tool "google maps" under konqueror,
and I saw a big list of supported browsers.
Konqueror was not on the list.
I found the rendering of CSS wonderfull, on konqueror.
But concerning Ajax, or nice javascript stuff, I would say that's not the right browser.
Off course, there might be the critic, that I'm using not compliant Html/xtml code; but frankly sometimes , these standards are just a pain in the a**.

I was also hoping to be able to extend a standard dtd, so that konqueror recognize my new tag . It seems that in order to define a new tag with XHTML, you have to read a whole encyclopedy. XHTML is everything but extensible.

cheers