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

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 UTC