Followup to r86061: add parser test case to confirm that '&apos' in wikitext doesn...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 7 Jun 2011 20:11:24 +0000 (20:11 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 7 Jun 2011 20:11:24 +0000 (20:11 +0000)
commit3e7276208a9ecab93ed614c1fa774e161d6424eb
tree466d15523180e9500319b824b65c03692ff3075e
parent164cc61f171b81e6b9b93faf1d7be7f279a10d7b
Followup to r86061: add parser test case to confirm that '&apos' in wikitext doesn't make it to output.

'&apos;' is not defined in HTML 4, and some browsers (for instance IE at least through 8) do not support it.
It is however part of XML 1 (and thus XHTML 1), and is also defined in HTML 5 provisional, so it's fine to accept it.

Normalization seems to already handle turning the &apos; named char reference into &#39; so we don't have any compatibility worries.

Also added a comment on the def in Sanitizer that it shouldn't be used in output.
includes/Sanitizer.php
tests/parser/parserTests.txt