-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prevent illegal attribute names at compile time (#4650)
- Loading branch information
Showing
11 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
test/validator/samples/attribute-invalid-name-2/errors.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[{ | ||
"code": "illegal-attribute", | ||
"message": "'3aa' is not a valid attribute name", | ||
"start": { | ||
"line": 1, | ||
"column": 3, | ||
"character": 3 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 12, | ||
"character": 12 | ||
}, | ||
"pos": 3 | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p 3aa="abc">Test</p> |
15 changes: 15 additions & 0 deletions
15
test/validator/samples/attribute-invalid-name-3/errors.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[{ | ||
"code": "illegal-attribute", | ||
"message": "'a*a' is not a valid attribute name", | ||
"start": { | ||
"line": 1, | ||
"column": 3, | ||
"character": 3 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 6, | ||
"character": 6 | ||
}, | ||
"pos": 3 | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p a*a>Test</p> |
15 changes: 15 additions & 0 deletions
15
test/validator/samples/attribute-invalid-name-4/errors.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[{ | ||
"code": "illegal-attribute", | ||
"message": "'-a' is not a valid attribute name", | ||
"start": { | ||
"line": 1, | ||
"column": 3, | ||
"character": 3 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 5, | ||
"character": 5 | ||
}, | ||
"pos": 3 | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p -a>Test</p> |
15 changes: 15 additions & 0 deletions
15
test/validator/samples/attribute-invalid-name-5/errors.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[{ | ||
"code": "illegal-attribute", | ||
"message": "'a;' is not a valid attribute name", | ||
"start": { | ||
"line": 1, | ||
"column": 3, | ||
"character": 3 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 11, | ||
"character": 11 | ||
}, | ||
"pos": 3 | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p a;="abc">Test</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[{ | ||
"code": "illegal-attribute", | ||
"message": "'}' is not a valid attribute name", | ||
"start": { | ||
"line": 1, | ||
"column": 3, | ||
"character": 3 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 4, | ||
"character": 4 | ||
}, | ||
"pos": 3 | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p }>Test</p> |