Accessibility/WebAccessibilityAPI: Difference between revisions

Jump to navigation Jump to search
Line 1,500: Line 1,500:
The web developer can alter existing accessible tree including subtree creations and deletions. This can be done either by <code>AccessibleSource</code> object assigned to the accessible element or by direct manipulations on the accessible tree.
The web developer can alter existing accessible tree including subtree creations and deletions. This can be done either by <code>AccessibleSource</code> object assigned to the accessible element or by direct manipulations on the accessible tree.


 
====Direct tree alteration====
====Direct manipulations on the tree====


Accessible source object can be used to create new accessible element and insert it into the tree. If DOM node is used as a source then associated subtrees of accessible elements within the DOM node are reparanted, i.e. they are removed from children of its current accessible parent and added as children of new parent. Accessible element can be removed from children.
Accessible source object can be used to create new accessible element and insert it into the tree. If DOM node is used as a source then associated subtrees of accessible elements within the DOM node are reparanted, i.e. they are removed from children of its current accessible parent and added as children of new parent. Accessible element can be removed from children.
Line 1,550: Line 1,549:
input.children.replace(document.getElementById("list"));
input.children.replace(document.getElementById("list"));
</script>
</script>
<pre>
</pre>




Line 1,621: Line 1,620:
canvasNode.addEventListener("click", source.onactivated.bind(source));
canvasNode.addEventListener("click", source.onactivated.bind(source));
</pre>
</pre>


===Feedback notifications===
===Feedback notifications===
Confirmed users
1,396

edits

Navigation menu