mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
![Masayuki Nakano](/assets/img/avatar_default.png)
This fixes odd case of this API. GetSelectedElement() ignores non-element nodes before an element node. This must be intended to allow Selection to start from in an element node. However, current code allows to select starting from previous text node. This patch changes this behavior to stop looking for element node if non-element node appears before an element node. Differential Revision: https://phabricator.services.mozilla.com/D10703 --HG-- extra : moz-landing-system : lando