From: C. Scott Ananian Date: Mon, 22 Apr 2019 16:47:48 +0000 (-0400) Subject: Allow attributes through Sanitizer X-Git-Tag: 1.34.0-rc.0~1868^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=f6038b0c81780b75a19a1126e9b1edd6b4301200;p=lhc%2Fweb%2Fwiklou.git Allow attributes through Sanitizer Parsoid uses for inline figures. The intention is to transition core to use
and as well in the future (T118517). As a first step (and to keep Parsoid and the legacy parser in sync) allow attributes in the Sanitizer. Note that this does not allow in wikitext, since neither
nor is on the getRecognizedTagData() list. Bug: T51097 Bug: T118517 Bug: T118520 Change-Id: I5248717739bef0f7106c2bcf0b4a15acbc3c9a68 --- diff --git a/includes/parser/Sanitizer.php b/includes/parser/Sanitizer.php index 35a5944711..abf071414b 100644 --- a/includes/parser/Sanitizer.php +++ b/includes/parser/Sanitizer.php @@ -1957,6 +1957,7 @@ class Sanitizer { // HTML 5 section 4.5 'figure' => $common, + 'figure-inline' => $common, # T118520 'figcaption' => $common, # HTML 5 section 4.6