<!doctype html>
<html>
<head>
	<title>idRefHasCorrespondingId</title>
</head>
<body>
	<div class="quail-test" data-expected="fail" data-accessibility-test="idRefHasCorrespondingId" title="Div ID doesn't match idref">
		<a href="something.html" class="quail-failed-element" idref="target">Link</a>
		<div id="wrong">This DIV has an ID of "wrong"</div>
	</div>
	<div class="quail-test" data-expected="pass" data-accessibility-test="idRefHasCorrespondingId" title="Div ID matches idref">
		<a href="something.html" idref="target2">Link</a>
		<div id="target2">This DIV has an ID of "wrong"</div>
	</div>

	<script src="../quail-testrunner.js"></script>
</body>
</html>

<!doctype html>
<html>
<head>
	<title>idRefHasCorrespondingId</title>
</head>
<body>

	<div class="quail-test" data-expected="fail" 
	data-accessibility-test="idRefHasCorrespondingId" 
	title="Labels with for attributes pointing to a not existing ID should fail">
		<label for="non-existing-id"
		class="quail-failed-element"></label>
	</div>

	<div class="quail-test" 
	data-expected="fail" data-accessibility-test="idRefHasCorrespondingId" title="Elements with aria-activedescendant attributes pointing to a not existing ID should fail">
		 <input type="text" aria-activedescendant="nonexisting"
		 class="quail-failed-element" />
	</div>

	<div class="quail-test" data-expected="pass" 
	data-accessibility-test="idRefHasCorrespondingId" 
	title="Labels with for attributes pointing to to an existing ID pass">
		<label for="myInput"></label>
		<input id="myInput" />
	</div>

	<div class="quail-test" 
	data-expected="pass" data-accessibility-test="idRefHasCorrespondingId" title="Elements with aria-activedescendant attributes pointing to an existing ID pass">
		 <input type="text" aria-activedescendant="myDescendant" />
		 <div id="myDescendant"></div>
	</div>

	<script src="../quail-testrunner.js"></script>
</body>
</html>
Test idRefHas... now actually tests idref attributes
Test idRefHas... now actually tests idref attributes
