mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-24 22:55:11 +00:00
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.