Closed Bug 93929 Opened 23 years ago Closed 23 years ago

Mozilla doesn't handle table cells that are hyperlinks

Categories

(Core :: Layout: Tables, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: aleksander.adamowski, Assigned: karnaze)

Details

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 .
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
Closed: 23 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.