|Validate last 3 errors?|
Need to validate the last remaining errors regarding my e-commerce website.
| 7:43 pm on Jul 27, 2012 (gmt 0)|
New to the forums, been browsing for a while and learn't a vast amount already. I have 2 errors that i am trying to validate and i just can't seem to get my head around them and solve them!
Line 357, Column 159: document type does not allow element "img" here
Line 358, Column 156: document type does not allow element "img" here
Code from line 349:
buttonNextHTML: '<img class="button-right" src="http://www.example.com/skin/frontend/default/magesupport/images/btn_rght_arrow.gif" alt="Right Arrow" />',
buttonPrevHTML: '<img class="button-left" src="http://www.example.com/skin/frontend/default/magesupport/images/btn_lft_arrow.gif" alt="Left Arrow" />'
Any help would be greatly appreciated, many thanks for your time.
[edited by: tedster at 8:08 pm (utc) on Jul 27, 2012]
| 8:31 pm on Jul 27, 2012 (gmt 0)|
this is presumably in the html <head>, where an image element would not be allowed.
| 12:02 am on Jul 28, 2012 (gmt 0)|
Not familiar with the jquery itself, but
- either comment the script itself out (old style)
- Or better yet: use htmlentities < and > instead of < and > in the strings in your script.
| 2:51 am on Jul 29, 2012 (gmt 0)|
welcome to WebmasterWorld, mattapp!
| 2:33 pm on Jul 30, 2012 (gmt 0)|
Heard my name mentioned... ;)
Yeah, I was just about to chime in and say that this is easily solved by moving the script to an external file. Better for caching, better for separation of content/behavior, and better for validation purposes.