From f43a5973705602793b256b6e39bfccc394e5f9f1 Mon Sep 17 00:00:00 2001 From: Luca Benci Date: Thu, 12 Oct 2017 22:42:40 +0200 Subject: [PATCH] Add `cursor_position` to `serialize_elem` output --- qutebrowser/javascript/webelem.js | 1 + 1 file changed, 1 insertion(+) diff --git a/qutebrowser/javascript/webelem.js b/qutebrowser/javascript/webelem.js index ce348c46b..a37fcd6c8 100644 --- a/qutebrowser/javascript/webelem.js +++ b/qutebrowser/javascript/webelem.js @@ -53,6 +53,7 @@ window._qutebrowser.webelem = (function() { "value": elem.value, "outer_xml": elem.outerHTML, "rects": [], // Gets filled up later + "caret_position": elem.selectionStart, }; // https://github.com/qutebrowser/qutebrowser/issues/2569