JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix test case (for predictable attrs serialization)
authorJason Woofenden <jason@jasonwoof.com>
Sun, 20 Dec 2015 14:50:17 +0000 (09:50 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Sun, 20 Dec 2015 14:50:17 +0000 (09:50 -0500)
parse-html.coffee

index d271706..c63a42d 100644 (file)
@@ -2282,7 +2282,7 @@ test_parser name: "open tag with attributes", \
        expected: 'text:"foo",tag:"span",{"style":"foo: bar","title":"hi"},[text:"bar"]'
 test_parser name: "open tag with attributes of various quotings", \
        html: "foo<span abc=\"def\" g=hij klm='nopqrstuv\"' autofocus>bar",
-       expected: 'text:"foo",tag:"span",{"abc":"def","g":"hij","klm":"nopqrstuv\\"","autofocus":""},[text:"bar"]'
+       expected: 'text:"foo",tag:"span",{"abc":"def","autofocus":"","g":"hij","klm":"nopqrstuv\\""},[text:"bar"]'
 test_parser name: "attribute entity exceptions dq", \
        html: "foo<a href=\"foo?t=1&amp=2&ampo=3&amp;lt=foo\">bar",
        expected: 'text:"foo",tag:"a",{"href":"foo?t=1&amp=2&ampo=3&lt=foo"},[text:"bar"]'