[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Re: khtml and <pre>
From: Lars Knoll <Lars.Knoll () mpi-hd ! mpg ! de>
Date: 1999-11-29 23:41:08
[Download RAW message or body]
On 29 Nov 1999, Simon Josefsson wrote:
> khtml seem to render the following
>
> <pre><h1>foo</h1>
> <a href="foo">bar</a>
> <a href="bar">foo</a>
> </pre>
>
> as (on one line)
>
> foo bar foo
>
> Shouldn't <pre> make \n mean literal \n's?
>
> It makes lots of automated directory listings look ugly.
Read the HTML4 specs. The content of <pre> is only allowed to be of type
inline. <h1> is a block level element. So this is illegal html, and khtml
will assume and </pre> pefore the <h1>. To get it the way you want it to
look, use
<h1>foo</h1>
<pre>
<a href="foo">bar</a>
<a href="bar">foo</a>
</pre>
I wont fix this, as it violates html standards, and there's no for us to
both tolerate this construct and make a standards compliant browser.
We already have enough workarounds for broken html in our code.
Cheers,
Lars
>
> TIA
>
>
--
Lars Knoll knoll@mpi-hd.mpg.de
PGP pub key [6DADF3D5]: finger knoll@pluto.mpi-hd.mpg.de
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic