Skip navigation.

exploreopera

| Help

Sign up | Help

dead live

, , , , , , ,

live.com was fixed to work in Opera but apparently recent changes have broken it again. Here is why:

  • They declare a namespace without associating a namespace URI with it: <html xmlns:Web> in a normal text/html document
  • When they use the namespace in <web:binding>, Opera will not return that element when you do document.getElementsByTagName('binding')
  • (Also note that they use a capital letter in the namespace declaration and lower case in the document)

Now, this would work fine if they sent an XHTML content-type, added a namespace URI and fixed the case issue.

But is it a bug in Opera? I haven't been able to interpret the xmlns spec in enough detail to understand whether this is covered. Or is it in the DOM spec? Validation certainly seems to say it is wrong to declare a namespace without URI.

The only thing I know for sure is that FireFox does the same as Opera, and that might indicate that a standard is being followed. Perhaps readers more skilled at xmlns juggling can enlighten me, if not I'll learn when developers comment on the bug report..

Geir Ivarsøy (1957-2006)Semantic CSS?

Comments

avatar
getElementsByTagName() shouldn't return namespaced elements, at least that's what I used to think.

By feldgendler, # 27. March 2006, 06:10:57

avatar
The explanation makes me go d'oh, of course:

* page is sent as text/html, meaning we use HTML mode, not XHTML. Consequently, xmlns attributes is ignored entirely.

* and.. that means there are custom elements named "web:binding" in that page. One should use getElementsByTagName('web:binding') to get to them..

Right.

By hallvors, # 27. March 2006, 09:38:27

avatar
May I sugest some browser.js instead of twisting Opera's standards support ?

By xErath, # 7. April 2006, 04:11:25

avatar
I'll nag them again about fixing it..

By hallvors, # 12. April 2006, 16:01:05

avatar
I've already send message to live.com support.

By ViJu, # 12. April 2006, 20:00:09

Write a comment

You must be logged in to write a comment. if you're not a registered member, please sign up.