What's new? | Help | Directory | Sign in
Google
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{"tests": [

{"description": "valid ID 'a'",
"input": "<span id=a>",
"fail-if": "invalid-attribute-value"},

{"description": "valid ID '1'",
"input": "<span id=1>",
"fail-if": "invalid-attribute-value"},

{"description": "wacky but valid ID",
"input": "<span id='<html><head><title>a</title></head><body><p>b</p></body></html>'>",
"fail-if": "invalid-attribute-value"},

{"description": "invalid blank ID",
"input": "<span id>",
"fail-unless": "attribute-value-can-not-be-blank"},

{"description": "invalid blank ID with quotes",
"input": "<span id=''>",
"fail-unless": "attribute-value-can-not-be-blank"},

{"description": "invalid ID because of leading space",
"input": "<span id=' a'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of trailing space",
"input": "<span id='a '>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of space in value",
"input": "<span id='a b'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of leading tab",
"input": "<span id='\ta'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of trailing tab",
"input": "<span id='a\t'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of tab in value",
"input": "<span id='a\tb'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of leading LF",
"input": "<span id='\na'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of trailing LF",
"input": "<span id='a\n'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of LF in value",
"input": "<span id='a\nb'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of leading LT",
"input": "<span id='\u000Ba'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of trailing LT",
"input": "<span id='a\u000B'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of LT in value",
"input": "<span id='a\u000Bb'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of leading FF",
"input": "<span id='\u000Ca'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of trailing FF",
"input": "<span id='a\u000C'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of FF in value",
"input": "<span id='a\u000Cb'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of leading CR",
"input": "<span id='\ra'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of trailing CR",
"input": "<span id='a\r'>",
"fail-unless": "space-in-id"},

{"description": "invalid ID because of CR in value",
"input": "<span id='a\rb'>",
"fail-unless": "space-in-id"},

{"description": "duplicate ID values",
"input": "<span id=a><span id=a>",
"fail-unless": "duplicate-id"},

{"description": "duplicate ID values with spaces (weird but true)",
"input": "<span id='a '><span id='a '>",
"fail-unless": "duplicate-id"},

{"description": "not duplicate ID values because spaces don't match",
"input": "<span id=a><span id='a '>",
"fail-if": "duplicate-id"},

{"description": "not duplicate ID values because spaces don't match",
"input": "<span id=' a'><span id='a '>",
"fail-if": "duplicate-id"},

{"description": "not duplicate ID values because case doesn't match",
"input": "<span id=a><span id=A>",
"fail-if": "duplicate-id"}

]}
Show details Hide details

Change log

r1003 by jacques.distler on Sep 09, 2007   Diff
Fix (the rest of the) tests so Ruby JSON
module doesn't barf.
Go to: 
Project members, sign in to write a code review

Older revisions

r977 by pilgrim on Aug 29, 2007   Diff
added more tests for validating id
attributes
r976 by pilgrim on Aug 29, 2007   Diff
added support for validating id
attributes
All revisions of this file

File info

Size: 3337 bytes, 115 lines

File properties

svn:executable
*