W3C home > Mailing lists > Public > www-validator-cvs@w3.org > June 2013

[Bug 22473] False detected error with "src" attribute

From: <bugzilla@jessica.w3.org>
Date: Wed, 26 Jun 2013 11:46:12 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-22473-169-mWYMag0YIm@http.www.w3.org/Bugs/Public/>

Michael[tm] Smith <mike@w3.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |mike@w3.org
         Resolution|---                         |WORKSFORME

--- Comment #1 from Michael[tm] Smith <mike@w3.org> ---
(In reply to comment #0)
> When I have a webpage with the "src" attribute, it's detected as an error
> (and seems to recognize "src" like "srcset" attribute), althoug it shouldn't.
> The report of the bug can be found here :
> http://validator.w3.org/nu/?doc=https%3A%2F%2Ffr.wiktionary.
> org%2Fwiki%2FWiktionnaire%3AWikid%25C3%25A9mie%2Fmai_2013

Actually, for that page, the validator is correctly reporting an error for the
"srcset" attribute, not the "src" attribute. Please look at the actual HTML
source of that page.

> Error: Attribute srcset not allowed on element img at this point.
> From line 1658, column 91; to line 1658, column 482
> <img alt="Pour"
> src="//upload.wikimedia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.
> svg/17p…dia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.svg/34px-
> Symbol_support_vote.svg.png 2x" />

Please look at the actual HTML source of the page. It has this:

<img alt="Pour"
width="17" height="17"
2x" />

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 26 June 2013 11:46:14 UTC

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