Bonjour,
Lorsque je valide mes pages web par VALIDATOR SAC, j'obtiens des erreurs du type '& did not start a character reference. (& probably should have been escaped as &'. Elles proviennent de balises href telles que 'href="index.php?option=com_phocagallery&view=category&id=3:abords&Itemid=249">'. Cela n'a aucune incidence sur l'affichage de ces pages web mais ne pourrait-on pas faire + propre en respectant les normes ?
Pour info, je suis en joomla 3.4.5 et phocagallery 4.1.1.
Erreur validation W3C
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Erreur validation W3C
Hi, sorry, I don't understand french
can you write it in English. Thank you, Jan
If you find Phoca extensions useful, please support the project
-
CLAUDE68
- Phoca Newbie

- Posts: 4
- Joined: 01 Dec 2015, 10:25
Re: Erreur validation W3C
In my poor English
Hello,
When I validate my Web pages by Validator SAC, I obtain errors of the type '& did not start has character reference. (& probably should cuts been escaped ace & amp; '. They come from tags href such as 'href=" index.php? option=com_phocagallery& view=category& id=3: abords& Itemid=249
Doesn't that affect any the posting of these Web pages but couldn't one make + clean by respecting the standards?
For information, I am in joomla 3.4.5 and phocagallery 4.1.1.
Hello,
When I validate my Web pages by Validator SAC, I obtain errors of the type '& did not start has character reference. (& probably should cuts been escaped ace & amp; '. They come from tags href such as 'href=" index.php? option=com_phocagallery& view=category& id=3: abords& Itemid=249
Doesn't that affect any the posting of these Web pages but couldn't one make + clean by respecting the standards?
For information, I am in joomla 3.4.5 and phocagallery 4.1.1.
-
christine
- Phoca Hero

- Posts: 2938
- Joined: 28 Nov 2010, 17:20
Re: Erreur validation W3C
Hi,
some informations about: ambiguous-ampersands (=&)
http://stackoverflow.com/questions/1597 ... 5#15970865
https://mathiasbynens.be/notes/ambiguous-ampersands
Are you using "&" in category name?
Kind regards, Christine
some informations about: ambiguous-ampersands (=&)
http://stackoverflow.com/questions/1597 ... 5#15970865
https://mathiasbynens.be/notes/ambiguous-ampersands
Are you using "&" in category name?
Kind regards, Christine
-
CLAUDE68
- Phoca Newbie

- Posts: 4
- Joined: 01 Dec 2015, 10:25
Re: Erreur validation W3C
Hello,
I have only 2 categories with title :
Le bâtiment et ses abords
Nov. 2012 - Réfection structure des garages
Suspecting the special characters, I have a try with :
Le batiment et ses abords
Nov. 2012 - Refection structure des garages
But the problem still subsists.
What can I do ?
I have only 2 categories with title :
Le bâtiment et ses abords
Nov. 2012 - Réfection structure des garages
Suspecting the special characters, I have a try with :
Le batiment et ses abords
Nov. 2012 - Refection structure des garages
But the problem still subsists.
What can I do ?
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Erreur validation W3C
Hi,
the links in href are produced by Joomla! Jroute method - not sure why there is & and not & but I think, there should be reason for this.
I don't know if using of w3c validators should be taken as relevant. Mostly, the site is produced for people not for robots and if you want to display site with newest features (html5, css3 and specific attributes for different browsers, for different e.g. javascript features) to create the best for people, then your site will be not valid. So you do site for robots (validators) or for people (search engines).
When you see the validation of e.g. google.com, you can see the same errors with &
https://validator.w3.org/nu/?doc=http%3 ... gle.com%2F
Jan
the links in href are produced by Joomla! Jroute method - not sure why there is & and not & but I think, there should be reason for this.
I don't know if using of w3c validators should be taken as relevant. Mostly, the site is produced for people not for robots and if you want to display site with newest features (html5, css3 and specific attributes for different browsers, for different e.g. javascript features) to create the best for people, then your site will be not valid. So you do site for robots (validators) or for people (search engines).
When you see the validation of e.g. google.com, you can see the same errors with &
https://validator.w3.org/nu/?doc=http%3 ... gle.com%2F
Jan
If you find Phoca extensions useful, please support the project
-
CLAUDE68
- Phoca Newbie

- Posts: 4
- Joined: 01 Dec 2015, 10:25
Re: Erreur validation W3C
Hello,
While seeking from which this error came, I found that it is the /administrator/component/com_phocagallery/librairies/phocagallery/path/route.php file which is in question.
Pb is solved by replacing the characters there & by &
Can't one make this modification in the component phocagallery to be installed in joomla?
While seeking from which this error came, I found that it is the /administrator/component/com_phocagallery/librairies/phocagallery/path/route.php file which is in question.
Pb is solved by replacing the characters there & by &
Can't one make this modification in the component phocagallery to be installed in joomla?
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Erreur validation W3C
Hi, which place did you exactly change. Did you check to test it in e.g. UCP where the urls are inside return strings (base64) if they correctly return the redirected value?
The route method in Joomla! should get the standard URL, so I think, to change this you need to modify the Joomla! JRoute method, not the urls in route file
See e.g.:
components\com_content\helpers\route.php
as default & are used, so there are no conflicts inside the system to manage the urls
Jan
The route method in Joomla! should get the standard URL, so I think, to change this you need to modify the Joomla! JRoute method, not the urls in route file
See e.g.:
components\com_content\helpers\route.php
as default & are used, so there are no conflicts inside the system to manage the urls
Jan
If you find Phoca extensions useful, please support the project