Laurence Rowe wrote:
>
>
> 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
>
Thanks for that Dan. I'm unable to reproduce this problem under either Mac
OS X or Ubuntu 10.04. I've added a test for this to xdv, could you try
running it for me on your machine?
svn co https://codespeak.net/svn/z3/xdv/trunk xdv
cd xdv
python2.4 bootstrap.py
bin/buildout
bin/test
Also, what versions of libxml2 and libxslt do you have installed?
Laurence
--
View this message in context:
http://plone.293351.n2.nabble.com/xdv-questions-tp5465398p5510571.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