Mar
02
2008

xHTML Valid Entrecard Code

Last night before I slept, I tried to revalidate the code of this unDirty theme and noticed that it is not valid anymore. Here’s a screencap of the report overview:

3 errors found

Then, I tried to look at the errors below. It says that the errors are on the Entrecard widget code. I tried fixing it up for a couple of minutes until I actually found the real problem.

error.jpg

Entrecard supplied the non xHTML 1.0 Transitional code:

<script src="http://entrecard.s3.amazonaws.com/widget.js?type=standard_250&user_id=[YOUR_USER_ID]" type="text/javascript" id="ecard_widget"></script>

The problem is on the &user_id part since the ampersand is also used in xHTML as an ascii-character generator such as for a breakline. To fix it, just change the ampersand to & yielding this result:

<script src="http://entrecard.s3.amazonaws.com/widget.js?type=standard_250&user_id=[YOUR_USER_ID]" type="text/javascript" id="ecard_widget"></script>

Hope it helps!

4 Responses to “xHTML Valid Entrecard Code” (join them?)

 
richard
March 2, 2008 at 12:38 pm

yo! may bago akong bahay.. hehhe :-) pakichange ng link..


 
richard
March 3, 2008 at 12:26 pm

tol, pakipalitan ng brycebugz ang pulsecircle.. salamat :-)


 
Blake
June 7, 2008 at 7:58 am

I do not see the difference between the two tags. Can someone explain the difference?


 
Cheri Ahne
February 1, 2010 at 11:30 am

I use Mass-Follow.com to submit my articles to like 400 places


Leave a reply!