(bug 41545) Allow kbd, samp, and var to be nested.
authorDaniel Friesen <daniel@nadir-seen-fire.com>
Tue, 30 Oct 2012 13:34:56 +0000 (06:34 -0700)
committerDaniel Friesen <daniel@nadir-seen-fire.com>
Tue, 14 May 2013 02:15:59 +0000 (19:15 -0700)
commit22fe71315b0e836f44a3a8d195cadf6ba3711016
tree0b8cca45b467b2cc02d7c21e50ab36d2ea20c795
parentdb265d14ba3ccca080ef5804aedad968042caeb3
(bug 41545) Allow kbd, samp, and var to be nested.

HTML5 has various semantics that allow -- or rather require --
<kbd> and <samp> and even <var> to be nested.

eg: <kbd><kbd>Shift</kbd>+<kbd>F3</kbd></kbd>
eg: <var>x<sub><var>i</var></sub></var>, <var>y<sub><var>i</var></sub></var>

This fixes the sanitizer to permit their nesting and adds test cases to ensure that some
of HTML5's special semantics are permitted by our sanitizer and not broken.

Change-Id: I6ad64e6eb4c9b5bdc15be513f55c58f6717c3939
RELEASE-NOTES-1.22
includes/Sanitizer.php
tests/phpunit/includes/SanitizerTest.php