summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents')
-rw-r--r--testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-local.dtd3
-rw-r--r--testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.html83
-rw-r--r--testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.xhtml16
-rw-r--r--testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-2.xhtml15
-rw-r--r--testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-3.xhtml16
5 files changed, 133 insertions, 0 deletions
diff --git a/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-local.dtd b/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-local.dtd
new file mode 100644
index 000000000..03e583876
--- /dev/null
+++ b/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-local.dtd
@@ -0,0 +1,3 @@
+<!ENTITY Sqrt "Sqrt">
+<!ENTITY lang "lang">
+<!ENTITY nbsp "nbsp">
diff --git a/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.html b/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.html
new file mode 100644
index 000000000..f73de750d
--- /dev/null
+++ b/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.html
@@ -0,0 +1,83 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml-local.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>XHTML Doctype test 1</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+</head>
+<body>
+<h1>XHTML Doctype test 1</h1>
+
+<div id="log" style="display:block"></div>
+
+
+<iframe id="xhtml1" src="xhtml-pubid-1.xhtml" onload="t1()"></iframe><br/>
+<iframe id="xhtml2" src="xhtml-pubid-2.xhtml" onload="t2()"></iframe><br/>
+<iframe id="xhtml3" src="xhtml-pubid-3.xhtml" onload="t3()"></iframe>
+
+<script>
+
+
+
+
+function t1 () {
+var txt;
+try{
+txt = window.frames[0].document.getElementById("sqrt").firstChild.nodeValue;
+} catch (e) {
+txt=null;
+}
+test(function() {
+assert_equals(txt,'\u221a');
+},"Sqrt entity is U+221a with legacy DTD");
+
+try{
+txt = window.frames[0].document.getElementById("lang").firstChild.nodeValue;
+} catch (e) {
+txt=null;
+}
+test(function() {
+assert_equals(txt,'\u27e8');
+},"lang entity is U+27E8 not U+2329 with legacy DTD");
+}
+
+function t2 () {
+var txt2;
+try{
+txt2 = window.frames[1].document.getElementById("nbsp").firstChild.nodeValue;
+} catch (e) {
+txt2=null;
+}
+test(function() {
+assert_object_equals(txt2,null);
+},"nbsp should not be recognised without known PUBLIC identifier");
+}
+
+function t3 () {
+var txt3;
+try{
+txt3 = window.frames[2].document.getElementById("sqrt").firstChild.nodeValue;
+} catch (e) {
+txt3=null;
+}
+test(function() {
+assert_equals(txt3,'\u221a');
+},"Sqrt entity is U+221a with XHTML PUBID Extension spec");
+
+try{
+txt3 = window.frames[2].document.getElementById("lang").firstChild.nodeValue;
+} catch (e) {
+txt3=null;
+}
+test(function() {
+assert_equals(txt3,'\u27e8');
+},"lang entity is U+27E8 with XHTML PUBID Extension spec");
+}
+
+
+
+</script>
+
+</body>
+</html>
+
diff --git a/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.xhtml b/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.xhtml
new file mode 100644
index 000000000..068641afe
--- /dev/null
+++ b/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-1.xhtml
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml-local.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>XHTML Doctype Example 1</title>
+</head>
+<body>
+
+<div>
+<span id="sqrt">&Sqrt;</span>
+<span id="lang">&lang;</span>
+</div>
+
+
+</body>
+</html>
+
diff --git a/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-2.xhtml b/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-2.xhtml
new file mode 100644
index 000000000..99171a691
--- /dev/null
+++ b/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-2.xhtml
@@ -0,0 +1,15 @@
+<!DOCTYPE html SYSTEM "xhtml-local.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>XHTML Doctype Example 2</title>
+</head>
+<body>
+
+<div>
+<span id="nbsp">&nbsp;</span>
+</div>
+
+
+</body>
+</html>
+
diff --git a/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-3.xhtml b/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-3.xhtml
new file mode 100644
index 000000000..f6fffea3d
--- /dev/null
+++ b/testing/web-platform/tests/ext-xhtml-pubid/the-xhtml-syntax/parsing-xhtml-documents/xhtml-pubid-3.xhtml
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//ENTITIES HTML MathML Set//EN//XML" "xhtml-local.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>XHTML Doctype Example 3</title>
+</head>
+<body>
+
+<div>
+<span id="nbsp">&Sqrt;</span>
+<span id="lang">&lang;</span>
+</div>
+
+
+</body>
+</html>
+