Rewrote fixTagAttributes() for robustness and correctness:
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 6 Feb 2005 12:46:31 +0000 (12:46 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 6 Feb 2005 12:46:31 +0000 (12:46 +0000)
commit5d0480ebec79782768296ac6ac3be01c4aadb236
tree52b5c1207ea98cb12a15cc093f0520ef5490f83c
parentf46435863e3ab96c026373e3f84e1d373c71159d
Rewrote fixTagAttributes() for robustness and correctness:
- Attribute whitelist now per-element to appease validation
- Always put values in quotes, for well-formed XML
- Check that entities in attributes (but not yet in general text) are actually defined in HTML
- Remove extra spaces that got put at the end of some tags w/o attributes
- Be generally anal about things
includes/Parser.php
includes/Sanitizer.php
maintenance/parserTests.txt