mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
Removed the automatic generation of CDATA sections for the content of the
* xmlsave.c: Removed the automatic generation of CDATA sections for the content of the "script" and "style" elements when serializing XHTML. The issue was reported by Vincent Lefevre, bug #345147. * result/xhtml1 result/noent/xhtml1: Adjusted regression test results due to the serialization change described above.
This commit is contained in:
parent
75acfeea32
commit
7b4e2e20fd
@ -1,3 +1,12 @@
|
||||
Thu Jul 13 15:03:11 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
|
||||
|
||||
* xmlsave.c: Removed the automatic generation of CDATA sections
|
||||
for the content of the "script" and "style" elements when
|
||||
serializing XHTML. The issue was reported by Vincent Lefevre,
|
||||
bug #345147.
|
||||
* result/xhtml1 result/noent/xhtml1: Adjusted regression test
|
||||
results due to the serialization change described above.
|
||||
|
||||
Thu Jul 13 08:32:21 CEST 2006 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* configure.in parser.c xmllint.c include/libxml/parser.h
|
||||
|
@ -6,9 +6,9 @@
|
||||
<title>Virtual Library</title>
|
||||
</head>
|
||||
<!-- 4.8 -->
|
||||
<script type="text/javascript"><![CDATA[
|
||||
... unescaped script < content ...
|
||||
]]></script>
|
||||
<script type="text/javascript">
|
||||
... unescaped script < content ...
|
||||
</script>
|
||||
<body>
|
||||
<p>Moved to <a href="http://example.org/">example.org</a>.</p>
|
||||
</body>
|
||||
|
@ -6,9 +6,9 @@
|
||||
<title>Virtual Library</title>
|
||||
</head>
|
||||
<!-- 4.8 -->
|
||||
<script type="text/javascript"><![CDATA[
|
||||
... unescaped script < content ...
|
||||
]]></script>
|
||||
<script type="text/javascript">
|
||||
... unescaped script < content ...
|
||||
</script>
|
||||
<body>
|
||||
<p>Moved to <a href="http://example.org/">example.org</a>.</p>
|
||||
</body>
|
||||
|
10
xmlsave.c
10
xmlsave.c
@ -1316,6 +1316,11 @@ xhtmlNodeDumpOutput(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
|
||||
xmlOutputBufferWriteEscape(buf, cur->content, ctxt->escape);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* This was removed due to problems with HTML processors.
|
||||
* See bug #345147.
|
||||
*
|
||||
/*
|
||||
* 4.8. Script and Style elements
|
||||
*/
|
||||
@ -1380,7 +1385,10 @@ xhtmlNodeDumpOutput(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
|
||||
}
|
||||
child = child->next;
|
||||
}
|
||||
} else if (cur->children != NULL) {
|
||||
}
|
||||
#endif
|
||||
|
||||
if (cur->children != NULL) {
|
||||
int indent = ctxt->format;
|
||||
|
||||
if (format) xmlOutputBufferWrite(buf, 1, "\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user