Steps to reproduce:
- Open http://en.wikipedia.org/w/index.php?title=Template:Zh-full&action=edit&oldid=317512308 and copy the wikitext into the text field at http://en.wikipedia.org/wiki/Special:ExpandTemplates.
- Check "Show XML parse tree" and press OK
- Search in the XML output for the string "<comment></comment>"
Note that the output can't be correct, because a comment node must contain at least the opening "<!--" characters.
A few notes:
- This is not a bug of Special:Expandtemplates, as the api output of action=expandtemplates is the same.
- It appears to happen only very rarely and for certain input values
- The actual preprocessor output appears to be correct, which is why I suspect it might be a bug in the ->saveXML function of the DOM XML extension.
Version: 1.16.x
Severity: minor
URL: http://en.wikpiedia.org/w/index.php?title=Template:Zh-full&action=edit&oldid=317512308