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
-- 
View this message in context: 
http://plone.293351.n2.nabble.com/xdv-questions-tp5465398p5467270.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

Reply via email to