1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19

content / test / data / accessibility / accname / name-text-input-in-label.html [blame]

<!--
@BLINK-DENY:descri*
-->
<!doctype html>
<html>
<body>
<!--
In this case, the input with id="test" should include the other input's value
("David") since the other input is not the element being named. This case is
handled in step 2C in the accname computation algorithm:
https://w3c.github.io/accname/#computation-steps.

name-text-input-in-own-label.html handles the case where an input's value should
not be included in an input's name.
-->
<label for="test">foo<input type="text" value="David"/></label>
<input type="text" id="test" value="baz"/>
</body>
</html>