Skip to content

ol inside ul tags #29

Closed
elfassy opened this Issue Nov 26, 2010 · 1 comment

2 participants

@elfassy
elfassy commented Nov 26, 2010
<ul><li>one</li><ul><li>two</li></ul></ul><ol><li>one</li><ol><ol><ul><li>ok<br></li></ul></ol></ol></ol>

becomes

  • one
    • two
  1. one
    • ok

    This might be a bug with Nokogiri though

    @rgrove
    Owner
    rgrove commented Nov 26, 2010

    Yep, this is happening inside Nokogiri. You can confirm it by firing up irb and passing that markup directly to Nokogiri::HTML::DocumentFragment.parse().

    I'm not sure whether the Nokogiri folks will consider this a bug given that the input is malformed to begin with, but you might try filing a ticket with them just in case.

    This issue was closed.
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Something went wrong with that request. Please try again.