2007-08-30 19:19:10 +02:00
|
|
|
{"tests": [
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value",
|
|
|
|
"input": "<span class=a>",
|
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading space",
|
|
|
|
"input": "<span class=' a'>",
|
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with trailing space",
|
|
|
|
"input": "<span class='a '>",
|
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading and trailing space",
|
|
|
|
"input": "<span class=' a '>",
|
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading tab",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='\ta'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with trailing tab",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\t'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading and trailing tab",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='\ta\t'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading LF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='\na'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with trailing LF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\n'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading and trailing LF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='\na\n'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading LT",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='\u000Ba'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with trailing LT",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\u000B'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading and trailing LT",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='\u000Ba\u000B'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading FF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='\u000Ca'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with trailing FF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\u000C'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading and trailing FF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='\u000Ca\u000C'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading CR",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='\ra'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with trailing CR",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\r'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid single class attribute value with leading and trailing CR",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='\ra\r'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid double class attribute value separated by space",
|
|
|
|
"input": "<span class='a b'>",
|
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid double class attribute value separated by tab",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\tb'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid double class attribute value separated by LF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\nb'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid double class attribute value separated by LT",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\u000Bb'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid double class attribute value separated by FF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\u000Cb'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "valid double class attribute value separated by CR",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\rb'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-if": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by space",
|
|
|
|
"input": "<span class='a a'>",
|
|
|
|
"fail-unless": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by tab",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\ta'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-unless": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by LF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\na'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-unless": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by LT",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\u000Ba'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-unless": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by FF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\u000Ca'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-unless": "invalid-attribute-value"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by CR",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\ra'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-unless": "duplicate-value-in-token-list"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by space",
|
|
|
|
"input": "<span class='a a'>",
|
|
|
|
"fail-unless": "duplicate-value-in-token-list"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by tab",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\ta'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-unless": "duplicate-value-in-token-list"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by LF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\na'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-unless": "duplicate-value-in-token-list"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by LT",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\u000Ba'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-unless": "duplicate-value-in-token-list"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by FF",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\u000Ca'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-unless": "duplicate-value-in-token-list"},
|
|
|
|
|
|
|
|
{"description": "invalid duplicated class attribute value separated by CR",
|
2007-09-10 05:26:19 +02:00
|
|
|
"input": "<span class='a\ra'>",
|
2007-08-30 19:19:10 +02:00
|
|
|
"fail-unless": "duplicate-value-in-token-list"}
|
|
|
|
|
|
|
|
]}
|
|
|
|
|