[Webkit-unassigned] [Bug 91228] imagemap without a "name" attribute doesn't work (affects xkcd.com)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 15 02:08:03 PDT 2013


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





--- Comment #30 from Chen Zhixiang <chenzx at cn.fujitsu.com>  2013-07-15 02:09:04 PST ---
The new case: //Test 2, 3 failed

<html>
    <head>
        <script>
            function log(msg)
            {
                document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
            }
            function test(testNumber, success)
            {
                log("Test " + testNumber + ":")
                if (success)
                    log("  PASS: Correct map selected.");
                else
                    log("  FAIL: Incorrect map selected.");
            }
        </script>
    </head>
    <body>
        <div style="display:inline-block">
            <p>Click on the blue squares for Tests 1 - 4. You should see "PASS" to the right for the first two, and "Hit me" for the next two</p>

            <p>Test 1</p>
            <img src="square-blue-100x100.png" usemap="#TEST1">
            <map id="TEST1-not-the-same" name="TEST1">
                <area shape="rect" coords="0,0,100,100" href="javascript:void(test(1, true))">
            </map>
            <map name="TEST1">
                <area shape="rect" coords="0,0,100,100" href="javascript:void(test(1, false))">
            </map>

            <p>Test 2</p>
            <img src="square-blue-100x100.png" usemap="#TEST2">
            <map id="TEST2" name="TEST2-not-the-same">
                <area shape="rect" coords="0,0,100,100" href="javascript:void(test(2, true))">
            </map>
            <map name="TEST2">
                <area shape="rect" coords="0,0,100,100" href="javascript:void(test(2, false))">
            </map>

            <p>Test 3</p>
            <img src="square-blue-100x100.png" usemap="#TEST3">
            <p>Test 4</p>
            <img src="square-blue-100x100.png" usemap="#TEST4">
            <map id="TEST3">
                <area shape="rect" coords="0,0,100,100" href="javascript:void(test(3, true))">
            </map>
            <map name="TEST4">
                <area shape="rect" coords="0,0,100,100" href="javascript:void(test(4, true))">
            </map>
        </div>
        <div style="float:right">
            <pre style="margin-top:50px" id="console"></pre>
        </div>
    </body>
</hmtl>

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



More information about the webkit-unassigned mailing list