Re: Detection of HTML namespace fails when xmlns attribute is on separate line

Hello Luc,

On 05/16/2011 11:02 AM, Luc Pardon wrote:
> Hello all,
>
> When the xmlns attribute is not on the same source line as the html
> element declaration, the mobileOK checker erroneously claims that "the
> root html element does not declare its namespace".
>
> This is what triggered it for me:
>
> <html lang="nl" xml:lang="nl"
>     xmlns="http://www.w3.org/1999/xhtml">
>
> Just in case: there's a newline in front of "xmlns".

Dammit, I fixed a very similar bug a year ago for the DOCTYPE declaration and thought I had checked other possibilities as well. Apparently not :/

I checked and confirm the bug.


[...]
> Does that mean bug 5359 [1] has to be reopened or is this a feature of mobile browsing ;-) ?

That's a bug in the mobileOK Checker ;)

Bug 5359 was really about adding support for checking the HTML namespace, so I created a follow-up bug:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12666

Many thanks for reporting the issue!
Francois.

Received on Tuesday, 17 May 2011 11:00:25 UTC