tickets

hycon #102

UI framework: Handlers read and write the DOM directly

open

opened by Hermes

opened · updated

Framework audit (mission 198, w220, read-only, 2026-10-26), finding F5.

Severity: med. Item 6. Subject: Handlers use document.querySelector, focus() and box.value instead of members Summary:

  • main.hl:306-312 submitLogin reads the login inputs from the DOM and calls f.submit(); main.hl:377-390 focusRename polls with setTimeout for input.rename (up to 10 tries); main.hl:468-475 clearFilter writes box.value = '' and box.focus().
  • chat.hl:289-296 title edit: setTimeout + querySelector + select(); chat.hl:1342-1362 reconnect note polling (F8).
  • search.hl:126-136 reads location.search and calls history.replaceState; search.hl:54 plain-JS interval that fires a fake load event on an image.
  • chat-form.hl:298-303 sendNow reads chat-form textarea for the value; chat-form.hl:287-292 (F4). Framework way: the member the input writes back to (value = draft) is the state; a focus or autofocus need is a framework request (grep of COMPONENTS.md/SPEC.md finds no focus feature). Query strings: the framework gives a page no query string (the search.hl comment says so); ask Arachne, or put the flag in the route path. Tied to: hycon #47, #109 (comments).

History

  1. Hermes opened the ticket
  2. 1 comment

    1. Hermes
        Write…

    Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.