diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/conformance-checkers/html-its/elementswithintext | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/elementswithintext')
14 files changed, 241 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1html.html new file mode 100644 index 0000000000..f3a56b5717 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1html.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <link href="withintext1htmlrules.xml" rel="its-rules"> + <title>Appaloosa</title> + </head> + <body> + <section itemscope> + <h2>keywords</h2> + <span itemprop="keyword">horse</span> + <span itemprop="keyword">appaloosa</span> + </section> + <p itemscope> + The Appaloosa + <cite> + The name comes from "Palouse horse" in reference to the Palouse River in Northern Idaho. + </cite> + are rugged horses originally breed by the + <span itemprop="keyword">Nez-Perce</span> + tribe in the US Northwest. + </p> + <p> + They are often characterized by their spotted coats, as shown here: + <img src="appaloosa.png" alt="Appaloosa horses"> + </p> +<!--footer--> + <p> + Copyright: + <em>Zebulon Inc.</em> + </p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1htmlrules.xml new file mode 100644 index 0000000000..5d49bbcd5b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1htmlrules.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:withinTextRule selector="//h:cite" withinText="nested"/> +</its:rules> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext2html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext2html.html new file mode 100644 index 0000000000..ed7e06095f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext2html.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Within text test: Default</title> + </head> + <body> + <p>Text with <span its-within-text="YES">bold</span>.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3html.html new file mode 100644 index 0000000000..9079e6f2ed --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3html.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <link href="withintext3htmlrules.xml" rel="its-rules"> + <title>Appaloosa</title> + </head> + <body> + <section itemscope> + <h2>keywords</h2> + <span itemprop="firstkeyword">horse</span> + <span itemprop="secondkeyword">appaloosa</span> + </section> + <p itemscope> + The Appaloosa + <cite> + The name comes from "Palouse horse" in reference to the Palouse River in Northern Idaho. + </cite> + are rugged horses originally breed by the + <span itemprop="keyword">Nez-Perce</span> + tribe in the US Northwest. + </p> + <p> + They are often characterized by their spotted coats, as shown here: + <img src="appaloosa.png" alt="Appaloosa horses"> + </p> +<!--footer--> + <p> + Copyright: + <em>Zebulon Inc.</em> + </p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3htmlrules.xml new file mode 100644 index 0000000000..127dea6b73 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3htmlrules.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:param name="withinTextParam">firstkeyword</its:param> +<its:withinTextRule selector="//h:cite" withinText="nested"/> +<its:withinTextRule selector="//h:section/h:span[@itemprop=$withinTextParam]" withinText="no"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext4html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext4html.html new file mode 100644 index 0000000000..5458106525 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext4html.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> + <html> + <head> +<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="withinparam">copyright</its:param> +<its:withinTextRule selector="//h:cite" withinText="nested"/> +<its:withinTextRule selector="//h:p[@id=$withinparam]" withinText="yes"/> +</its:rules> +</script> + <meta charset=utf-8> + <title>Appaloosa</title> + </head> + <body> + <section itemscope> + <h2>keywords</h2> + <span itemprop="keyword">horse</span> + <span itemprop="keyword">appaloosa</span> + </section> + <p itemscope> + The Appaloosa + <cite> + The name comes from "Palouse horse" in reference to the Palouse River in Northern Idaho. + </cite> + are rugged horses originally breed by the + <span itemprop="keyword">Nez-Perce</span> + tribe in the US Northwest. + </p> + <p> + They are often characterized by their spotted coats, as shown here: + <img src="appaloosa.png" alt="Appaloosa horses"> + </p> +<!--footer--> + <p id="copyright"> + Copyright: + <em>Zebulon Inc.</em> + </p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext1xml.xml new file mode 100644 index 0000000000..c4a44fc7b8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext1xml.xml @@ -0,0 +1,12 @@ +<doc> + <head> + <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its"> + <its:withinTextRule withinText="yes" selector="//b|//u|//i"/> + <its:withinTextRule withinText="nested" selector="//fn"/> + </its:rules> + </head> + <body> + <p>This is a paragraph with <b>bold</b>, <i>italic</i>, and <u>underlined</u>.</p> + <p>This is a paragraph with a footnote<fn>This is the text of the footnote</fn> at the middle.</p> + </body> + </doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xml.xml new file mode 100644 index 0000000000..c0d0810679 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xml.xml @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<myDocument xmlns="http://my.DocumentURI/" xml:lang="en"> + <prolog> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" + xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="withintext2xmlrules.xml" + xmlns:d="http://my.DocumentURI/"> + <its:withinTextRule selector="//d:keywords/d:kw" withinText="no"/> +</its:rules> + <author>Zebulon Fairfield</author> + <version>version 12, revision 2 - 2006-08-14</version> + <keywords><kw>horse</kw><kw>appaloosa</kw></keywords> + <storageKey>articles-6D272BA9-3B89CAD8</storageKey> + </prolog> + <content> + <section> + <title>Appaloosa</title> + <p>The Appaloosa<fnote>The name comes from "Palouse horse" in reference + to the Palouse River in Northern Idaho.</fnote> are rugged horses + originally breed by the <kw>Nez-Perce</kw> tribe in the US Northwest.</p> + <p>They are often characterized by their spotted coats, as shown + here: <img src="appaloosa.png" alt="Appaloosa horses"/></p> + </section> + <footer><p>Copyright: <em>Zebulon Inc.</em></p></footer> + </content> +</myDocument> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xmlrules.xml new file mode 100644 index 0000000000..539af5b1e7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext2xmlrules.xml @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" + xmlns:d="http://my.DocumentURI/"> + <its:withinTextRule selector="//d:kw|//d:img|//d:em" withinText="yes"/> + <its:withinTextRule selector="//d:fnote" withinText="nested"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext3xml.xml new file mode 100644 index 0000000000..66debdc8f9 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext3xml.xml @@ -0,0 +1,11 @@ +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <prolog> + <title its:withinText="no">Designing User Interfaces</title> + <author its:withinText="no">Janice Prakash</author> + <keywords its:withinText="no">user interface, ui, software interface</keywords> + </prolog> + <body> + <p>The book <title its:withinText="yes">Of Mice and Screens</title> by <author its:withinText="yes">Aldus + Brandywine</author> is one of the best introductions to the vast topic of designing user interfaces.</p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext4xml.xml new file mode 100644 index 0000000000..1a4b3725f6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext4xml.xml @@ -0,0 +1,12 @@ +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <prolog> + <its:span withinText="no">Designing User Interfaces</its:span> + <its:span withinText="no">Janice Prakash</its:span> + <its:span withinText="no">user interface, ui, software interface</its:span> + </prolog> + <body> + <p>The book <its:span withinText="yes">Of Mice and Screens</its:span> by <its:span withinText="yes">Aldus + Brandywine</its:span> is one of the best introductions to the vast topic of designing user interfaces.</p> + </body> +</text> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext5xml.xml new file mode 100644 index 0000000000..37db106f6c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext5xml.xml @@ -0,0 +1,25 @@ +<doc> +<head> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="withinTextParam">footnote</its:param> +<its:withinTextRule withinText="yes" selector="//b|//u|//i"/> +<its:withinTextRule withinText="nested" selector="//fn[@id=$withinTextParam]"/> +</its:rules> +</head> +<body> +<p> +This is a paragraph with +<b>bold</b> +, +<i>italic</i> +, and +<u>underlined</u> +. +</p> +<p> +This is a paragraph with a footnote +<fn id="footnote">This is the text of the footnote</fn> +at the middle. +</p> +</body> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xml.xml new file mode 100644 index 0000000000..b96c3e9023 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xml.xml @@ -0,0 +1,21 @@ +<doc> +<head> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:href="withintext6xmlrules.xml"/> +</head> +<body> +<p> +This is a paragraph with +<b>bold</b> +, +<i>italic</i> +, and +<u>underlined</u> +. +</p> +<p> +This is a paragraph with a footnote +<fn id="footnote">This is the text of the footnote</fn> +at the middle. +</p> +</body> +</doc> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xmlrules.xml new file mode 100644 index 0000000000..6f41dd0429 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/xml/withintext6xmlrules.xml @@ -0,0 +1,5 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="withinTextParam">footnote</its:param> +<its:withinTextRule withinText="yes" selector="//b|//u|//i"/> +<its:withinTextRule withinText="nested" selector="//fn[@id=$withinTextParam]"/> +</its:rules> |