qutebrowser/qutebrowser/javascript
Florian Bruhin 180fb0d65a Fix handling of caret position with Qt 5.10
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.
2017-11-08 16:27:26 +01:00
..
.eslintignore Ignore ESLint warnings for Mozilla's PAC utils 2016-12-07 02:01:19 +03:00
.eslintrc.yaml Remove some obsolete/deprecated eslint customizations 2017-11-02 20:00:29 +01:00
history.js change some lambdas to functions 2017-10-31 12:54:26 +01:00
pac_utils.js keep old pac_utils.js 2017-10-31 16:40:09 +01:00
position_caret.js change some lambdas to functions 2017-10-31 12:54:26 +01:00
scroll.js change some lambdas to functions 2017-10-31 12:54:26 +01:00
webelem.js Fix handling of caret position with Qt 5.10 2017-11-08 16:27:26 +01:00