[ { "input" : "\n\nTest\n", "expected" : "", "purpose" : "Empty document", "id" : "000", "type" : "html" }, { "input" : "\n\nTest\n\n", "expected" : "<> .\n", "purpose" : "Basic ", "id" : "001", "type" : "html" }, { "input" : "\n\nTest\n\n", "expected" : "", "purpose" : "Empty ", "id" : "002", "type" : "html" }, { "input" : "\n\nTest\n\n", "expected" : "", "purpose" : "Valueless ", "id" : "003", "type" : "html" }, { "input" : "\n\nTest\n\n", "expected" : "<> .\n", "purpose" : "Whitespace around ", "id" : "004", "type" : "html" }, { "input" : "\n\nTest\n\n", "expected" : "<> .\n<> .\n<> .\n<> .\n<> .\n<> .\n", "notes" : "These are space characters as defined by HTML 5 (http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#space-character)", "purpose" : "Whitespace in ", "id" : "005", "type" : "html" }, { "input" : "\n\nTest\n\n", "expected" : "", "notes" : "This is no longer a space character as defined by HTML 5 (http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#space-character)", "purpose" : "Not-whitespace in ", "id" : "006", "type" : "html" }, { "input" : "\n\nTest\n\n", "expected" : "<> .\n", "purpose" : "Uppercase in ", "id" : "007", "type" : "html" }, { "input" : "\n\nTest\n\n", "expected" : "<> .\n<> .\n", "purpose" : "Bogus reserved words in ", "id" : "008", "type" : "html" }, { "input" : "\n\nTest\n\n", "expected" : "<> .\n<> .\n", "notes" : "These are interpreted as CURIEs with the undeclared prefix 'http'", "purpose" : "URLs in ", "id" : "009", "type" : "html" }, { "input" : "\n\nTest\n\n", "expected" : "<> .\n<> .\n<> .\n", "purpose" : "CURIEs in ", "id" : "010", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\".\n", "purpose" : "Basic xmlns", "id" : "011", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\".\n", "purpose" : "Uppercase xmlns, lowercase CURIE", "id" : "012", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "purpose" : "Uppercase xmlns, uppercase CURIE", "id" : "013", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "purpose" : "Non-NCName xmlns prefix", "id" : "014", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\".\n", "purpose" : "Empty xmlns prefix", "id" : "015", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\".\n", "purpose" : "Underscore xmlns prefix", "id" : "016", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\".\n", "notes" : "Namespaces in XML says the xml prefix \"MAY, but need not, be declared, ...\"", "purpose" : "xmlns prefix 'xml' with correct URI", "id" : "017", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "notes" : "Namespaces in XML says the xml prefix \"MUST NOT be bound to any other namespace name\"", "purpose" : "xmlns prefix 'xml' with incorrect URI", "id" : "018", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "notes" : "Namespaces in XML says the xmlns prefix \"MUST NOT be declared\"", "purpose" : "xmlns prefix 'xmlns' with correct URI", "id" : "019", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "notes" : "Namespaces in XML says the xmlns prefix \"MUST NOT be declared\"", "purpose" : "xmlns prefix 'xmlns' with incorrect URI", "id" : "020", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\".\n", "purpose" : "xmlns prefix 'xmlzzz'", "id" : "021", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "purpose" : "Empty xmlns value", "id" : "022", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\".\n", "purpose" : "Empty xmlns value overriding non-empty", "id" : "023", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "notes" : "Namespaces in XML says \"Other prefixes MUST NOT be bound to this namespace name\"", "purpose" : "Invalid (xml URI) xmlns value", "id" : "024", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "notes" : "Namespaces in XML says \"Other prefixes MUST NOT be bound to this namespace name\"", "purpose" : "Invalid (xmlns URI) xmlns value", "id" : "025", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\".\n", "purpose" : "Colon in prefix", "id" : "026", "type" : "html" }, { "input" : "\n\nTest\n

\n Test\n

\n", "expected" : "<> \"Test\".\n", "notes" : "U+0140 is allowed in Name in XML 1.0 5th Edition, but not 4th Edition. Assume that it should work like any other letter.", "purpose" : "Non-XML4e xmlns prefix", "id" : "027", "type" : "html" }, { "input" : "\n\nTest\n

\n \n Test\n Test\n \n

\n", "expected" : "<> \"Test\".\n<> \"Test\".\n", "notes" : "This tests that non-ASCII prefixes don't get lowercased in declarations or in CURIEs", "purpose" : "Non-ASCII case insensitivity in xmlns prefix (1)", "id" : "028", "type" : "html" }, { "input" : "\n\nTest\n

\n \n Test\n Test\n \n

\n", "expected" : "<> \"Test\".\n<> \"Test\".\n", "notes" : "This tests that non-ASCII prefixes don't get lowercased in declarations or in CURIEs", "purpose" : "Non-ASCII case insensitivity in xmlns prefix (2)", "id" : "029", "type" : "html" }, { "input" : "\n\nTest\n

\nTest\n

\n\n", "expected" : "<> \"Test\".\n", "purpose" : "Scripted: Conflicting xmlns values", "id" : "030", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "purpose" : "Undeclared prefix", "id" : "031", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "purpose" : "Undeclared prefix 'rdf'", "id" : "032", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "purpose" : "Undeclared prefix 'xml'", "id" : "033", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "", "purpose" : "Undeclared prefix 'xmlns'", "id" : "034", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n

Test

\n

Test

\n

Test

\n

Test

\n

Test

\n", "expected" : "", "purpose" : "Undeclared common prefixes", "id" : "035", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\".\n", "notes" : "rdfQuery seemed to strip everything after the digit", "purpose" : "Digits in CURIE value", "id" : "036", "type" : "html" }, { "input" : "\n\nTest\n

\n \n Test\n \n \n Test\n \n

\n", "expected" : " \"Test\".\n \"Test\".\n", "purpose" : "Ignoring 'about' with undefined prefix", "id" : "037", "type" : "html" }, { "input" : "\n\nTest\n

\n \n Test\n \n \n Test\n \n

\n", "expected" : " \"Test\".\n \"Test\".\n", "purpose" : "Ignoring 'about' with invalid prefix", "id" : "038", "type" : "html" }, { "input" : "\n\nTest\n

\n Test\n Test\n Test\n

\n", "expected" : " \"Test\".\n<> .\n<> \"Test\".\n<> \"Test\".\n", "purpose" : "Ignoring 'rel' with undefined prefix", "id" : "039", "type" : "html" }, { "input" : "\n\nTest\n

\n Test\n Test\n Test\n

\n", "expected" : " \"Test\".\n<> .\n<> \"Test\".\n<> \"Test\".\n", "purpose" : "Ignoring 'rel' with invalid prefix", "id" : "040", "type" : "html" }, { "input" : "\n\nTest\n

\n Test\n Test\n Test\n

\n", "expected" : " \"Test\".\n<> .\n<> \"Test\".\n<> \"Test\".\n", "purpose" : "Ignoring empty 'rel'", "id" : "041", "type" : "html" }, { "input" : "\n\nTest\n

\n Test 1\n

\n

\n Test 2\n

\n

\n Test 3\n

\n", "expected" : " .\n _:blanknode0.\n_:blanknode0 \"Content 2\" .\n _:blanknode1.\n", "purpose" : "Invalid property setting 'skip element'", "id" : "042", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\".\n", "purpose" : "Safe CURIE containing square brackets", "id" : "043", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\".\n", "purpose" : "Language in xml:lang", "id" : "044", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\"@aa.\n", "purpose" : "Language in lang", "id" : "045", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\"@cc.\n", "purpose" : "Language inheritance", "id" : "046", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\"@aa.\n", "purpose" : "Conflicting languages", "id" : "047", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\"@bb.\n", "purpose" : "Duplicate language attributes", "id" : "048", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\"@aa.\n", "purpose" : "Conflicting language inheritance (1)", "id" : "049", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n", "expected" : "<> \"Test\"@bb.\n", "purpose" : "Conflicting language inheritance (2)", "id" : "050", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n\n", "expected" : "<> \"Test\"@cc.\n", "purpose" : "Scripted: Conflicting languages", "id" : "051", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n\n", "expected" : "<> \"Test\"@aa.\n", "purpose" : "Scripted: Conflicting language inheritance (1)", "id" : "052", "type" : "html" }, { "input" : "\n\nTest\n

Test

\n\n", "expected" : "<> \"Test\"@cc.\n", "purpose" : "Scripted: Conflicting language inheritance (2)", "id" : "053", "type" : "html" } ]