Expectation
Two <form role="search"> elements without an accessible name should be flagged as duplicate landmarks by the landmark-unique rule, in the same way that two <div role="search"> elements are.
Actual
<!-- Correctly flagged -->
<div role="search">div search1</div>
<div role="search">div search2</div>
<!-- Not flagged -->
<form role="search">form search1</form>
<form role="search">form search2</form>
How to Reproduce
https://codepen.io/sign_8824/pen/MYjqZmQ
Additional context
lib/rules/landmark-unique-matches.js appears to skip form and section elements that do not have an accessible name.
- The
landmark-unique rule currently flags duplicate landmarks even when they do not have an accessible name.
Expectation
Two
<form role="search">elements without an accessible name should be flagged as duplicate landmarks by thelandmark-uniquerule, in the same way that two<div role="search">elements are.Actual
How to Reproduce
https://codepen.io/sign_8824/pen/MYjqZmQ
Additional context
lib/rules/landmark-unique-matches.jsappears to skipformandsectionelements that do not have an accessible name.landmark-uniquerule currently flags duplicate landmarks even when they do not have an accessible name.