Skip to content

Commit 46294dd

Browse files
adding preamble to label-in-name-algorithm.md which mentions what this algorithm is for.
1 parent 24d0ffc commit 46294dd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pages/glossary/label-in-name-algorithm.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ input_aspects:
88
- DOM tree
99
---
1010

11+
To check whether an [element][] has <dfn>its label contained in its name</dfn>, follow this algorithm:
12+
1113
Let 'label' be the [visible inner text][] of the target element. Let 'name' be the [accessible name][] of the target element. Both 'label' and 'name' are strings.
1214

1315
Sub-algorithm to tokenize a string:
@@ -32,3 +34,4 @@ If the answer is "yes" (that is: the tokenized 'label' is a sublist of the token
3234

3335
[accessible name]: #accessible-name 'Definition of accessible name'
3436
[visible inner text]: #visible-inner-text 'Definition of Visible inner text'
37+
[element]: https://dom.spec.whatwg.org/#element

0 commit comments

Comments
 (0)