View Single Post
Old 06-11-2020, 12:17 PM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
Yes, the "<" sign in the for loop is the culprit. As Doitsu explain using CDATA is a solution. As is including the script from a separate javascript resource.

You can wrap javascript // comment indicators around the CDATA piece as well for some browsers and e-readers ala:
Code:
//<![CDATA[
//]]>
And I agree with Doitsu using a class selector would be better than duplicating id attributes.
KevinH is offline   Reply With Quote