AXSelection: Strengthened table test
I tried hard, but I wasn't able to make non-text positions work inside a table.
The DOM parser collects all the non-white space text nodes between the table cells and places them in a single text node before the table element.
This is not part of the accessibility code, but is how the DOM parser works.
The alternative, which I implemented in this patch, is to enhance the table test by adding more selections inside text nodes.
<table>
^<tr>
<td>column</td>
</tr>|
</table>
Becomes in the DOM tree:
Body
++#Text "\n^|\n"
++Table
++++Tr
++++++Td
R=dmazzoni@chromium.org
Change-Id: I99c4a1f14805f9a0ba4addbaaff9bad1b1a0b86b
Reviewed-on: https://chromium-review.googlesource.com/c/1332728Reviewed-by:
Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Nektarios Paisios <nektar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607505}
Showing
Please register or sign in to comment