mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00

These can contain <foreignobject>, which contains HTML but does not normally create its own Accessible. This means that these Accessibles could have TextLeafAccessible children. TextLeafAccessible children must always have a HyperTextAccessible as a parent. Therefore, we must use HyperTextAccessible for <svg> and <g>. As well as fixing assertions, this allows text formatting to be queried for <foreignobject> content, which was previously broken. Differential Revision: https://phabricator.services.mozilla.com/D164636