W3C home > Mailing lists > Public > www-validator@w3.org > July 2008

Re: <pre><img src="test.gif" alt="test" /></pre>

From: David Dorward <david@dorward.me.uk>
Date: Wed, 9 Jul 2008 10:07:05 +0100
Cc: <www-validator@w3.org>
Message-Id: <919DE9AD-7A3E-4C92-B879-50DFFC2F9AD0@dorward.me.uk>
To: Fredrik Medin <medda86@hotmail.com>


On 7 Jul 2008, at 22:38, Fredrik Medin wrote:

> You get an error when you do it like this:
> <pre><img src="test.gif" alt="test" /></pre>
>
> And still it shows perfectly in both IE and FF.

Browsers tend to be remarkable good at compensating for errors by  
authors, it doesn't make the language allow it though. If you want  
(X)HTML to allow img elements within pre elements, you should raise  
the matter with the appropriate working group (rather than people  
writing tools to test against existing specifications).

> you want me to send an example?
> Well I got it like here, if it's still there:
> http://medda86.com/about.php

That looks like data that would be better marked up with headings and  
lists, not as preformatted data, anyway.

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
Received on Wednesday, 9 July 2008 09:07:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:30 GMT