Dan Jacka wrote:
>
>
> Tom Gross wrote:
>>
>> .. concerning xdv:
>>
>> 1. How can inline JavaScript be included? The Usecase is: PloneFormGen
>> allows to incect arbitrary (javascript) code into a form with the
>> HeaderInjection-field. If the field is rendered with an HTML comment
>> '<!--' the whole script is ignored. If the HTML comment is omitted the
>> script is enclosed with <![CDATA[ ... ]]> and the browser can't
>> interpret the script.
>>
>
> Another example of the same problem: the criterion edit form
> (criterion_edit_form.cpt) in Products.ATContentTypes. The jQuery that
> controls available field types is inline, wrapped in commented CDATA.
>
>
> // <![CDATA[
> .
> alert('actual script here')
> .
> // ]]>
>
>
> Through XDV, the browser gets:
>
>
> <![CDATA[
> // <![CDATA[
> .
> alert('actual script here')
> .
> // ]]]]><![CDATA[>
> ]]>
>
>
> I'm using xdv 0.4b2 and collective.xdv 1.0rc10 on Plone 3.3.5.
>
> Dan
>
Hi Dan,
I'm unable to reproduce this (using Plone 4.0 here, but the markup seems
unchanged.). Could you send me your rules and theme (by private mail) so I
can take a look?
Laurence
--
View this message in context:
http://plone.293351.n2.nabble.com/xdv-questions-tp5465398p5503350.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers