Closed Bug 506636 Opened 15 years ago Closed 15 years ago

Mismatched img tag on docs blog post.

Categories

(Mozilla Messaging Graveyard :: Release Engineering, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: standard8, Assigned: jenzed)

References

()

Details

Attachments

(1 file)

I'm seeing this in Thunderbird as I'm subscribed to the docs feed.

Error: mismatched tag. Expected: </img>.
Source File: http://blogs.mozillamessaging.com/docs/feeds/posts/default/
Line: 134, Column: 246
Source Code:
  <div id="text-463071331" class="widget widget_text">      <div class="textwidget"><a href="http://www.mozillamessaging.com/en-US/thunderbird/" target="blank"><img src="http://blogs.mozillamessaging.com/docs/files/2009/06/stb_blue_0_110.jpg"></a></div>
From: http://validator.w3.org/check?uri=http%3A%2F%2Fblogs.mozillamessaging.com%2Fdocs%2Ffeeds%2Fposts%2Fdefault%2F&charset=(detect+automatically)&doctype=Inline&group=0

"
#  Error  Line 134, Column 247: end tag for "img" omitted, but OMITTAG NO was specified

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
"

Looks like the DTD specifies XHTML 1.0 Transitional and that it isn't correct.
Assignee: nobody → jenzed
Attached patch Close image tagsSplinter Review
The solution that seems to keep the validator is to close the 3 images tags, i.e.

<img ...> to <img ... />

Probably needs changing in the templates used for that blog. Jen ?
Managed to fix the Widgets myself, and now, looking at the validator:

This document was successfully checked as XHTML 1.0 Transitional!
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: