Ticket #139 (closed enhancement: fixed)
Style error in XHTML 1.0 pass message
| Reported by: | robert@… | Owned by: | jean-gui |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | XHTML Validation Style | Cc: |
Description
After testing an XHTML 1.0 page in unicorn, there is a style error in the congratulatory message
The code to be pasted (copy paste) message suggests:
<p> <a href="http://validator.w3.org/check?uri=referer"> <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" style="height: 31; width: 88;" /> </a> </p>
Pasting this into the page, and revalidating in Unicorn generates a This document has not passed the test: W3C CSS Validator (Level 2.1) warning
This would be better:
<p>
<a href="http://validator.w3.org/check?uri=referer">
<img src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Strict"
style="height: 31px; width: 88px;"
/>
</a>
</p>
Note px added to both height and width in style.
As a matter of personal taste, I'd resize the border to 0 (zero), for consistency with the CSS validator congratulations:
<p>
<a href="http://validator.w3.org/check?uri=referer">
<img src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Strict"
style="border: 0; height: 31px; width: 88px;"
/>
</a>
</p>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
