[Webkit-unassigned] [Bug 97204] New: HTML map does not work using id attribute in xhtml 1.1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 20 06:06:09 PDT 2012


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

           Summary: HTML map does not work using id attribute in xhtml 1.1
           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: vabr+webkit+bugs at chromium.org


[This is derived from http://crbug.com/108489 ]

== Summary ==
It looks like for XHTML 1.1, WebKit ignores "id" attribute for the "map" HTML tag, and does not ignore the "name" attribute.
The norm, on the other hand, prescribes "id" and forbids "name" for the "map" tag.
See:
http://www.w3.org/TR/xhtml1/#h-4.10
http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_imapmodule
http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Client-side_Image_Map (search for "'usemap' points to the 'id' attribute of a <map> element")

== Reproduction ==
Steps:
1. Go to http://xkcd.com/
2. Click on any of the five thumbnails of the old issues of the comics at the bottom of the page.

Expected:
* The browser should navigate to the old comics.

Observed:
* Nothing happens.

This was observed on GNU/Linux running:
 * Chromium 24.0.1272.0 (Developer Build 157719) + WebKit 537.11 (trunk at 128849)
 * Google Chrome 22.0.1229.56 (Official Build 156464) beta + WebKit 537.4 (@128207)
and also on other configurations (see http://crbug.com/108489).

== Pointer to source ==
I looks like the culprit is the conditional

if (document()->isHTMLDocument())
                return;

in HTMLMapElement::parseAttribute() in WebCore/html/HTMLMapElement.cpp

If that is removed, the id works OK.

-- 
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