W3C home > Mailing lists > Public > www-validator@w3.org > August 2012

Issue with the markup validator and img name

From: <tb-w3cvalidator@peperoni.de>
Date: Wed, 22 Aug 2012 19:21:58 +0200
Message-ID: <60D5E38515DF904487B70F84C1E03C110661FD92@missinformation>
To: <www-validator@w3.org>

I have an issue with the markup validator regarding the "img" tag in various mobile flavors of XHTML. We are integrating mobile ads into our XHTML pages, but this one does not pass our validator installation because of the "name" attribute:

<img alt="" height="1" width="1" name="trackingUrl" src="http://...."/>

- According to this comparison table, the "img" tag does not have the attribute "name" in any of the listed XHTML flavors:

- Our local installation of the W3C markup validator (v0.8.5 with additionally installed XHTML Mobile Profile DTDs) does not accept the name attribute:
             Attribute "name" exists, but can not be used for this element.
  This matches the comparison table mentioned above.

- BUT http://validator.w3.org/ (v1.3) does NOT refuse the name attribute for any of these XHTML flavors:
             XHTML 1.1
             XHTML Basic 1.1
             XHTML Mobile Profile 1.0
             XHTML Mobile Profile 1.1
             XHTML Mobile Profile 1.2

  The attribute "name" is only rejected for XHTML Strict 1.0: 
             there is no attribute "name"

I have prepared some documents so you can try validator.w3.org with an "img" tag including a "name" attribute:

XHTML 1.1 ("Valid" - img name attribute is allowed although it does not exist):

XHTML Basic 1.1 ("Valid" - img name attribute is allowed although it does not exist):

XHTML Mobile Profile 1.0 ("Valid" - img name attribute is allowed although it does not exist):

XHTML Mobile Profile 1.1 (Errors in the MP 1.1 DTDs but not in the document):

XHTML Mobile Profile 1.2 ("Valid" - img name attribute is allowed although it does not exist):

XHTML Strict 1.0 ("Invalid" - img name attribute is rejected):

Why is the "name" attribute accepted for all the other XHTML flavors?

Which one is right? 
- Is the W3C comparison table wrong AND our validator installation is broken? 
  (i.e. there is a "name" attribute for the "img" tag)
- Or is http://validator.w3.org/ broken? 
  (i.e. there is no "name" attribute for the "img" tag)

Or am I missing something else?

Your help would be greatly appreciated!

Best Regards

Thomas Bühren
Peperoni Mobile & Internet Software GmbH
Firmensitz: Leibnizstr. 1, D-58097 Hagen
Geschäftsführer: Maciej Kuszpa, Thomas Bühren
Rechtsform: Gesellschaft mit beschränkter Haftung
Registergericht: Amtsgericht Hagen HRB 4101
Received on Wednesday, 22 August 2012 19:30:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:28 UTC