wiki.techinc.nl/tests/phpunit/includes/content
C. Scott Ananian 7738554eee [OutputTransform] Add data-mw-parsoid-version to wrapper div
Adding a data-mw-parsoid-version attribute to the wrapper div helps to
unambiguously mark parsoid-generated output in a way which is compatible
with CSS rules and client-side JavaScript.

By embedding the current version of parsoid in the data attribute,
sophisticated CSS rules can match against a specific version of
Parsoid in order to facilitate proper behavior; for example:

    div[data-mw-parsoid-version^="0.20.0"]

This could be useful in deployment scenarios where the parser cache
might contain content generated by older or newer versions of Parsoid,
for roll-forward or roll-back deployment scenarios, respectively.

Bug: T363378
Change-Id: I941d31479eebb12ea1f4dcdb0a1737033ddc8ac1
2024-04-29 12:36:50 -04:00
..
Transform tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
ContentHandlerTest.php Hard-deprecate ContentHandler::getContentText() 2024-04-21 22:15:09 +03:00
ContentModelChangeTest.php content: Remove unclear assertEquals() on Status objects 2024-03-12 06:28:08 +00:00
CssContentHandlerIntegrationTest.php
CssContentHandlerTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
CssContentTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
FallbackContentHandlerTest.php HtmlOutputRendererHelper: fall back to page language 2024-03-06 17:18:16 +00:00
FallbackContentTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
JavaScriptContentHandlerIntegrationTest.php
JavaScriptContentHandlerTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
JavaScriptContentTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
JsonContentHandlerIntegrationTest.php HtmlOutputRendererHelper: fall back to page language 2024-03-06 17:18:16 +00:00
MessageContentTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
RegistrationContentHandlerFactoryToMediaWikiServicesTest.php
TextContentHandlerIntegrationTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
TextContentTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
WikitextContentHandlerIntegrationTest.php [OutputTransform] Add data-mw-parsoid-version to wrapper div 2024-04-29 12:36:50 -04:00
WikitextContentHandlerTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
WikitextContentTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
WikitextStructureTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00