Closed
Bug 272276
Opened 20 years ago
Closed 20 years ago
Usemap cannot refer to <map> which has id but no name.
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: sgroot, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 According to the XHTML1.1 specification: On the a and map elements, the name attribute has been removed in favor of the id attribute (as defined in [XHTMLMOD]). However, if a <map> element is present in the document with only an id attribute (no name attribute), it cannot be referred to by the usemap attribute. This means it is currently not possible to create XHTML1.1 compliant pages with a <map> in them that work on Mozilla. Reproducible: Always Steps to Reproduce: 1. Navigate to a page that has a <map> with no name attribute. (I am currently unable to provide an example page demonstrating the problem, sorry for that) Actual Results: The image did not use the map specified by the usemap element. Expected Results: The image should have found the map by its id attribute and used it.
Comment 1•20 years ago
|
||
This only works if you serve the page as application/xhtml+xml. If you are serving the page as text/html, it is parsed as HTML so the HTML rules apply -- meaning you need 'name'.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•