User:Simetrical/9737

9737

No/random attributes on span
No error:


 * 1) One
 * 2) Two


 * 1) One
 * 2) Two

HTML result:

  One   Two  


 * 1) One
 * 2) Two


 * 1) One
 * 2) Two

  One   Two  

Etc. Best it can do: move them in the places where they can exist.

Id on span

 * 1) One
 * 2) Three?!


 * 1) One
 * 2) Three?!

  One   </li> <li> Three?! </li> </ol>

Tidy normally tries to "fix" inline elements wrapped around block-level elements by closing them and reopening. But this causes issues when the inline element has an id, because id's must be unique. What to do? Go insane, apparently, and try to open them anywhere and everywhere, breaking uniqueness constraints. It even wanted to open one in between the two <li>s for some reason, so it had to put them in a list item. It tried to make it invisible with list-style: none, but it's an ordered list. ..

Other block-level elements
Paragraph 1

Paragraph 2

Paragraph 1

Paragraph 2

Paragraph 1 Paragraph 2

Similar insanity, but not noticeable.

Other inline-level elements

 * 1) One
 * 2) Three!
 * 3) Four


 * 1) One
 * 2) Three!
 * 3) Four

<ol> <li> One </li> <li style="list-style: none"></li> <li> Three </li> <li> Four </li> </ol>


 * 1) One
 * 2) Two


 * 1) One
 * 2) Two

<ol> <li> One </li> <li> Two </li> </ol>

Strangely, with font tags it only happens if you have three items.