summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-its/domain/html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/domain/html')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1html.html13
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1htmlrules.xml5
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2html.html13
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2htmlrules.xml6
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3html.html17
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3htmlrules.xml4
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain4html.html18
7 files changed, 76 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1html.html b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1html.html
new file mode 100644
index 000000000..4705f4143
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1html.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset=utf-8>
+ <link href="domain1htmlrules.xml" rel="its-rules"/>
+ <meta name="keywords" content="automotive"/>
+ <title>Domain HTML</title>
+ </head>
+ <body>
+ <p>The new car from XYZ - buy it now!</p>
+ </body>
+</html>
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1htmlrules.xml
new file mode 100644
index 000000000..9387be964
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain1htmlrules.xml
@@ -0,0 +1,5 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+ <its:domainRule selector="/h:html/h:body"
+ domainPointer="/h:html/h:head/h:meta[@name='keywords']/@content"/>
+ </its:rules>
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2html.html b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2html.html
new file mode 100644
index 000000000..4ccce0f96
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2html.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset=utf-8>
+ <link href="domain2htmlrules.xml" rel="its-rules"/>
+ <meta name="keywords" content="automotive"/>
+ <title>Domain HTML</title>
+ </head>
+ <body>
+ <p>The new car from XYZ - buy it now!</p>
+ </body>
+</html>
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2htmlrules.xml
new file mode 100644
index 000000000..4446ffb6a
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain2htmlrules.xml
@@ -0,0 +1,6 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+ <its:domainRule selector="/h:html/h:body"
+ domainPointer="/h:html/h:head/h:meta[@name='keywords']/@content"
+ domainMapping="automotive auto, medical medicine, 'criminal law' law, 'property law' law"/>
+ </its:rules>
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3html.html b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3html.html
new file mode 100644
index 000000000..629e3578d
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3html.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset=utf-8>
+<link href="domain3htmlrules.xml" rel="its-rules"/>
+<meta name="keywords" content="sports law"/>
+<title>Sports law</title>
+</head>
+<body>
+<p>
+Sports law is an umbrella term used to describe the legal issues at work in the world of both amateur and professional sports.
+</p>
+<p>
+Sports law overlaps substantially with labor law, contract law, competition or antitrust law, and tort law.
+</p>
+</body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3htmlrules.xml
new file mode 100644
index 000000000..89aed8f1a
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain3htmlrules.xml
@@ -0,0 +1,4 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+<its:param name="domainParam">keywords</its:param>
+<its:domainRule selector="/h:html/h:body" domainPointer="/h:html/h:head/h:meta[@name=$domainParam]/@content" domainMapping="'sports law' law, 'labor law' law, 'contract law' law, 'competition law' law,'tort law' law"/>
+</its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain4html.html b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain4html.html
new file mode 100644
index 000000000..80a1da811
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/domain/html/domain4html.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset=utf-8>
+<meta name="keywords" content="SPORTS LAW, Judicial Matters"/>
+<meta property="mykeywords" content="Sport, Law"/>
+<script type="application/its+xml">
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+<its:param name="domainParam">keywords</its:param>
+<its:domainRule selector="/h:html/h:body" domainPointer="/h:html/h:head/h:meta[@property='mykeywords' or @name=$domainParam]/@content" domainMapping="'sports law' LAW, 'labor law' LAW, 'contract law' LAW, 'competition law' LAW,'tort law' LAW"/>
+</its:rules>
+</script>
+<title>Sports law</title>
+</head>
+<body>
+<p>Some text about sport and law.</p>
+</body>
+</html> \ No newline at end of file