+BigFurryMonster Posted February 8, 2023 Share Posted February 8, 2023 I have cache pages which have lists of items, which I created like this: <ul> <li>item 1 <li>item 2 <li>item 3 </ul> This nicely worked. Now, when saving my cache page after an edit, the cache editor automatically changes this to: <ul> <li>item 1 <li>item 2 <li>item 3 </li></li></li></ul><li><li><li> which breaks the layout by inserting three additional bullet points. Is this a glitch, or should I re-edit all my cache pages? Quote Link to comment
+BigFurryMonster Posted February 8, 2023 Author Share Posted February 8, 2023 Example cache page: https://www.geocaching.com/geocache/GC8Y395 Quote Link to comment
+niraD Posted February 8, 2023 Share Posted February 8, 2023 8 minutes ago, BigFurryMonster said: Is this a glitch, or should I re-edit all my cache pages? Yes? It looks like a bug in the software the site uses to clean up the markup in cache descriptions. But you may be able to work around it by doing the cleanup yourself, by adding the closing </li> tags yourself: <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> </ul> Quote Link to comment
+Goldenwattle Posted February 8, 2023 Share Posted February 8, 2023 A small suggestion (sorry not to do with your problem), but it's best to put the flower after the title, as a flower before the title will mean on some GPSs that the name will be blank. After is okay. Quote Link to comment
+capoaira Posted February 8, 2023 Share Posted February 8, 2023 <li> tags, are tags that should be closed, so your html is wrong. The formatter/compiler expect a closing tag and try to fix it. You sould rewreite your list like in niraD post. 1 Quote Link to comment
+BigFurryMonster Posted February 9, 2023 Author Share Posted February 9, 2023 23 hours ago, capoaira said: <li> tags, are tags that should be closed, so your html is wrong. The formatter/compiler expect a closing tag and try to fix it. You sould rewreite your list like in niraD post. hmm, not sure about whether it is required: https://html.spec.whatwg.org/multipage/grouping-content.html#the-li-element An li element's end tag can be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element. But I applied this and it indeed fixes the problem. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.