After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773354 - "name" attribute of image map not urlencoded, not working in Chrome
"name" attribute of image map not urlencoded, not working in Chrome
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.12
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2016-10-22 14:11 UTC by tomas.burba
Modified: 2016-12-29 18:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a minimal bunch of *.php files and the Doxyfile (28.04 KB, application/octet-stream)
2016-10-23 08:22 UTC, tomas.burba
Details

Description tomas.burba 2016-10-22 14:11:05 UTC
I have some class hierarchy in PHP, with namespaces. Generated inheritance diagrams link to particular classes in FF 23 and IE 10 but not in newest Chrome. Part of HTML source:

Inheritance diagram for my\name\space\interface:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_my_1_1_name_1_1_space_1_1_interface.png" usemap="#my_5Cname_5Cspace_5Cinterface_map" alt=""/>
  <map id="my_5Cname_5Cspace_5Cinterface_map" name="my\name\space\interface_map">

When I made the "name" attribute identical to "id", classes became clickable on the image.
Comment 1 albert 2016-10-22 20:12:18 UTC
- Did the changed version also work under the newest FF (as far as I know 49, 23 seems quite old already) and IE 10?
- What happens when you replace the backslash characters (\) by forwards slashes (/) with all 3 mentioned browsers?

Can you please attach a (small) self-contained example (source+config file in a tar or zip) that allows us to reproduce the problem?
Comment 2 tomas.burba 2016-10-23 08:22:11 UTC
Created attachment 338278 [details]
a minimal bunch of *.php files and the Doxyfile

According to http://stackoverflow.com/questions/5527290/image-map-support-in-firefox-chrome-and-other-browsers , Chrome uses the "name" attribute while others use "id". Ergo, attributes should be identical.

If I copy "id" to "name" (both become urlencoded), then the map is clickable in FF 49 and 23, IE 10 and 8, Chrome 54. No idea why you need to keep slashes in "name".

If I copy "name" to "id" (both contain slashes), convert backslashes to forward slashes and update the corresponding "usemap" attribute, then links work in all browsers above. Without the conversion Chrome still ignores the map.

Also my favorite text editor highlights any kind of slashes in "id" as invalid characters. Looks like they are allowed only in HTML5-compliant source (http://xahlee.info/js/html_allowed_chars_in_attribute.html).
Comment 3 Dimitri van Heesch 2016-10-23 08:27:45 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 4 Dimitri van Heesch 2016-12-29 18:45:40 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.13. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferably in the form of a self-contained example).