Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Markup-view Linkify ARIA attributes</title>
<script>
"use strict";
class TestComponent extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: 'open'});
this.shadowRoot.innerHTML = `
<button
id="aria-describedby-shadow-dom"
aria-describedby="describedby01 describedbyshadow"
></button>
<div id="describedbyshadow">#describedbyshadow</div>
`;
}
}
customElements.define('test-component', TestComponent);
</script>
</head>
<body>
<div id="aria-activedescendant"
aria-activedescendant="activedescendant01">aria-activedescendant test</div>
<div id="activedescendant01">#activedescendant01</div>
<div id="aria-controls"
aria-controls="controls01 controls02">aria-controls test</div>
<div id="controls01">#controls01</div>
<div id="controls02">#controls02</div>
<div id="aria-describedby"
aria-describedby="describedby01 describedby02">aria-describedby test</div>
<div id="describedby01">#describedby01</div>
<div id="describedby02">#describedby02</div>
<div id="aria-details" aria-details="details01 details02">aria-details test</div>
<div id="details01">details01</div>
<div id="details02">details02</div>
<div id="aria-errormessage"
aria-errormessage="errormessage01">aria-errormessage test</div>
<div id="errormessage01">errormessage01</div>
<div id="aria-flowto"
aria-flowto="flowto01 flowto02">aria-flowto test</div>
<div id="flowto01">#flowto01</div>
<div id="flowto02">#flowto01</div>
<div id="aria-labelledby"
aria-labelledby="labelledby01 labelledby02">aria-labelledby test</div>
<div id="labelledby01">#labelledby01</div>
<div id="labelledby02">#labelledby02</div>
<div id="aria-owns" aria-owns="owns01 owns02">aria-owns test</div>
<div id="owns01">#owns01</div>
<div id="owns02">#owns02</div>
<test-component></test-component>
<div id="empty-attributes" aria-activedescendant=" " aria-details=" "></div>
</body>
</html>