aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-27 18:43:06 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-27 18:43:06 +0100
commitfd5da0ef9701a82ca39fb6229fa300d92c7b966e (patch)
tree9fefe3e419e591e161e5419e636dbf3d69ea6d6b /doc
parent5492fdf89f9c654828fbdbb28fd55ebeeecf5460 (diff)
downloadchawan-fd5da0ef9701a82ca39fb6229fa300d92c7b966e.tar.gz
dom: add focus()
Respects autofocus.
Diffstat (limited to 'doc')
-rw-r--r--doc/config.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/config.md b/doc/config.md
index 1fee73a3..a56ad47c 100644
--- a/doc/config.md
+++ b/doc/config.md
@@ -186,6 +186,7 @@ option disabled, only enabling it for specific sites in `[[siteconf]]`.
<td>boolean</td>
<td>When set to true, elements with an "autofocus" attribute are focused on
automatically after the buffer is loaded.<br>
+If scripting is enabled, this also allows scripts to focus on elements.<br>
Defaults to false.</td>
</tr>
@@ -908,8 +909,11 @@ are doing.</td>
<tr>
<td>autofocus</td>
<td>boolean</td>
-<td>When set to true, elements with an "autofocus" attribute are focused on
-automatically after the buffer is loaded. Overrides `buffer.autofocus`.</td>
+<td>When set to true, elements with an "autofocus" attribute are focused
+on automatically after the buffer is loaded.<br>
+If scripting is enabled, this also allows scripts to focus on
+elements.<br>
+Overrides `buffer.autofocus`.</td>
</tr>
<tr>