{ "tests": [ { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "test \"with\" "" } ] ] ], "description": "proper attribute value escaping" }, { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo" } ] ] ], "description": "proper attribute value non-quoting" }, { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo=bar" } ] ] ], "description": "proper attribute value quoting (with =)" }, { "expected": [ "bar\">" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo>bar" } ] ] ], "description": "proper attribute value quoting (with >)" }, { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo\"bar" } ] ] ], "description": "proper attribute value quoting (with \")" }, { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo'bar" } ] ] ], "description": "proper attribute value quoting (with ')" }, { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo'bar\"baz" } ] ] ], "description": "proper attribute value quoting (with both \" and ')" }, { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo bar" } ] ] ], "description": "proper attribute value quoting (with space)" }, { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo\tbar" } ] ] ], "description": "proper attribute value quoting (with tab)" }, { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo\nbar" } ] ] ], "description": "proper attribute value quoting (with LF)" }, { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo\rbar" } ] ] ], "description": "proper attribute value quoting (with CR)" }, { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo\u000bbar" } ] ] ], "description": "proper attribute value non-quoting (with linetab)" }, { "expected": [ "" ], "input": [ [ "StartTag", "http://www.w3.org/1999/xhtml", "span", [ { "namespace": null, "name": "title", "value": "foo\fbar" } ] ] ], "description": "proper attribute value quoting (with form feed)" }, { "expected": [ "" ], "input": [ [ "EmptyTag", "img", {} ] ], "description": "void element (as EmptyTag token)" }, { "expected": [ "" ], "input": [ [ "Doctype", "foo" ] ], "description": "doctype in error" }, { "expected": [ "a<b>c&d" ], "input": [ [ "Characters", "ac&d" ] ], "description": "character data", "options": { "encoding": "utf-8" } }, { "expected": [ "