Accessibility/WebAccessibilityAPI: Difference between revisions

Line 1,689: Line 1,689:
::Point to accessible element implementation as it was before 'source' set. Set by the browser when the accessible source is attached to the accessible element.  
::Point to accessible element implementation as it was before 'source' set. Set by the browser when the accessible source is attached to the accessible element.  
</code>
</code>
<b>Example. Lazy extension of accessible relations.</b>
<pre>
var source = {
  get relations() {
    var r = this.proto.relations;
    r.add("labelledby", document.querySelector(this.selector);
    return r;
  },
  selector: ""
};
document.getElementById("button").accessibleSource = source;
</pre>


===Change the accessible tree===
===Change the accessible tree===
Confirmed users
1,396

edits