180fb0d65a
With Chromium 61 in Qt 5.10, we get null when getting .selectionStart on a non-text element, like changed in the WhatWG HTML standard: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-textarea/input-selectionstart See https://www.chromestatus.com/feature/5740194741354496 Older QtWebEngines and QtWebKit raise InvalidStateError instead. This also changes the surrounding code and API so None is used to say "there's no caret position available", which seems like a nicer API. |
||
---|---|---|
.. | ||
.eslintignore | ||
.eslintrc.yaml | ||
history.js | ||
pac_utils.js | ||
position_caret.js | ||
scroll.js | ||
webelem.js |