Some problems exporting XHTML strict content that contains script tags.

If I export a node to xliff with the following node content:

<script language="javascript" src="http://www.drupal.org/foobar.js"></script>
<script language="javascript" src="http://www.drupal.org/foobar2.js"></script>

Upon import of unmodified xliff file, this is the resulting node content:

<script language="javascript" src="http://www.drupal.org/foobar.js"></script><script language="javascript" src="http://www.drupal.org/foobar2.js"></script>
<script language="javascript" src="http://www.drupal.org/foobar.js">
<script language="javascript" src="http://www.drupal.org/foobar2.js"/><br />
</script>

Comments

bryanschnabel’s picture

Hello,

This looks like an XSLT error. I cannot imagine why you'd get duplicated tags during the import. I will try to duplicate the error and see if something needs to be fixed in the XSLT. If I cannot get the error to repeat, perhaps you could supply you XHTML to me, and I could get it tested directly.

Thanks,

Bryan

zacksears’s picture

Hello, I am currently running into a similar issue with the XLIFF module. For me the script tag is not duplicated, but when I export a javascript tag such as:

it is getting mangled into:

Therefore causing my javascript to not function correctly cross-browser. Thanks, Zack