diff --git a/serializer/core.test b/serializer/core.test index a6fa075..1d53b75 100644 --- a/serializer/core.test +++ b/serializer/core.test @@ -11,21 +11,21 @@ "xhtml": [""] }, -{"description": "proper attribute value non-quoting (with <)", - "input": [["StartTag", "http://www.w3.org/1999/xhtml", "span", [{"namespace": null, "name": "title", "value": "foo"], - "xhtml": [""] -}, +{"description": "proper attribute value non-quoting (with <)", + "input": [["StartTag", "http://www.w3.org/1999/xhtml", "span", [{"namespace": null, "name": "title", "value": "foo"], + "xhtml": [""] +}, {"description": "proper attribute value quoting (with =)", "input": [["StartTag", "http://www.w3.org/1999/xhtml", "span", [{"namespace": null, "name": "title", "value": "foo=bar"}]]], "expected": [""] }, -{"description": "proper attribute value quoting (with >)", - "input": [["StartTag", "http://www.w3.org/1999/xhtml", "span", [{"namespace": null, "name": "title", "value": "foo>bar"}]]], - "expected": ["bar\">"] -}, +{"description": "proper attribute value quoting (with >)", + "input": [["StartTag", "http://www.w3.org/1999/xhtml", "span", [{"namespace": null, "name": "title", "value": "foo>bar"}]]], + "expected": [""] +}, {"description": "proper attribute value quoting (with \")", "input": [["StartTag", "http://www.w3.org/1999/xhtml", "span", [{"namespace": null, "name": "title", "value": "foo\"bar"}]]], diff --git a/serializer/options.test b/serializer/options.test index 6f342dd..41eb1c8 100644 --- a/serializer/options.test +++ b/serializer/options.test @@ -45,10 +45,10 @@ "expected": ["
"] }, -{"description": "escape less than signs in attribute values", +{"description": "escape angle brackets in attribute values", "options": {"escape_lt_in_attrs": true}, "input": [["StartTag", "http://www.w3.org/1999/xhtml", "a", [{"namespace": null, "name": "title", "value": "ac&d"}]]], - "expected": ["c&d\">"] + "expected": [""] }, {"description": "rcdata",