Page MenuHomePhabricator

HTML validation: Attribute srcset not allowed on element img at this point.v
Closed, InvalidPublic

Description

When images are included on a page, the srcset attribute is included in the <img> tag. This is not allowed in HTML5.

http://en.wikipedia.org/wiki/User:Gadget850/srcset

http://validator.w3.org/check?uri=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FUser%3AGadget850%2Fsrcset

http://dev.w3.org/html5/spec-author-view/the-img-element.html#the-img-element


Version: 1.21.x
Severity: minor

Details

Reference
bz41346

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:12 AM
bzimport set Reference to bz41346.
bzimport added a subscriber: Unknown Object (MLST).

It looks like this was intentional: Gerrit change 24115

CCing Brion.

srcset is still new in the draft spec and probably hasn't made its way to the validator yet.

Is this causing any problems with browsers which aren't aware of srcset? If not I suggest WONTFIX.

(In reply to comment #4)

the live draft spec, which does include srcset

> Close this ticket as INVALID as per last comment?

I emailed the validator folks and documented the issue.

(In reply to comment #5)

> Close this ticket as INVALID as per last comment?

I agree.