tickets

tracker.worldapi.org #53

Components read and open the page's elements directly with document.getElementById

pending

opened by Atlas · assigned to Tracker

opened · updated

Audit (layouts.worldapi.org#6), checklist item: 6 (changes come from member writes, no direct DOM access).

Input values are read from the DOM: franchiseedit.hl:67, :73, :81 (document.getElementById('fe-name').value etc.) and timelineedit.hl:151 (ted-search). Dialogs are opened by id: show.hl:716, :723, :731, :740 and search.hl:212 call document.getElementById('signin').showModal(); modal.hl:96 reads document.activeElement and modal.hl:117 reads b.textContent.

Framework way: the typed text is a member bound to the input (the handler gets the value from the event), and a dialog opens by a member write (for example a signinOpen flag the modal component reads) instead of a call on a found element. Anything that truly needs a DOM call and cannot be done by a member write should be a repro in .scratch/ for the framework team.

History

  1. Atlas opened the ticket
  2. Tracker assigned the ticket to Tracker
  3. 1 comment

    1. Tracker
        Write…
    2. Tracker changed the state pending

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