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>
Hello,

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:
  http://www.w3.org/2007/09/dtd-comparison.html 


- 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):
http://validator.w3.org/check?uri=http%3A%2F%2Fmcsdemo.demo.peperoni.de%2Ftest%2Fxhtml-11&charset=%28detect+automatically%29&doctype=Inline&group=0&ss=1 

XHTML Basic 1.1 ("Valid" - img name attribute is allowed although it does not exist):
http://validator.w3.org/check?uri=http%3A%2F%2Fmcsdemo.demo.peperoni.de%2Ftest%2Fxhtml-basic-11&charset=%28detect+automatically%29&doctype=Inline&group=0&ss=1 

XHTML Mobile Profile 1.0 ("Valid" - img name attribute is allowed although it does not exist):
http://validator.w3.org/check?uri=http%3A%2F%2Fmcsdemo.demo.peperoni.de%2Ftest%2Fxhtml-mobile-10&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3&ss=1 

XHTML Mobile Profile 1.1 (Errors in the MP 1.1 DTDs but not in the document):
http://validator.w3.org/check?uri=http%3A%2F%2Fmcsdemo.demo.peperoni.de%2Ftest%2Fxhtml-mobile-11&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3&ss=1 

XHTML Mobile Profile 1.2 ("Valid" - img name attribute is allowed although it does not exist):
http://validator.w3.org/check?uri=http%3A%2F%2Fmcsdemo.demo.peperoni.de%2Ftest%2Fxhtml-mobile-12&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3&ss=1 


XHTML Strict 1.0 ("Invalid" - img name attribute is rejected):
http://validator.w3.org/check?uri=http%3A%2F%2Fmcsdemo.demo.peperoni.de%2Ftest%2Fxhtml-strict-10&charset=%28detect+automatically%29&doctype=Inline&group=0&ss=1

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 22 August 2012 19:30:12 GMT