Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Validation Errors in Tracking Code #2642

Closed
anonymous-matomo-user opened this issue Aug 30, 2011 · 4 comments
Closed

HTML Validation Errors in Tracking Code #2642

anonymous-matomo-user opened this issue Aug 30, 2011 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

The image tracking code currently generated by Piwik (1.5.1) causes HTML Validation Errors (http://validator.w3.org) due to usage of & instead of &. See http://www.htmlhelp.com/tools/validator/problems.html#amp for details.

Current code:
<!-- Piwik Image Tracker -->
<img src="http://.../piwik.php?idsite=1&rec=1" style="border:0" alt="" />
<!-- End Piwik -->

Should be:
<!-- Piwik Image Tracker -->
<img src="http://.../piwik.php?idsite=1&rec=1" style="border:0" alt="" />
<!-- End Piwik -->

Additional remark: Following forum topic seems to relate to a similar error elsewhere: http://forum.piwik.org/read.php?2,75981

@robocoder
Copy link
Contributor

most browsers can disambiguate the URL, i.e., &rec isn't treated as an entity name because there's no semi-colon.

@mattab
Copy link
Member

mattab commented Sep 27, 2011

Actually a documentation issue more than a code issue.

@mattab
Copy link
Member

mattab commented Sep 27, 2011

(In [5232]) Fixes #2642 - adding calls to str_replace(&amp)

@anonymous-matomo-user
Copy link
Author

Re-submitted the issue in the image tracking code as ticket #2733. Unfortunately, the issue in the "Image Tracker code" shown in the web interface is still present in Piwik version 1.6. Despite the fact that "&" is present in DisplayAlternativeTags.tpl.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants