MediaWiki  1.29.2
tests/parser/parserTests.txt File Reference

Variables

div cla</p > ! end ! test Don t break on in extension attribute in template ! wikitext
 
__pad0__
 
span about
 
div cla
 
 div
 
 f9f9f9
 
font id ="bug" /&gt
 
with space after ! wikitext< div style="width:50% ! important"> important</div > ! html< div style="width:50% ! important"> important</div > !end ! test HTML bullet list
 
Centered text</center >< div > & lt
 
In div text</div > ! end ! test Punctuation
 
div ss
 
Bar style ='color:brown
 
needs investigation ! test T4304
 
! article Main Page ! text blah blah ! endarticle !article Foo !text FOO !endarticle !article Template
 
 title
 
 width
 

Variable Documentation

◆ ! wikitext

div cla</p > ! end ! test Don t break on in extension attribute in template html2html ! wikitext

Definition at line 6539 of file parserTests.txt.

References name.

◆ __pad0__

i __pad0__

Definition at line 6533 of file parserTests.txt.

◆ about

span about
Initial value:
=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid=&#39;{\"pi\":[[]],\"dsr\":[12,41,null,null]}&#39; data-mw=&#39;{\"parts\":[{\"template\":{\"target\":{\"wt\":\"dangerous style attribute\",\"href\":\"./Template:Dangerous_style_attribute\"},\"params\":{},\"i\":0}}]}&#39;>border-size: expression(alert(document.cookie))&lt;/span>"}]]}'></div>
!! end
!! test
T4304: HTML attribute safety (safe parameter; 2309)
!! wikitext
{{div style|width: 200px}}
!! html/php
<div style="float: right; width: 200px">Magic div</div>
!! html/parsoid
<div style="float: right; width: 200px" about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"stx":"html","a":{"style":"float: right; width: 200px"},"sa":{"style":"float: right; {{{1}}}"},"pi":[[{"k":"1"}]]}' data-mw='{"parts":[{"template":{"target":{"wt":"div style","href":"./Template:Div_style"},"params":{"1":{"wt":"width: 200px"}},"i":0}}]}'>Magic div</div>
!! end
!! test
T4304: HTML attribute safety (unsafe parameter; 2309)
!! wikitext
{{div style|width: expression(alert(document.cookie))}}
!! html/php
<div style="/* insecure input */">Magic div</div>
!! html/parsoid
<div style="/* insecure input */" about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"stx":"html","a":{"style":"/* insecure input */"},"sa":{"style":"float: right; {{{1}}}"},"pi":[[{"k":"1"}]]}' data-mw='{"parts":[{"template":{"target":{"wt":"div style","href":"./Template:Div_style"},"params":{"1":{"wt":"width: expression(alert(document.cookie))"}},"i":0}}]}'>Magic div</div>
!! end
## Parsoid output here differs

Definition at line 16626 of file parserTests.txt.

Referenced by UserOptions::warn().

◆ cla

div cla

Definition at line 6533 of file parserTests.txt.

◆ div

◆ f9f9f9

f9f9f9

Definition at line 149 of file parserTests.txt.

◆ id

font id ="bug" /&gt

Definition at line 17448 of file parserTests.txt.

Referenced by JobQueueRedis::pushBlobs().

◆ list

with space after ! wikitext<div style="width:50% ! important"> important</div> ! html<div style="width:50% ! important"> important</div> !end ! test HTML bullet list

Definition at line 17485 of file parserTests.txt.

◆ lt

Centered text</center><div> & lt

Definition at line 17449 of file parserTests.txt.

◆ Punctuation

</p > ! end ! test Punctuation

Definition at line 17462 of file parserTests.txt.

◆ ss

div ss

Definition at line 6533 of file parserTests.txt.

◆ style

◆ T4304

needs investigation ! test T4304

Definition at line 16653 of file parserTests.txt.

◆ Template

Foo and Baz ! endarticle ! article Template

Definition at line 134 of file parserTests.txt.

◆ title

title

Definition at line 211 of file parserTests.txt.

Referenced by MediaWiki\Widget\ComplexTitleInputWidget::__construct(), MergeHistoryPager::__construct(), ErrorPageError::__construct(), PageArchive::__construct(), UpdateCollation::__construct(), RevisionListBase::__construct(), CleanupInvalidDbKeys::__construct(), FileDeleteForm::__construct(), ImageHistoryList::__construct(), FeedItem::__construct(), UnregisteredLocalFile::__construct(), CategoryViewer::__construct(), Job::__construct(), BacklinkCache::__construct(), ArchivedFile::__construct(), Exif::__construct(), JobSpecification::__construct(), ChangesListFilterGroup::__construct(), PPFuzzTest::__construct(), File::__construct(), PPFrame_Hash::__construct(), PPFrame_DOM::__construct(), PPTemplateFrame_Hash::__construct(), PPTemplateFrame_DOM::__construct(), EmailNotification::actuallyNotifyOnPageChange(), CategoryMembershipChangeJobTest::addDBDataOnce(), SpecialChangeContentModel::alterForm(), LogFormatterTest::assertIRCComment(), File::assertTitleDefined(), DerivativeContext::canUseWikiPage(), EmailNotification::composeCommonMailtext(), CategoryViewer::doCategoryQuery(), RevDelFileList::doPostCommitUpdates(), RevDelRevisionList::doPostCommitUpdates(), RevDelRevisionList::doPreCommitUpdates(), ChangeTagsRevisionList::doQuery(), RevDelArchivedFileList::doQuery(), RevDelArchiveList::doQuery(), RevDelFileList::doQuery(), RevDelRevisionList::doQuery(), RevisionList::doQuery(), WebRequest::doSecurityRedirect(), CategoryMembershipChangeJobTest::editPageText(), SpecialCiteThisPage::execute(), FileDeleteForm::execute(), ConvertLinks::execute(), PPFuzzTest::execute(), PPFrame_Hash::expand(), PPFrame_DOM::expand(), ApiQueryRevisionsBase::extractRevisionInfo(), CategoryViewer::formatList(), BacklinkCache::get(), FileDeleteForm::getAction(), BacklinkCache::getCascadeProtectedLinks(), BacklinkCache::getConditions(), RevDelRevisionList::getCurrent(), ForeignDBFile::getDescriptionShortUrl(), LocalFile::getDescriptionShortUrl(), ForeignDBFile::getDescriptionText(), LocalFile::getDescriptionText(), LocalFile::getDescriptionTouched(), LocalFile::getDescriptionUrl(), SpecialChangeContentModel::getFormFields(), LocalFile::getHistory(), CategoryViewer::getImageSection(), PHPVersionCheck::getIndexErrorOutput(), PageArchive::getLastRevisionText(), File::getName(), BacklinkCache::getNumLinks(), CategoryViewer::getPagesSection(), PPFrame_Hash::getPDBK(), PPFrame_DOM::getPDBK(), PageArchive::getPreviousRevision(), ImportTest::getRedirectXML(), PPFuzzTest::getReport(), PageArchive::getRevision(), FeedItem::getTitle(), WatchedItem::getTitle(), DerivativeContext::getTitle(), RequestContext::getTitle(), ArchivedFile::getTitle(), ImportTest::getUnknownTagsXML(), RequestContext::hasTitle(), ImageHistoryList::imageHistoryLine(), WikiRevision::importOldRevision(), PageArchive::isDeleted(), LogPager::limitTitle(), PageArchive::listFiles(), PageArchive::listRevisions(), ArchivedFile::load(), ArchivedFile::loadFromRow(), LocalFile::move(), PPFrame_Hash::newChild(), PPFrame_DOM::newChild(), LogFormatterTest::newLogEntry(), LocalFile::nextHistoryLine(), SpecialCiteThisPage::onSubmit(), SpecialChangeContentModel::onSubmit(), SpecialChangeContentModel::onSuccess(), AtomFeed::outHeader(), outItem(), AtomFeed::outItem(), WebInstallerOutput::outputFooter(), WebInstallerOutput::outputHeader(), WebInstallerOutput::outputShortHeader(), CoreParserFunctions::pagesincategory(), CategoryViewer::pagingLinks(), BacklinkCache::partition(), SpecialJavaScriptTest::plainQUnit(), SpecialChangeContentModel::postText(), FileDeleteForm::prepareMessage(), ErrorPageError::report(), CreatePdfThumbnailsJob::run(), ThumbnailRenderJob::run(), EnotifNotifyJob::run(), DeleteLinksJob::run(), RefreshLinksJob::run(), DoubleRedirectJob::run(), TitlePermissionTest::runCSSandJSPermissions(), TitlePermissionTest::runGroupPermissions(), FileDeleteForm::setHeaders(), SpecialChangeContentModel::setParameter(), TitlePermissionTest::setTitle(), DerivativeContext::setTitle(), RequestContext::setTitle(), WikiRevision::setTitle(), RecentChangeTest::setUp(), ArticleTest::setUp(), TitlePermissionTest::setUp(), ParserPreloadTest::setUp(), LogFormatterTest::setUp(), RevDelList::setVisibility(), FileDeleteForm::showForm(), FileDeleteForm::showLogEntries(), ArticleTest::tearDown(), ParserPreloadTest::tearDown(), TitlePermissionTest::testActionPermissions(), TitlePermissionTest::testCascadingSourcesRestrictions(), RecentChangeTest::testHiddenCategoryChange(), LogFormatterTest::testLogParamsTypeRaw(), LogFormatterTest::testLogParamsTypeTitleLink(), LogFormatterTest::testNormalLogParams(), TitlePermissionTest::testPageRestrictions(), TitlePermissionTest::testQuickPermissions(), TitlePermissionTest::testSpecialsAndNSPermissions(), SideBarTest::testTrickyPipe(), TitlePermissionTest::testUserBlock(), JobSpecification::toSerializableArray(), Job::toString(), PageArchive::undelete(), PageArchive::undeleteRevisions(), ActivityUpdateJob::updateWatchlistNotification(), and wfThumbError().

◆ width

width
Initial value:
="10px" |
!! endarticle
Template:table_attribs_5
!! text
<noinclude>
|</noinclude>style="color:red;"||Bar
!! endarticle
Template:table_attribs_6
!! text
style="background: <nowiki>
red;</nowiki>" |
!! endarticle
Template:table_attribs_7
!! text
<noinclude>
|</noinclude>style{{=}}"background:&#35;f9f9f9;"|Foo<ref>foo</ref>
!! endarticle
Template:table_header_cells
!! text
{{table_attribs}}!!style='color:red

Definition at line 155 of file parserTests.txt.

Referenced by ArchivedFile::__construct(), Exif::__construct(), ThumbnailImage::__construct(), MediaTransformError::__construct(), ArchivedFile::loadFromRow(), LocalFile::recordUpload2(), OldLocalFile::upgradeRow(), and LocalFile::upgradeRow().

text
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
Definition: design.txt:12
Bar
Further assume MyExt::onFoo needs service Bar
Definition: injection.txt:214
article
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add in any and then calling but I prefer the flexibility This should also do the output encoding The system allocates a global one in $wgOut Title Represents the title of an article
Definition: design.txt:25
Template
! article Main Page ! text blah blah ! endarticle !article Foo !text FOO !endarticle !article Template
Definition: parserTests.txt:134
style
Bar style
Definition: parserTests.txt:184