From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- dom/xml/test/old/xmlbase/xmlbase.xml | 82 ++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 dom/xml/test/old/xmlbase/xmlbase.xml (limited to 'dom/xml/test/old/xmlbase/xmlbase.xml') diff --git a/dom/xml/test/old/xmlbase/xmlbase.xml b/dom/xml/test/old/xmlbase/xmlbase.xml new file mode 100644 index 0000000000..b4cce1dc51 --- /dev/null +++ b/dom/xml/test/old/xmlbase/xmlbase.xml @@ -0,0 +1,82 @@ + + + +Root: no xml:base +a.xml +

Expected: <current path>/a.xml

+ + Sect1: xml:base="http://www.mozilla.org" + b.xml +

Expected: http://www.mozilla.org/b.xml

+ + Sect2: xml:base="/base" + c.xml +

Expected: http://www.mozilla.org/base/c.xml

+ + Sect3: xml:base="" + d.xml +

Expected: http://www.mozilla.org/base/d.xml

+
+ + Sect3: xml:base="/" + d-2.xml +

Expected: http://www.mozilla.org/d-2.xml

+
+ + Sect3: xml:base="/foobar" + e.xml +

Expected: http://www.mozilla.org/foobar/e.xml

+
+ + Sect3: xml:base="ding/dong" + f.xml +

Expected: http://www.mozilla.org/base/ding/dong/f.xml

+
+
+ + Sect2: xml:base="http://www.netscape.com" + g.xml +

Expected: http://www.netscape.com/g.xml

+
+ + Sect2: xml:base="http://www.netscape.com" + http://www.mozilla.org/foobar/h.xml +

Expected: http://www.mozilla.org/foobar/h.xml

+
+ + Sect2: xml:base="http://www.netscape.com" + i.xml, this element has xml:base="wow" +

Expected: http://www.netscape.com/wow/i.xml

+
+
+ + Sect1: xml:base="nothere" + j.xml +

Expected: <current path>/nothere/j.xml

+
+ + Sect1: xml:base="/not" + k.xml +

Expected: file:///not/k.xml

+
+ + Sect1: xml:base="http://foobar.com/ä ö/" + l.xml +

Expected: http://foobar.com/%E4%20%F6/l.xml

+
+ + Sect1: xml:base="http://foobar.com/ /%20/" + m.xml +

Expected: http://foobar.com/%20/%20/m.xml

+
+ + Sect1: xml:base="chrome://navigator" + n.xml +

Expected: |current path|/n.xml because chrome URL is not allowed

+ + Sect2: xml:base="http://www.mozilla.org" + o.xml, this element has xml:base="chrome://navigator" +

Expected: http://www.mozilla.org/o.xml because chrome base is not allowed

+
+
+
\ No newline at end of file -- cgit v1.2.3