[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


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

            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.");
                    log("  FAIL: Incorrect map selected.");
        <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 name="TEST1">
                <area shape="rect" coords="0,0,100,100" href="javascript:void(test(1, false))">

            <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 name="TEST2">
                <area shape="rect" coords="0,0,100,100" href="javascript:void(test(2, false))">

            <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 name="TEST4">
                <area shape="rect" coords="0,0,100,100" href="javascript:void(test(4, true))">
        <div style="float:right">
            <pre style="margin-top:50px" id="console"></pre>

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