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
To: www-validator-cvs@w3.org
Message-Id: <E1HiWhU-0003N8-Mf@wiggum.w3.org>


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

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
Received on Monday, 30 April 2007 14:18:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:28 UTC