diff --git a/combined/expectations.json b/combined/expectations.json index 5f11dab..57f11f1 100644 --- a/combined/expectations.json +++ b/combined/expectations.json @@ -267,6 +267,19 @@ } ] }, + "form-unlabelled-with-explicit-role": { + "meta": { + "name": "Form with no label, but an explicit role, is recognised" + }, + "expected": [ + { + "type": "landmark", + "role": "form", + "label": "null", + "selector": "body > div" + } + ] + }, "header-containing-nav-nav-search": { "meta": { "name": "Header with nested landmarks, and others are recognised" @@ -585,6 +598,12 @@ "label": null, "selector": "#complementary", "contains": [ + { + "type": "landmark", + "role": "form", + "label": null, + "selector": "#form" + }, { "type": "landmark", "role": "search", diff --git a/combined/fixtures.html b/combined/fixtures.html index 5d8b327..25feffe 100644 --- a/combined/fixtures.html +++ b/combined/fixtures.html @@ -184,6 +184,11 @@

Report a Fault

A form with a visible name for all folk!

+
+
+

The form with no name, but an explicit role.

+
+
Page Header diff --git a/expectations/form-unlabelled-with-explicit-role.json b/expectations/form-unlabelled-with-explicit-role.json new file mode 100644 index 0000000..51e595f --- /dev/null +++ b/expectations/form-unlabelled-with-explicit-role.json @@ -0,0 +1,13 @@ +{ + "meta": { + "name": "Form with no label, but an explicit role, is recognised" + }, + "expected": [ + { + "type": "landmark", + "role": "form", + "label": "null", + "selector": "body > div" + } + ] +} diff --git a/expectations/roles-land.json b/expectations/roles-land.json index dcf469c..c48418d 100644 --- a/expectations/roles-land.json +++ b/expectations/roles-land.json @@ -27,6 +27,12 @@ "label": null, "selector": "#complementary", "contains": [ + { + "type": "landmark", + "role": "form", + "label": null, + "selector": "#form" + }, { "type": "landmark", "role": "search", diff --git a/fixtures/form-unlabelled-with-explicit-role.html b/fixtures/form-unlabelled-with-explicit-role.html new file mode 100644 index 0000000..29384fe --- /dev/null +++ b/fixtures/form-unlabelled-with-explicit-role.html @@ -0,0 +1,12 @@ + + + + + + + +
+

The form with no name, but an explicit role.

+
+ +