Files
sousa-gecko/testing/web-platform/tests/domparsing/xml-parse-serialize-roundtrip.html
T
Joey Arhar bc5ea4a710 Bug 1963171 [wpt PR 52215] - Remove libxml CDATA fixes,
Automatic update from web-platform-tests
Remove libxml CDATA fixes

This reverts two commits:
commit 2fdffd306d4882bcf2a57cfa04587de292baa575
commit f848cbce89b422f13e4ac201d57ab81c5f5cca76

The underlying issue in libxml has been fixed upstream, so we don't need
these fixes anymore: https://gitlab.gnome.org/GNOME/libxml2/-/issues/412

Fixed: 327273585, 41101979
Bug: 40238214
Change-Id: I8c3486bed9788e13f380351b3b2f8c4326eec5c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6489849
Reviewed-by: David Bokan <bokan@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1452861}

--

wpt-commits: 89ebf3e04a2ca2d7aa0d6056833b0dcdad045b3a
wpt-pr: 52215

Differential Revision: https://phabricator.services.mozilla.com/D247968
2025-05-06 13:51:49 +00:00

37 lines
1.7 KiB
HTML

<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://issues.chromium.org/issues/327273585">
<link rel=help href="https://issues.chromium.org/issues/41101979">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
function runTest(xmlString, testName) {
test(() => {
const xmlDoc = (new DOMParser()).parseFromString(xmlString, 'text/xml');
const result = (new XMLSerializer()).serializeToString(xmlDoc);
assert_equals(result, xmlString);
}, `DOMParser and XMLSerializer should round trip with CDATA sections: ${testName}`);
}
runTest(
`<root><![CDATA[
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
]]></root>`,
'large CDATA');
runTest(
'<root><htmlDefn><![CDATA[<div><![CDATA[ Just Rubbish Data $#$^#^$ ]]]]><![CDATA[></div><div></div>]]></htmlDefn></root>',
'multiple CDATAs');
</script>