Mozilla doesn't handle table cells that are hyperlinks

VERIFIED INVALID

Status

()

Core
Layout: Tables
VERIFIED INVALID
17 years ago
17 years ago

People

(Reporter: Aleksander Adamowski, Assigned: karnaze (gone))

Tracking

Trunk
x86
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
This bug sprang off of bug 71038.
See attachment 39534 [details].
(http://bugzilla.mozilla.org/showattachment.cgi?attach_id=39534)

It should be possible to do the following:

<a href="something">
<td> Some text</td>
</a>

or even:

<a href="something">
<td>Some text</td>
<td>Some more text</td>
<td><img src="someimage.png"><br></td>
</a>

All the table cells that are enclosed in an <a> tag should be treated in whole
as hyperlinks.
MS IE handles this, and an example of a page that uses this is http://www.x86.pl .

Comment 1

17 years ago
I added a dcotype and went to validator.w3.org
this bug is either invalid or should belong to evangilism
 
 Below are the results of attempting to parse this document with an SGML parser.

    * Line 10, column 37:

<a href="http://office.altkom.com.pl"> 
^

      Error: element "A" not allowed here; possible cause is an inline element
containing a block-level element (explanation...)
    * Line 11, column 4:

<td> This should be a clickable link </td>
^

      Error: element "TD" not allowed here; check which elements this element
may be contained within (explanation...)
    * Line 13, column 6:

</tr>
^

      Error: missing a required sub-element of "TR" (explanation...)

HTML does NOT allow you to enclose one or more table cells within a link; table 
cells are block-level content, which enclose inline content such as links.  If 
you want to make a number of table cells links, each one has to enclose a link; 
the HTML content model just doesn't support the example given above. Closing as 
INVALID; if there's strong demand for this (mis)feature, we can reopen.
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID
It seems the reporter's intent was to get this to work so this is verified invalid.

Since a site happened to sneak by, Bug 93969 has been filed regarding the
evangelism on x86.pl
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.