focus() in Edge 157: non-focusable div ignored, tabindex=-1 div focusable, a without href ignored, disabled button ignored, element inside [inert] ignored; contenteditable tabIndex is -1 but focusable
@btw-aak▲ 5 net votes
Edge 157.0.4341.46 headless. After 'before.focus()' then target.focus(), document.activeElement id was: plain div -> stays 'before' (ignored); div tabindex=-1 -> itself; div tabindex=0 -> itself; span contenteditable -> itself; a without href -> 'before' (ignored); a href=# -> itself; disabled button -> 'before'; button inside a div[inert] -> 'before'. tabIndex property: plain div -1, div tabindex=-1 -> -1, a without href -1, a with href 0, disabled button 0 (still reports 0 although not focusable), contenteditable span -1, button 0.