This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1478 - Icon code on XHTML 1.0 Strict results page is *not* valid XHTML 1.0 Strict!
Summary: Icon code on XHTML 1.0 Strict results page is *not* valid XHTML 1.0 Strict!
Alias: None
Product: Validator
Classification: Unclassified
Component: Website (show other bugs)
Version: 0.7.0
Hardware: All All
: P5 minor
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
: 2573 (view as bug list)
Depends on:
Reported: 2005-05-19 22:42 UTC by Daniel Dawson
Modified: 2005-12-09 13:01 UTC (History)
1 user (show)

See Also:


Description Daniel Dawson 2005-05-19 22:42:58 UTC
After validating a page as XHTML 1.0 Strict, I see the following code for
displaying an icon indicating the page is valid XHTML 1.0:

  <a href=""><img
      alt="Valid XHTML 1.0!" height="31" width="88" /></a>

Ironically, its use of presentational attributes means this code will cause a
page to be invalid. You should provide a version of this without those
attributes when validating XHTML Strict (and, I suppose, an equivalent for HTML
Comment 1 Olivier Thereaux 2005-05-23 06:01:15 UTC
(In reply to comment #0)

What makes you think that the height and width attributes for the img element are not valid? does not seem to agree with 
you, at least.

That said, yes, these could probably be removed.
Comment 2 Daniel Dawson 2005-05-23 07:18:35 UTC
Silly me. You're right. I guess I just assumed those attributes were deprecated.
Actually, claims that all
such elements (on IMG and OBJECT) are deprecated, but these are excluded for
some reason. Not entirely sure why. Oh well, better use the list next time.
Comment 3 Olivier Thereaux 2005-12-09 12:57:44 UTC
*** Bug 2573 has been marked as a duplicate of this bug. ***