I'm trying to put a for loop in my google gadget definition, but iGoogle Gadget Checker throws an error on a simple for loop.
Does anyone have any experience with this? Should I be using a different gadget validator?
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Test Gadget">
</ModulePrefs>
<Content type="html">
<script>
for (var i=0; i<10; i++) {
console.log(i);
}
</script>
</Content>
</Module>
XML requires HTML character data to be defined with CDATA tags in order to not confuse the parser.