mediawiki-extensions-Templa.../includes
Thiemo Kreuz 1c0687c850 Fix wrapper="…" failing for more complex selectors
For example, <templatestyles wrapper="a[href]" /> fails with an
InvalidArgumentException very late in the process, long after
the actual validation in TemplateStylesHooks::validateExtraWrapper()
was done. This happens because validateExtraWrapper() works on a
proper tree (where the [href] from the example is a nested object),
but flattens this tree in the end via toTokenArray(). This
flattened array ends in StyleRuleSanitizer::doSanitize() where it
is added to a ComponentValueList – which expects a tree.

The only change in this patch is that the object structure is not
flattened any more. That's all.

Bug: T258093
Change-Id: I5dc04611f91fe672da706f31fa8d0c254e3123d3
2020-10-15 06:51:21 +00:00
..
TemplateStylesContent.php build: Updating mediawiki/mediawiki-phan-config to 0.8.0 2019-11-06 20:24:26 +01:00
TemplateStylesContentHandler.php Use SPDX 3.0 license identifier 2018-03-03 23:27:16 +00:00
TemplateStylesFontFaceAtRuleSanitizer.php Use SPDX 3.0 license identifier 2018-03-03 23:27:16 +00:00
TemplateStylesHooks.php Fix wrapper="…" failing for more complex selectors 2020-10-15 06:51:21 +00:00
TemplateStylesMatcherFactory.php build: Updating mediawiki/mediawiki-codesniffer to 29.0.0 2020-01-14 12:48:19 +00:00