mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
16b0c3c00e
With this change the <ol> is added after the inner list of <li> was parsed as wikitext. In other words, the outer <ol> is now raw HTML and not sanitized any more. This is fine because it's generated via code. It doesn't contain any user input. You might ask how it is possible to parse "invalid" HTML that contains a sequence of <li> without the outer <ol>. This is fine because the wikitext parser doesn't care about the nesting structure of HTML elements. This is done later by Remex (Tidy). But Remex is never called here. What we care about here is that the wikitext parser sanitizes the individual HTML elements and their attributes. The <ol> doesn't need sanitization. This will make it possible to use reserved data attributes for T196828. A bazillion unit and parser tests prove that this change doesn't have any unwanted side-effects. Bug: T196828 Bug: T239572 Change-Id: I0a9d419f48cad5ddb7251c8fdd2cf9506649436b |
||
---|---|---|
.phan | ||
cypress | ||
i18n | ||
modules | ||
src | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
AUTHORS.txt | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING.txt | ||
cypress.config.js | ||
extension.json | ||
Gruntfile.js | ||
MIT-LICENSE.txt | ||
package-lock.json | ||
package.json | ||
README.md |
Cite
The Cite extension provides a way for users to create references as footnotes to articles.
See https://www.mediawiki.org/wiki/Extension:Cite for detailed documentation.