Pages validate OK so long as all image tags end with "/>" rather than ">". Functionality unaltered by this change.

I've manually made the change in my own files, but could it be incorporated into the next release?

CommentFileSizeAuthor
#2 unclosed_img_tags-1819130.patch41.04 KBb-reid
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

p0rtion’s picture

Issue summary: View changes

Added speech marks so that text not interpreted as markup

p0rtion’s picture

Title: <img tags no closed leads to w3c compliance failure » unclosed <img tags causes w3c validation failure

Altered summary/title to make issue clearer

p0rtion’s picture

Issue summary: View changes

Third time lucky...

b-reid’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
41.04 KB

I think this is the patch you are looking for, I closed up all img tags.

The reason for this issue is because older sites, or even sites based off omega 2 or 3 use XHTML 1.0 Transitional Doctype.

I would recommend anyone at this point to upgrade their site to HTML5 doctype.

Sources:

https://stackoverflow.com/questions/15149641/do-i-need-a-at-the-end-of-a...
https://www.w3schools.com/tags/tag_doctype.asp

kyletaylored’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

apaderno’s picture

Issue tags: -W3::C validation +W3C validation

I am merging two issue tags. I apologize for bumping a closed issue.