Opened 17 years ago
Closed 17 years ago
#7365 closed defect (invalid)
Safari and <map> under the {{{#!html }}}
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wiki system | Version: | 0.10.4 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
I am using Safari 3.1.1 (4525.18) on Mac OS X 1.4 and when I view the page with map does not want to make the links clickable
{{{
#!html
<center>
<img src="../attachment/wiki/MyImage/MyImage.png?format=raw" title="MyImage" usemap="MyImage">
<map name="MyImage" id="MyImage">
<area shape=rect coords="197,634,286,649" href="link1">
<area shape=rect coords="536,453,606,499" href="link2">
<area shape=rect coords="508,494,606,525" href="link3">
</map>
</img>
</center>
}}}
Different web browsers present it properly.
Attachments (0)
Change History (3)
follow-up: 2 comment:1 by , 17 years ago
| Component: | attachment → wiki system |
|---|---|
| Priority: | high → normal |
| Severity: | major → normal |
comment:2 by , 17 years ago
Replying to eblot:
At least, <center> is not a valid XHMTL strict tag. I don't think it's the root cause of the issue here, but it's invalid nonetheless.
… as well as shape value that should be quoted: <img shape="rect" ... />
comment:3 by , 17 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Trac is producing XHTML strict web page. So you need to write XHTML-compliant code. It is not, which explain the Safari "bug".
The following XHTML snippet should work:
<map name="MyImage" id="MyImage">
<area shape="rect" coords="197,634,286,649" href="link1">
<area shape="rect" coords="536,453,606,499" href="link2">
<area shape="rect" coords="508,494,606,525" href="link3">
</map>
<img src="../attachment/wiki/MyImage/MyImage.png?format=raw"
title="MyImage" usemap="#MyImage" style="align: center" />



At least, <center> is not a valid XHMTL strict tag. I don't think it's the root cause of the issue here, but it's invalid nonetheless.