Menu

#10 some lists do not convert to valid XML/HTML

open
nobody
5
2012-09-03
2006-10-20
No

The following wiki code generates invalid XML and the
resulting HTML is also invalid.

  • bulleted item
    1. First subitem of second item
      Some more text about first subitem....
      End of this subitem.
    2. Second subitem of second item
  • bulleted item

The problem is with item "1." The list item gets a
closing tag before the first CRLF character instead of
before the beginning of the next list item.

This is the XML that gets generated and it is invalid
because the two lines after are not enlosed in
either LI or UL tags.

  • First subitem of second item

  • Some more text about first subitem....

    End of this subitem.

    The correct XML should be this:

  • First subitem of second item
    Some more text about first subitem....
    End of this subitem.
  • Discussion


    Log in to post a comment.

    MongoDB Logo MongoDB