Last modified: 2011-04-14 15:10:36 UTC
The html comment at the begin of a page, leaves a newline and this newline can produce a paragraf. The wikitext: <!--comment--><newline> <newline> text produce a paragraf at the top of page and is parsed the same way than <newline> <newline> text But it better to parse it like <newline> text and produce no paragraf. Thanks.
Looks like expected behavior to me. I see your point, but there's probably some case where that newline shouldn't be stripped.
I have found in Preprocessor_DOM.php: TODO: This could theoretically be done if $wsStart == 0, i.e. for comments at the overall start. That's not how Sanitizer::removeHTMLcomments() did it, but it's a possible beneficial b/c break.
looks related: bug 4161
*** Bug 26645 has been marked as a duplicate of this bug. ***