7 ms·
You can nest details/summary tags. I once created a choose-your-own adventure using it and posting it on our corporate intranet (I had a generator script to sti
by withinboredom 3y ago
You can nest details/summary tags. I once created a choose-your-own adventure using it and posting it on our corporate intranet (I had a generator script to stitch things together. The actual text was only a few pages long.) The HTML was 5mb ... I broke a lot of browsers that day. It had to be deleted.
- proamdev123 3y agoThis sounds interesting, but I’m not following. Do you mind expanding? Specifically, how does nesting details/summary tags relate to 5 MB of HTML, and how does that relate to breaking a lot of browsers? Sounds like a great story, and I’d love to hear it!
- marcosdumay 3y agoThe GP made an entire game in an (autogenerated) static HTML file. Most browsers don't have a 5MB single HTML as an usual target, and I guess not as a test case either.
- proamdev123 3y agoGot it. Thanks!
- withinboredom 3y agoIf you have a story with the following prompt: > go left > go right Where each of those is a branch in the story. Even if both branches converge eventually, all possibilities need to be in each branch. And so on. The number of summary tags is n! where n is the number of possible decisions. Thus you very, very quickly end up with a very large dom. Browsers aren’t really optimized to display hundreds of thousands of these tags, so they crashed.
- proamdev123 3y agoLol. Hilarious! Thanks for elaborating.