[Webkit-unassigned] [Bug 22539] New: Unexpected behaviour while using xhtml transitional and short "<a>" tags

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 28 00:28:02 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22539

           Summary: Unexpected behaviour while using xhtml transitional and
                    short "<a>" tags
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: Alexander.Mitin at gmail.com


I beleive I've found a bug while rendering the xhtml transitional document by
WebKit nightly (28.11.2008), Safari 3.2.1 and the latest Chrome affected as
well.
Here is the simple test case:

test.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> 
    <title>test</title> 
    <link rel="stylesheet" href="default.css" type="text/css" />
</head> 
<body> 
<table border="1"> 
    <tr><td> <a name="top" /> 
    <table> 
        <tr><td> <a name="23" /> 
        <table border="1"> 
            <tr>
                <td>text1</td>
                <td>text2</td>
            </tr> 
            <tr><td colspan="2"><a href="#top">top</a></td></tr>
        </table> 
        </td></tr> 
        <tr><td> <a name="12" /> 
        <table border="1"> 
            <tr>
                <td>text3</td>
                <td>text4</td>
            </tr> 
            <tr><td colspan="2"><a href="#top">top</a></td></tr>
        </table> 
        </td></tr> 
    </table>
    </td></tr> 
</table>
</body> 
</html> 

default.css:
a:link, a:active, a:visited
{ 
        color: #006699;
        text-decoration:none;
}
a:hover
{
        text-decoration:none;
        color: #EE4000;
}

The document passes the validation by w3c online at http://validator.w3.org/

Actual behaviour:
Text in table cells change its color by mouse hovering on it as if it
surrounded by <a> tag.
Expected behaviour:
Text in table cells stay black.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list