Accessibility/WebAccessibilityAPI: Difference between revisions

Line 28: Line 28:


   readonly attribute AttributeMap attributes;
   readonly attribute AttributeMap attributes;
  readonly attribute sequence<DOMString> patterns;
   readonly attribute Object toPattern(DOMString type);
   readonly attribute Object toPattern(DOMString type);


Line 192: Line 194:


A pattern is a collection of attributes or methods that expresses an accessible element semantics and compliments what the AccessibleElement interface provides. The patterns concept is quite similar to attributes but tends to be more powerful. Basically, it is an alternative implementation of COM's queryInterface.
A pattern is a collection of attributes or methods that expresses an accessible element semantics and compliments what the AccessibleElement interface provides. The patterns concept is quite similar to attributes but tends to be more powerful. Basically, it is an alternative implementation of COM's queryInterface.
<code>
AccessibleElement .''patterns''
::Returns a list of all patterns supported by the accessible element.
</code>


<code>
<code>
Confirmed users
1,396

edits