Item14096: Bulleted List - level 2

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: CarmenPomana
Waiting For:
Last Change By: CrawfordCurrie
-- CarmenPomana - 14 Jun 2016

 

When trying to create a list with bullet points at level 2 only, FOS Wiki inserts at the beginning a bullet point at level 1 as well (although not intended)

    • item 1
    • item 1

Browsers where this was noticed:
  • Internet Explorer 11
  • Google Chrome 51.0.2704.84

FOS Wiki translates to:
   <ul>
      <li>
         <ul>
            <li> item 1 </li>
            <li> item 2 </li> 
         </ul> 
      </li>
   </ul>

Instead of:
   <ul>
      <ul>
         <li> item 1 </li>
         <li> item 2 </li> 
      </ul> 
   </ul>


The HTML that Foswiki generates is valid HTML - your preferred version is not. UL is not permitted as a direct child of a UL element - see http://w3c.github.io/html/single-page.html#the-ul-element

You can achieve the same effect in valid HTML with CSS, but that will require HTML. For example,

<ul style="list-style: none;">
   <li>
   * Item 1
   * Item 2
   </li>
</ul>
gives:

    • Item 1
    • Item 2

-- Main.CrawfordCurrie - 17 Jun 2016 - 08:34
Topic revision: r2 - 17 Jun 2016, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy