kolibrios-gitea/contrib/network/netsurf/libhubbub/test/data/tokeniser2/regression.test

21 lines
548 B
Plaintext
Raw Normal View History

{"tests": [
{"description":"CR in double-quoted attribute value",
"input":"<foo bar=\"\r\u2022xyz\"",
"output":[["StartTag", "foo", {"bar":"\n\u2022xyz"}]]},
{"description":"CR in single-quoted attribute value",
"input":"<foo bar='\r\u2022xyz'",
"output":[["StartTag", "foo", {"bar":"\n\u2022xyz"}]]},
{"description":"CR in comment",
"input":"<!--\r\u2022xyz-->",
"output":[["Comment", "\n\u2022xyz"]]},
{"description":"CR in CDATA section",
"processCDATA":true,
"input":"<![CDATA[\r\u2022xyz]]>",
"output":[["Character", "\n\u2022xyz"]]},
]}