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

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".

Leaving out the two lang attributes doesn't make any difference. Neither
does removing the spaces in front of "xmlns".

This is a Linux box so the line endings are newline (\n) only, no
carriage return (\r). Changing the source file to DOS format (\r\n)
doesn't make any difference either.

The checker isn't happy until it all goes on one line.

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

Regards,

  Luc

[1] http://www.w3.org/Bugs/Public/show_bug.cgi?id=5359

Received on Tuesday, 17 May 2011 08:58:09 UTC