Closed Bug 271197 Opened 21 years ago Closed 21 years ago

I could not click the link if the HTML file like: <a href=...><tr..><td>...</td></tr></a>

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: zzhi.zhang, Assigned: bugzilla)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 The html file looks like: <a href="...."> <tr style="cursor:hand" id="Row2" bgcolor = "#FFFFFF" onMouseOver="javascript:this.style.backgroundColor='#BBBBBB';" onMouseOut="javascript:this.style.backgroundColor='#FFFFFF';" > <td><font color="#000000">2004</font></td> <td><font color="#000000">53360526215</font></td> <td><font color="#000000">test</font></td> <td><font color="#000000">test</font></td> <td width="15%" align="right"><font color="#000000">33.20</font></td> <td>&nbsp; </td> </tr></a> The above URL link did not clickable in firefox browser. Reproducible: Always Steps to Reproduce: 1.Just write a simple page with above html contents. 2.open the html file with firefox 3.click the table line, and no any reponse. Actual Results: Regaring to the IE, it works the table line of URL should be clickable. I am not sure the HTML format is correct or wrong. But firefox should treat it as IE.
I can click on that, though the HTML is invalid, only inline elements are allowed within a link. About the cursor, use pointer if you want an element to get the hand when hovering. You can also skip the javascript: in the event callers.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
(In reply to comment #1) > I can click on that, though the HTML is invalid, only inline elements are > allowed within a link. About the cursor, use pointer if you want an element to > get the hand when hovering. > > You can also skip the javascript: in the event callers. I am not very clear what you mean. Maybe you mean the <A href="..> tag are not allowed in there. But if I want to such effection, what is the correct style?
A table is not allowed within a link, within a link y ou can only have inline elements (span, strong, em , etc)
You need to log in before you can comment on or make changes to this bug.