My page has an input with autofocus="autofocus" but page.getFocusedElement() is null. I can confirm the page has the contents I expect. Moreover the input has the autofocus in page.asXML()
<input name="content" class="new-todo" placeholder="What needs to be done?" hx-vals="{"completed":"off"}" hx-post="/todo?" hx-target="body" hx-trigger="keyup[key=='Enter']" hx-on="htmx:beforeRequest: event.target.readOnly = true" required="required" autofocus="autofocus"/>
I expected to see get my input in page.getFocusedElement(). Is this not implemented or did I miss something? Should it be a bug?
page.asXML():
```XML
Ktor + htmx
todos
```
HTML String returned by my browser:
```Handlebars
Ktor + htmx
My page has an
input
withautofocus="autofocus"
butpage.getFocusedElement()
is null. I can confirm the page has the contents I expect. Moreover the input has the autofocus in page.asXML()I expected to see get my input in page.getFocusedElement(). Is this not implemented or did I miss something? Should it be a bug?
page.asXML():
```XMLtodos
HTML String returned by my browser:
```Handlebarstodos