Closed Bug 227311 Opened 22 years ago Closed 22 years ago

making table cells clickable

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED INVALID

People

(Reporter: stakadush, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031201 Firebird/0.7+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031201 Firebird/0.7+ i was trying to make a single cell table clickable. i managed to make the whole table clickable but not just a single cell. in the url i submitted you can see two tables. the top one has a table inside the cell and that table has an href tag before it to make it a link,so the whole cell becomes clickable. the table on the bottom, on the other hand, is a normal table and i tried to make the cell itself a link, with no results :) Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: cell does not become a link Expected Results: cell should be a link
The syntax of that example is invalid. See http://validator.w3.org/check?uri=http%3A%2F%2Fwww.yahel.com%2Fyoav%2F&doctype=HTML+4.01+Transitional&charset=iso-8859-1+%28Western+Europe%29 You can't put an <a> between a <tr> and a <td>. Use onclick on the <td> or put the <a> inside the <td>. (In fact the same applies to putting a <table> inside an <a>, but in this case it works although it isn't correct as an inline element can't have a block element inside itself) Invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.