W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > May 2011

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

From: Luc Pardon <lucp@skopos.be>
Date: Mon, 16 May 2011 11:02:23 +0200
Message-ID: <4DD0E81F.2010605@skopos.be>
To: public-mobileok-checker@w3.org
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"

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 ;-) ?



[1] http://www.w3.org/Bugs/Public/show_bug.cgi?id=5359
Received on Tuesday, 17 May 2011 08:58:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:21:21 UTC