Ah. Very nice.
On Sun, Jan 31, 2010 at 3:05 PM, Bryan Larsen <[email protected]>wrote:
> DRYML is parsed using an XML parser. However, the standard HTML trick to
> XML validate is to place your javascript inside of an XML comment:
>
> <script>
> <!--
> alert(1<2);
> -->
> </script>
>
> Bryan
>
>
> Patrick Fitzgerald wrote:
>
>> Hi,
>> I was tinkering around with some JavaScript and ran into what I
>> think could be a bug in the DRYML parser. Basically I had something
>> like this:
>>
>> <def tag="mytag" for="mymodel">
>> <page>
>> normal page stuff
>> </page>
>> <script>
>> // Custom JavaScript here
>> for(i = 0; i < length; i++)
>> {
>> do something;
>> }
>> </script>
>> </def>
>>
>> Probably shouldn't have JavaScript stuck into a tag like that but the
>> DRYML parser sees the conditonal less-than operator (<) as the
>> beginning of a new tag. This results in the standard "unconsumed
>> characters" error.
>>
>> Is this a bug?
>>
>> Patrick
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<hobousers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.
>
>
--
Thanks,
Owen
Owen Dall
Barquin International
410-991-0811
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.