mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
html: Add character data tests
This commit is contained in:
parent
f9ed30e972
commit
e1834745e0
32
result/HTML/chardata.html
Normal file
32
result/HTML/chardata.html
Normal file
@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>&</head>&</title>
|
||||
</head>
|
||||
<body>
|
||||
<textarea>&</body>&</textarea>
|
||||
&
|
||||
<iframe>&</body>&</iframe>
|
||||
&
|
||||
<noembed>&</body>&</noembed>
|
||||
&
|
||||
<noframes>&</body>&</noframes>
|
||||
&
|
||||
<style>&</body>&</style>
|
||||
&
|
||||
<xmp>&</body>&</xmp>
|
||||
&
|
||||
<script>&<script>&</script>
|
||||
&
|
||||
<script>&<!--&</script>
|
||||
&
|
||||
<script>&<!--&-->&<script>&</script>
|
||||
&
|
||||
<script>&<!--&-->&</script>
|
||||
&
|
||||
<script>&<!--&<script>&</script>&-->&</script>
|
||||
&
|
||||
<script>&<!--&<script>&</script>&<script>&</script>&-->&</script>
|
||||
&
|
||||
</body>
|
||||
</html>
|
126
result/HTML/chardata.html.sax
Normal file
126
result/HTML/chardata.html.sax
Normal file
@ -0,0 +1,126 @@
|
||||
SAX.setDocumentLocator()
|
||||
SAX.startDocument()
|
||||
SAX.startElement(html)
|
||||
SAX.characters(
|
||||
, 5)
|
||||
SAX.startElement(head)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(title)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(</head>, 7)
|
||||
SAX.characters(&, 1)
|
||||
SAX.endElement(title)
|
||||
SAX.characters(
|
||||
, 5)
|
||||
SAX.endElement(head)
|
||||
SAX.characters(
|
||||
, 5)
|
||||
SAX.startElement(body)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(textarea)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(</body>, 7)
|
||||
SAX.characters(&, 1)
|
||||
SAX.endElement(textarea)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(iframe)
|
||||
SAX.cdata(&</body>&, 9)
|
||||
SAX.endElement(iframe)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(noembed)
|
||||
SAX.cdata(&</body>&, 9)
|
||||
SAX.endElement(noembed)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(noframes)
|
||||
SAX.cdata(&</body>&, 9)
|
||||
SAX.endElement(noframes)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(style)
|
||||
SAX.cdata(&</body>&, 9)
|
||||
SAX.endElement(style)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(xmp)
|
||||
SAX.cdata(&</body>&, 9)
|
||||
SAX.endElement(xmp)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(script)
|
||||
SAX.cdata(&<script>&, 10)
|
||||
SAX.endElement(script)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(script)
|
||||
SAX.cdata(&<!--&, 6)
|
||||
SAX.endElement(script)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(script)
|
||||
SAX.cdata(&<!--&-->&, 19)
|
||||
SAX.endElement(script)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(script)
|
||||
SAX.cdata(&<!--&-->&, 10)
|
||||
SAX.endElement(script)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(script)
|
||||
SAX.cdata(&<!--&<script, 29)
|
||||
SAX.endElement(script)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.startElement(script)
|
||||
SAX.cdata(&<!--&<script, 48)
|
||||
SAX.endElement(script)
|
||||
SAX.characters(
|
||||
, 9)
|
||||
SAX.characters(&, 1)
|
||||
SAX.characters(
|
||||
, 5)
|
||||
SAX.endElement(body)
|
||||
SAX.characters(
|
||||
, 1)
|
||||
SAX.endElement(html)
|
||||
SAX.characters(
|
||||
, 1)
|
||||
SAX.endDocument()
|
31
test/HTML/chardata.html
Normal file
31
test/HTML/chardata.html
Normal file
@ -0,0 +1,31 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>&</head>&</title>
|
||||
</head>
|
||||
<body>
|
||||
<textarea>&</body>&</textarea>
|
||||
&
|
||||
<iframe>&</body>&</iframe>
|
||||
&
|
||||
<noembed>&</body>&</noembed>
|
||||
&
|
||||
<noframes>&</body>&</noframes>
|
||||
&
|
||||
<style>&</body>&</style>
|
||||
&
|
||||
<xmp>&</body>&</xmp>
|
||||
&
|
||||
<script>&<script>&</script>
|
||||
&
|
||||
<script>&<!--&</script>
|
||||
&
|
||||
<script>&<!--&-->&<script>&</script>
|
||||
&
|
||||
<script>&<!--&-->&</script>
|
||||
&
|
||||
<script>&<!--&<script>&</script>&-->&</script>
|
||||
&
|
||||
<script>&<!--&<script>&</script>&<script>&</script>&-->&</script>
|
||||
&
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user