1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
4 <body xmlns:â=
"urn:x-test:U+00E2" onload=
"onPageLoad()">
5 <p>This tests parsing XHTML that uses Unicode namespace prefixes. If the test succeeds you will see the word
"PASS" below.
</p>
6 <ê:test
id=
"test" xmlns:ê=
"urn:x-test:U+00EA" â:â
Attr=
"âValue"/>
8 <script type=
"text/javascript">//<![CDATA[
9 function onPageLoad() {
10 var result = document.getElementById(
"result");
11 result.textContent =
"FAIL";
13 var test = document.getElementById(
"test");
14 if (test.namespaceURI !=
"urn:x-test:U+00EA") {
15 result.textContent +=
" - #test has the wrong namespaceURI";
18 if (test.lookupNamespaceURI(
"\u00E2") !=
"urn:x-test:U+00E2") {
19 result.textContent +=
" - lookupNamespaceURI('\u00E2') did not return the expected namespace URI";
22 if (test.lookupNamespaceURI(
"\u00EA") !=
"urn:x-test:U+00EA") {
23 result.textContent +=
" - lookupNamespaceURI('\u00EA') did not return the expected namespace URI";
27 var âAttr = test.getAttributeNS(
"urn:x-test:U+00E2",
"\u00E2Attr");
28 if (âAttr !=
"\u00E2Value") {
29 result.textContent +=
" - `test.getAttributeNS('urn:x-test:U+00E2', '\u00E2Attr')' did not return the expected attribute value.";
33 if (result.textContent ==
"FAIL") result.textContent =
"PASS";
35 if (window.testRunner)
36 testRunner.dumpAsText();