Debian Bug report logs - #253162
Certain non-standard HTML tables are rendered inconsistently when compared to other browsers

version graph

Package: w3m; Maintainer for w3m is Tatsuya Kinoshita <tats@debian.org>; Source for w3m is src:w3m (PTS, buildd, popcon).

Reported by: Timo Lilja <Timo.Lilja@hut.fi>

Date: Mon, 7 Jun 2004 15:18:04 UTC

Severity: wishlist

Found in version 0.5.1-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#253162; Package w3m. (full text, mbox, link).


Acknowledgement sent to Timo Lilja <Timo.Lilja@hut.fi>:
New Bug report received and forwarded. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Timo Lilja <Timo.Lilja@hut.fi>
To: submit@bugs.debian.org
Subject: Certain non-standard HTML tables are rendered inconsistently when compared to other browsers
Date: Mon, 07 Jun 2004 18:11:17 +0300
Package: w3m
Version: 0.5.1-1
Severity: wishlist

w3m renders HTML tables with the following non-standard HTML structure
somewhat inconsistently when compared to other browsers:

---cut---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
  <HEAD>
    <TITLE></TITLE>
  </HEAD>

  <BODY>
    <H1></H1>

    <TABLE border="1">
        <TR>extra cell<TD>data 1,1</TD></TR>
        <TR><TD>data 2,1</TD></TR>
    </TABLE>

  </BODY>
</HTML>
---cut---

This will be rendered as:

+--------------------+
|extra cell |data 1,1|
|-----------+--------|
|data 2,1   |        |
+--------------------+
   
Links and Mozilla will render the table as (taken from Links):


   extra cell
   +----------+
   | data 1,1 |
   |----------|
   | data 2,1 |
   +----------+

That is, there is no extra cell nor row.

I'm aware that according to HTML specs after <TR> there should be
nothing else than <TH> or <TD> tag, so the above HTML snippet is
undefined and the browser is free to render it how it sees
appropriate. However, I think, the approach chosen by Mozilla and
Links is better suited and will cause less confusion on real web
pages. (This, like many other non-standard HTML constructs are all too
common, nowadays ;( )

The actual problem appeared in a web page where there was a <FORM> tag
after <TR> causing the table header lines be off-by-one.

--
Timo Lilja

"It's a 106 miles to Chicago. We've got a full tank of gas,
half a pack of cigarettes, it's dark, and we're wearing sunglasses."



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Jun 5 03:10:10 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.