<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
</head>
<body id="body">
<label for="target">Label</label>
<div id="a">A</div>
<div id="b">B</div>
<div id="c">C</div>
<input id="target" aria-labelledby="a b c" value="10">
<script>
test((t) => {
var axTarget = accessibilityController.accessibleElementById("target");
assert_equals(axTarget.name, "A B C");
assert_equals(axTarget.nameElementCount(), 3);
}, "This tests that if aria-labelledby is used, then label elements are not used");
</script>
</body>
</html>