[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Konqueror misrendering?
From:       Andreas Schlapbach <schlpbch () iam ! unibe ! ch>
Date:       2001-05-14 21:35:05
[Download RAW message or body]

On Mon, 14 May 2001, Adriaan de Groot wrote:

> [ cc-ed to kfm-devel since that seems to be the konqueror devel list ]
>
> > A testcase of the page stripped down to where the problem ocuurs would
> > help a lot more. ;)
>
> Andreas: actually the original question was: is this misrendering due to my
> compile of konqueror or a real problem? And we have three votes for "real
> problem" and one additional comment that it was fine in 2.1.1 (which i knew,
> since i run 2.1.1 on another machine and it renders fine.)

It's very unlikely that if there were a compilation problem it would show
up in such a subtle way.

> Anyway, I've discovered that removing the table captions -- which are buggy
> in their own right -- makes the table render just fine. The problematic bit
> of HTML looks like this:
>
> 	<CAPTION><P><BR></CAPTION>
>
> so the unbalanced <P> seems to be a problem. Well, I've attached a mini-HTML

Exactly. If you look at the file attached you'll see how it's represented
in the DOM tree produced by the khtmls HTML parser.

    <P>
      This is a song about a plant.
    </P>
    <TABLE>
      <CAPTION>
        <P>
          Song
        </P>

Because of the </P> missing, the parser gets confused and throws out all
<td> tags -> no table showing.

So we now know whats going wrong, and we can now fix it.

Isn't this nice? :)

Andreas

BTW: Hope is better than dope.
--
  Andreas Schlapbach      schlpbch@iam.unibe.ch
  http://www.iam.unibe.ch/~schlpbch
                 "/home sweet /home."

["minitestDOM.html" (TEXT/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<HTML>
  <HEAD>
    <TITLE>
      This is a test
    </TITLE>
  </HEAD>
  <BODY>
    <P>
      This is a song about a plant.
    </P>
    <TABLE>
      <CAPTION>
        <P>
          Song
        </P>
        <P>
          A strong plant
        </P>
        <P>
          A powerful plant
        </P>
         
        A beautiful, a pleasant, a useful plant.
        This is a song about the
        <I>
           cannabis sativa hollandica
        </I>
        , also known as Nederwiet.
         
      </CAPTION>
    </TABLE>
  </BODY>
</HTML>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic