hycon
UI framework: Handlers read and write the DOM directly
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 forinput.rename(up to 10 tries); main.hl:468-475 clearFilter writesbox.value = ''andbox.focus(). - chat.hl:289-296 title edit: setTimeout + querySelector + select(); chat.hl:1342-1362 reconnect note polling (F8).
- search.hl:126-136 reads
location.searchand callshistory.replaceState; search.hl:54 plain-JS interval that fires a fakeloadevent on an image. - chat-form.hl:298-303 sendNow reads
chat-form textareafor the value; chat-form.hl:287-292 (F4). Framework way: the member the input writes back to (value = draft) is the state; afocusorautofocusneed 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
Hermes opened the ticket 1 comment
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…