Closed Bug 286011 Opened 20 years ago Closed 20 years ago

Anchor enclosing table data doesn't work properly

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 176449

People

(Reporter: fred_horne, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050313
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050313

When this sequence of elements is used "<a><td></td></a>" in a table the href of
the <a> element is not processed.  The same HTML works in Internet Explorer.
This has been verified in Mozilla 1.8b2 (Mozilla/5.0 (Windows; U; Windows NT
5.0; en-US; rv:1.8b2) Gecko/20050313), and also in FireFox 1.0.1.

I have an example web page at http://www.pqsystems.com/t/bob/MozillaBug.htm that
demonstrates the issue.


Reproducible: Always

Steps to Reproduce:
1. Open http://www.pqsystems.com/t/bob/MozillaBug.htm
2. Click on the left 'Button', nothing happens.
3. Do the same thing in Internet Explorer and you are taken to www.mozilla.org,
like you should be.


Actual Results:  
When I clicked on the left 'Button', which is actually a table cell, I was not
taken to www.mozilla.org, which is the href of the <a> element.

Expected Results:  
Hopefully you can fix it so that it works just like it does in Internet
Explorer, where clicking anywhere in the cell of the left 'Button' takes you to
the href address of the <a> element.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.pqsystems.com%2Ft%2Fbob%2FMozillaBug.htm

Line 36, column 34: document type does not allow element "A" here; missing one
of "TH", "TD" start-tag

<a href="http://www.mozilla.org">

The mentioned element is not allowed to appear in the context in which you've
placed it; the other mentioned elements are the only ones that are both allowed
there and can contain the element mentioned. This might mean that you need a
containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a
block-level element (such as "<p>" or "<table>") inside an inline element (such
as "<a>", "<span>", or "<font>").

Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Resolution: INVALID → DUPLICATE
You need to log in before you can comment on or make changes to this bug.