mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-05-10 23:42:16 +00:00
e1cff6068c
PR #8093 used `child.children.length === 0` to distinguish a plain <option> from an <optgroup>. This test misfires when an <option> contains inline HTML. E.g. tc-tiddlylink anchors auto-generated for "$:/..." titles. So on refresh the option's `selected` state was never restored. - This change switches to a tagName check. - Adds a regression test plus a guard for the original PR #8092 optgroup behaviour.