W3C home > Mailing lists > Public > www-validator-cvs@w3.org > April 2007

[Bug 800] xmlns attribute for XML namespace not allowed

From: <bugzilla@wiggum.w3.org>
Date: Mon, 30 Apr 2007 14:18:00 +0000
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1HiWhU-0003N8-Mf@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=800


ot@w3.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #467 is|0                           |1
           obsolete|                            |




------- Comment #7 from ot@w3.org  2007-04-30 14:17 -------
Created an attachment (id=468)
 --> (http://www.w3.org/Bugs/Public/attachment.cgi?id=468&action=view)
Amended Patch, using XML mode as trigger, matching error number rather than
text

Shane, thanks a lot, your patch looks like a good solution. 
I am attaching a patch with a couple proposed modifications:
* use $File->{Mode} eq 'XML' as trigger rather than an option always set to
TRUE, so that usage of xmlns prefix in SGML/HTML mode trigger (correct) errors
* match the internal opensp error message code for the attribute, rather than
the text of the error message - which should hopefully be a little more robust
(opensp is localized in a few languages, so the error message text could be
different)
Received on Monday, 30 April 2007 14:18:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:57 GMT