Confirmed users
1,396
edits
| Line 28: | Line 28: | ||
readonly attribute AttributeSet attributes; | readonly attribute AttributeSet attributes; | ||
readonly attribute Object patternOf(DOMString type); | |||
sequence<AccessibleElement>? relationsOf(DOMString type); | sequence<AccessibleElement>? relationsOf(DOMString type); | ||
readonly attribute ActionSet actions; | readonly attribute ActionSet actions; | ||
| Line 120: | Line 120: | ||
::Returns a [[#AttributeSet|AttributeSet]] live object for all object attributes exposed on the accessible element. Attribute may have value of any type or it may not have value at all. If attributes on the accessible element are changed then the object reflects the actual state of attributes. The implementation is not required to precompute any of the attributes. | ::Returns a [[#AttributeSet|AttributeSet]] live object for all object attributes exposed on the accessible element. Attribute may have value of any type or it may not have value at all. If attributes on the accessible element are changed then the object reflects the actual state of attributes. The implementation is not required to precompute any of the attributes. | ||
</code> | </code> | ||
<div id="AttributeSet"> | <div id="AttributeSet"> | ||
| Line 143: | Line 144: | ||
::Return true if all properties of the given object and their values match name/value pairs from the map. If matched property value is null then value is ignored and is not part of the match. | ::Return true if all properties of the given object and their values match name/value pairs from the map. If matched property value is null then value is ignored and is not part of the match. | ||
</code> | </code> | ||
====Attribute list==== | ====Attribute list==== | ||
| Line 170: | Line 172: | ||
::Returns step value (iteration between next values). | ::Returns step value (iteration between next values). | ||
</code> | </code> | ||
===Patterns=== | |||
A pattern is a collection of attributes or methods expressing the accessible element semantics other than AccessilbeElement interface provides. The patterns concept is quite similar to attributes but tends to be more powerful. Basically it's alternative implementation of queryInterface. | |||
<code> | |||
Object .''patternOf''(DOMString type) | |||
::Returns an object for the pattern of given type if supported by the accessible element. | |||
</code> | |||
Attributes <code>minvalue</code>, <code>maxvalue</code>, <code>step</code> object attributes may be replaced by <code>Value</code> pattern implementing the following interface: | |||
<pre> | |||
interface AccessibleValue { | |||
readonly attribute long maxvalue; | |||
readonly attribute long minvalue; | |||
readonly attribute long step; | |||
}; | |||
</pre> | |||
===Relations=== | ===Relations=== | ||
| Line 204: | Line 227: | ||
</code> | </code> | ||
===Actions=== | ===Actions=== | ||