{"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": [""] }, {"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"] }, {"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": [""] }, {"description": "void element (as StartTag token)", "input": [["StartTag", "img", {}]], "expected": [""] }, {"description": "doctype in error", "input": [["Doctype", "foo"]], "expected": [""] }, {"description": "doctype", "input": [["Doctype", "HTML"]], "expected": [""] } ]}