Code to show the "validated" image doesn't validate ;))

From: Thomas Deniau (thomasdeniau@mac.com)
Date: Sat, Sep 22 2001

  • Next message: Sean B. Palmer: "Re: Code to show the "validated" image doesn't validate ;))"

    Date: Sat, 22 Sep 2001 17:53:57 +0200
    From: Thomas Deniau <thomasdeniau@mac.com>
    To: <www-validator@w3.org>
    Message-ID: <B7D280B5.560E%thomasdeniau@mac.com>
    Subject: Code to show the "validated" image doesn't validate ;))
    
    When I validate a document as XHTML 1.1, I get the following code to insert
    a "w3c xhtml" image, but when I insert this code, the page doesn't validate
    anymore ! In fact, this code uses the "height" and "width" attributes, which
    are deprecated in XHTML 1.1 ... This is easy to correct (use css instead of
    attributes) but shouldnąt the validator always give correct code ? ;)
    
    <p>
    <a href="http://validator.w3.org/check/referer"><img
            src="http://www.w3.org/Icons/valid-xhtml11"
            alt="Valid XHTML 1.1!" height="31" width="88" /></a>
                                    ^^^^^^^^^^^^^^^^^^^^
                                        problem here
    </p>