HTML-friendly serialization of an XHTML page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
New
|
Medium
|
Nicolae Brinza |
Bug Description
Hi,
At the moment, it is not possible for Zorba/Sausalito to produce JavaScript HTML/XHTML compatibility constructs like:
<script type="text/
//<![CDATA[
// JavaScript code here
//]]>
</script>
because it is only possible to tell the serializer to serialize the entire content of an element as a CDATA section (with cdata-section-
It would be great to have another serialization parameter, like html-friendly-
If one wants it more generic, instead of being true or false, it could be a set of tuples like ("text/javascript", "//<![CDATA[", "//]]>") or ("text/xquery", "(: <![CDATA[ :)", "(: ]]> :)") with the constraint that the second string contains "<![CDATA[" and the third string contains "]]>".
Thanks!