Sorry, I didn't mean to suggest your solution was brittle -- I actually quite like it and want to adopt it!
But I do think the legacy browser behavior with the ID attribute as window properties is very brittle for the reasons you suggest
But I do think the legacy browser behavior with the ID attribute as window properties is very brittle for the reasons you suggest
Reading it more slowly, I see it now, and, thank you!