``` <div id="d1" style="visibility: visible;">d1 <div id="d2" style="visibility: visible;">d2 <div style="visibility: visible;">d3</div> </div> </div> ``` If we do: `d1.style.visibility = "hidden";` Strictly speaking, only d1's style has changed. However, we must traverse d2 (even though it's style hasn't changed) because otherwise, we wouldn't add it back into the a11y tree. But do we traverse d3? (I realise we don't send a notification for it because of the skip flag, but I'm curious as to whether the function gets a chance to look at it at all.)
Bug 1767561 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
``` <div id="d1" style="visibility: visible;">d1 <div id="d2" style="visibility: visible;">d2 <div style="visibility: visible;">d3</div> </div> </div> ``` If we do: `d1.style.visibility = "hidden";` Strictly speaking, only d1's style has changed. However, we must traverse d2 (even though its style hasn't changed) because otherwise, we wouldn't add it back into the a11y tree. But do we traverse d3? (I realise we don't send a notification for it because of the skip flag, but I'm curious as to whether the function gets a chance to look at it at all.)