Closed
Bug 266134
Opened 20 years ago
Closed 20 years ago
"id" doesn't work for image map when using xhtml 1.1
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 109445
People
(Reporter: pplwong, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 When using client side image map in xhtml1.1, "name" is already deprecated, so I used "id" instead. And use something like <img usemap"#theID" /> to map the map and image together. However, the result is that the "id" attribute doesn't work. So I have to use "name" for it. I believe it's a violation of xhtml doc. Reproducible: Always Steps to Reproduce: Create a file with soemthing like: <map id="id1"> <area {something}/> </map> <img src"{something}" usemap"#id1" /> Actual Results: The map doesn't work unless we change <map id="id1"> to <map name="id1"> Expected Results: It should work with id instead of name
Comment 1•20 years ago
|
||
You can't do that unless you serve your page as application/xhtml+xml, as an XHTML 1.1 page is supposed to be. Otherwise, it's parsed as text/html, and so has to be written to be compatible as in http://www.w3.org/TR/xhtml1/#guidelines *** This bug has been marked as a duplicate of 109445 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 2•20 years ago
|
||
Oh, thanks. So I need to add a meta tag?
Comment 3•20 years ago
|
||
No, adding a meta tag won't affect the behavior here. Following the XHTML specification will, though.
Updated•20 years ago
|
Product: Browser → Seamonkey
Updated•20 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•