Post by expanism » Sun May 13, 2012 2:57 pm

When you run the category page (with html5 doctype) through the W3C validator it reports errors:

sort=p.sort_order&order=ASC
sort=pd.name&order=ASC
sort=pd.name&order=DESC
sort=p.price&order=ASC
sort=p.price&order=DESC
sort=rating&order=DESC
sort=rating&order=ASC
p.model&order=ASC
p.model&order=DESC

When replacing those & to & the sort fuction is not working like it should.
What changes are needed to get it pass W3C validation?

New member

Posts

Joined
Fri Sep 30, 2011 8:43 pm

Post by jim_vam » Sun May 13, 2012 8:17 pm

This & is meant to be "logical AND" and not a plain &(plus) from my experience... You cannot change this to &amp.

http://www.pcplace.gr
Opencart with X3D HTML5 WebGl 3D objects


User avatar
New member

Posts

Joined
Wed Dec 07, 2011 6:40 am

Post by storm-cloud » Sun Jul 22, 2012 7:06 pm

I know this thread was opened a couple months ago but just in case anyone stumbles upon this, I discovered a fix for this issue not too long ago.

Expanism, you were very close with the fix but I found it will only work when the HTML entity number is used instead of the entity name.

As also mentioned on the page linked to below, W3C validation seems to break only when SEO URL's are activated.

http://forum.opencart.com/viewtopic.php ... 55#p304155

Active Member

Posts

Joined
Wed Feb 22, 2012 8:07 am

Post by expanism » Sun Jul 22, 2012 8:45 pm

Thank you Storm Cloud, that did the trick! Good validations :)

New member

Posts

Joined
Fri Sep 30, 2011 8:43 pm
Who is online

Users browsing this forum: No registered users and 348 guests