Author: dannychia
Description:
For some reason, the numbered list is showing the numbers 1, 3, 4, and 5, skipping the number 2.
Version: unspecified
Severity: major
URL: http://en.wikipedia.org/w/index.php?title=User_talk:ClueBot&oldid=150881319
Author: dannychia
Description:
For some reason, the numbered list is showing the numbers 1, 3, 4, and 5, skipping the number 2.
Version: unspecified
Severity: major
URL: http://en.wikipedia.org/w/index.php?title=User_talk:ClueBot&oldid=150881319
There's unclosed <span> tag right before the list. It's actually closed at the end of one before last paragraph. Rewrite "span" to "div" in both.
Although solution is simple, this is still a big bug.
I've done some observation and here are some clues for whoever will be fixing it:
<span class="foo">
<div class="bar">
lorem
#1
#2
#3
abc<div class="quo">ipsum</div>def
</div>
</span>
produces
<ol>
<li><span class="foo">1</span></li>
<li style="list-style: none"></li>
<li><span class="foo">2</span></li>
<li><span class="foo">3</span></li>
</ol>
<div class="bar">
<p><span class="foo">lorem</span></p>
<ol>
<li><span class="foo">1</span></li>
<li style="list-style: none"></li>
<li><span class="foo">2</span></li>
<li><span class="foo">3</span></li>
</ol>
<span class="foo">abc</span>
<div class="quo"><span class="foo">ipsum</span></div>
<span class="foo">def</span></div>
Although this might have been some kind of help for bad-coding users to display things "properly" (rather visually properly), it is real pain. There should be absolutely no stuff added in output code this way, because it totally changes the DOM tree of page (so some scripts may not work) besides it raises up the output size of the page (imagine somebody will wrap entire page in this span).