Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

HTML Validation Errors in Tracking Code #2642

Closed
anonymous-piwik-user opened this Issue · 4 comments

3 participants

Anonymous Piwik user Anthon Pang Matthieu Aubry
Anonymous Piwik user

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

Anthon Pang
Collaborator

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

Matthieu Aubry
Owner

Actually a documentation issue more than a code issue.

Matthieu Aubry
Owner

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

Anonymous Piwik user

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.

Anonymous Piwik user anonymous-piwik-user added this to the 1.6 Piwik 1.6 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.