Confirmed users
1,396
edits
Line 1,420: | Line 1,420: | ||
readonly attribute object attributes; | readonly attribute object attributes; | ||
readonly attribute object relations; | readonly attribute object relations; | ||
readonly attribute sequence<DOMString> patterns; | |||
object toPattern(DOMString); | |||
readonly attribute DOMString text; | readonly attribute DOMString text; | ||
object textAttributesAt( | object textAttributesAt(Offset); | ||
readonly attribute object actions; | readonly attribute object actions; | ||
Line 1,540: | Line 1,543: | ||
In this case the <code>labelledby</code> relation getter is more powerful than its ARIA version and all computations are running iff somebody inquired the relation. | In this case the <code>labelledby</code> relation getter is more powerful than its ARIA version and all computations are running iff somebody inquired the relation. | ||
====Patterns==== | |||
<code> | |||
AccessibleSource .''patterns'' | |||
::Returns a list of all patterns implemented by the accessible element. | |||
</code> | |||
<code> | |||
AccessibleSource .''toPattern'' | |||
::Returns an object for the given pattern. If the method is not provided then the source object has to implemented itself all claimed patterns. | |||
</code> | |||
<b>Example #4. Implement patterns.</b> | |||
<pre> | |||
var slider = { | |||
role: "slider", | |||
patterns: [ "value" ], | |||
toPattern: function(aName) { | |||
return aName == "value" ? this : null; | |||
}, | |||
min: 0, | |||
max: 100, | |||
value: 0 | |||
}; | |||
</pre> | |||
====Text==== | ====Text==== | ||
<code> | <code> | ||
AccessibleSource .''text'' | |||
::Return the text. | ::Return the text. | ||
AccessibleSource .''textAttributesAt'' | |||
::Returns object of { name: value } pairs representing text attributes at given offset within the accessible element text. | ::Returns object of { name: value } pairs representing text attributes at given offset within the accessible element text. | ||
</code> | </code> | ||
Line 1,615: | Line 1,649: | ||
::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> | ||
===Change the accessible tree=== | ===Change the accessible tree=== |