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