Accessibility/WebAccessibilityAPI: Difference between revisions

Line 1,683: Line 1,683:
In case if interactions cannot be provided then the accessible source have to implement <code>activate</code> method to invoke actions.
In case if interactions cannot be provided then the accessible source have to implement <code>activate</code> method to invoke actions.


====Proto====
====Inheritance====


<code>
<code>
AccessibleSource .''proto''
AccessibleSource .''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.  
::Refers to the accessible element implementation as there were no accessible source attached to it. Set by the browser when the accessible source is attached to the accessible element.
</code>
</code>


Line 1,696: Line 1,696:
var source = {
var source = {
   get relations() {
   get relations() {
     var r = this.proto.relations;
     var r = this.element.relations;
     r.add("labelledby", document.querySelector(this.selector);
     r.add("labelledby", document.querySelector(this.selector));
     return r;
     return r;
   },
   },
  element: null,
   selector: ""
   selector: ""
};
};
Confirmed users
1,396

edits