-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty comments are not detected #256
Comments
@tbayer |
@lahwaacz There is ambiguity on whether |
I have updated the example. The bug apparently has to do with the different choices about recognizing and ending a run-on comment at a closing ref tag. Thus it might or might not be a special case of the preceding issue 255. |
@lahwaacz, to your note about fixing the source wikicode: This seems a bit beside the point, as the issue is about having mwparserfromhell and MediaWiki yield the same result. (For background: I encountered this problem while using mwp to search for certain kinds of malformed comments so that they can be fixed, in response to a request by editors on English Wikipedia, who had noticed cases where such typos had caused substantial parts of article text to be hidden unintentionally. If mwp doesn't detect such comments even though MW does, then that kind of search won't give the expected results.) |
The problems with overlapping HTML nodes are tracked in the epic issue #40. |
Example (updated and fixed, see comments):
Expected instead:
'PersonWomanCamera TV'
, consistent with MediaWiki's behaviorExpected instead:
['<!--Man']
(Encountered in this real-life example, in the form
<ref> ...<!--->]</ref>
.)The text was updated successfully, but these errors were encountered: