-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Explicit form regions should not be ignored (#8)
With some help :-) I think we've got to the bottom of [how forms and regions, `<form>` and `<section>` should be recognised](#2 (comment)). This also includes some updates to the expectation metadata schema, and hopefully helpful links to give this background info. Further, the schema requires the root of the expectations themselves to be an array. Closes #2.
- Loading branch information
Showing
14 changed files
with
192 additions
and
30 deletions.
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
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
This file was deleted.
Oops, something went wrong.
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
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
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,12 @@ | ||
{ | ||
"meta": { | ||
"name": "Unlabelled <form> element is ignored", | ||
"links": [ | ||
{ | ||
"url": "https://github.com/matatk/page-structural-semantics-scanner-tests/issues/2#issuecomment-497938545", | ||
"text": "Overall info on forms and regions" | ||
} | ||
] | ||
}, | ||
"expected": [] | ||
} |
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,23 @@ | ||
{ | ||
"meta": { | ||
"name": "Form with no label, but an explicit role, is recognised", | ||
"links": [ | ||
{ | ||
"url": "https://github.com/matatk/page-structural-semantics-scanner-tests/issues/2#issuecomment-497938545", | ||
"text": "Overall info on forms and regions" | ||
}, | ||
{ | ||
"url": "https://w3c.github.io/core-aam/#details-id-22", | ||
"text": "<div role=\"form\"> gets a landmark" | ||
} | ||
] | ||
}, | ||
"expected": [ | ||
{ | ||
"type": "landmark", | ||
"role": "form", | ||
"label": "null", | ||
"selector": "body > div" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
{ | ||
"meta": { | ||
"name": "Unlabelled region is ignored" | ||
"name": "Unlabelled region is ignored", | ||
"links": [ | ||
{ | ||
"url": "https://github.com/matatk/page-structural-semantics-scanner-tests/issues/2#issuecomment-497938545", | ||
"text": "Overall info on forms and regions" | ||
} | ||
] | ||
}, | ||
"expected": [] | ||
} |
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
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
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
File renamed without changes.
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,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title></title> | ||
</head> | ||
<body> | ||
<div role="form"> | ||
<p>The form with no name, but an explicit role.</p> | ||
</div> | ||
</body> | ||
</html> |
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