MediaWiki
1.32.5
|
Functions | |
script | alert ("pwnd") < |
&& | alert ('XSS') |
</source > ! result< div id="foo" class="bar mw-highlight mw-content-rtl" dir="rtl" style="font-size: larger;">< pre >< span ></span >< span class="kd"> var</span >< span class="nx"> a</span >< span class="p"></span ></pre ></div > ! end ! test Inline | attribute (inline code) !!input Text< source lang |
</p > ! end ! test Default | behaviour (inner is pre) !!input< source lang |
</source > ! result< p > Text< code class="mw-highlight" dir="ltr">< span class="kd"> var</span >< span class="nx"> a</span >< span class="p"></span ></code ></p > ! end ! test Enclose | none (inline code) !!input Text< source lang |
script (document.cookie)%253c/script%253e</pre ></div > !! end !! test XSS is escaped(inline) !!input< source lang | |
! hooks source ! endhooks ! test Non existent language !input< source lang="doesnotexist"> foobar</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > foobar</pre ></div > ! end ! test No language specified ! wikitext< source > foo</source > ! html< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > foo</pre ></div > ! end ! test No language | specified (no wellformed xml) !! config !! wikitext< source > bar</source > !! html< div class |
Variables | |
</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre >< span ></span >< span class="kd"> var</span >< span class="nx"> a</span >< span class="p"></span ></pre ></div > ! end ! test Multiline< source/> in lists !input *< source > a b</source > *foo< source > a b</source > ! html< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! html tidy< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! end ! test Custom attributes !input< source lang="javascript" id="foo" class="bar" dir="rtl" style="font-size: larger;"> var | a |
& | amp |
script & | gt |
</script > document cookie script</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > & | lt |
IMG | SRC |
alert | ( | "pwnd" | ) | & |
</source> ! result<div id="foo" class="bar mw-highlight mw-content-rtl" dir="rtl" style="font-size: larger;"><pre><span></span><span class="kd"> var</span><span class="nx"> a</span><span class="p"></span></pre></div> ! end ! test Inline attribute | ( | inline | code | ) |
Referenced by ParserOutputTest::provideGetText().
</p> ! end ! test Default behaviour | ( | inner is | pre | ) |
</source> ! result<p> Text<code class="mw-highlight" dir="ltr"><span class="kd"> var</span><span class="nx"> a</span><span class="p"></span></code></p> ! end ! test Enclose none | ( | inline | code | ) |
Referenced by XCFHandler::getImageSize(), and MessageCache::load().
script | ( | document. | cookie | ) |
Referenced by DumpBackup::__construct(), CleanupEmptyCategories::__construct(), PopulateCategory::__construct(), PopulateInterwiki::__construct(), PopulateIpChanges::__construct(), RecountCategories::__construct(), UpdateCollation::__construct(), BackupReader::__construct(), CleanupInvalidDbKeys::__construct(), TextPassDumper::__construct(), CleanupInvalidDbKeys::cleanupTable(), ResourceLoaderTestModule::getScript(), CheckLanguageCLI::help(), Maintenance::maybeHelp(), and UserOptionsMaintenance::warn().
! hooks source ! endhooks ! test Non existent language !input<source lang="doesnotexist"> foobar</source> ! result<div class="mw-highlight mw-content-ltr" dir="ltr"><pre> foobar</pre></div> ! end ! test No language specified ! wikitext<source> foo</source> ! html<div class="mw-highlight mw-content-ltr" dir="ltr"><pre> foo</pre></div> ! end ! test No language specified | ( | no wellformed | xml | ) |
</source> ! result<div class="mw-highlight mw-content-ltr" dir="ltr"><pre><span></span><span class="kd"> var</span><span class="nx"> a</span><span class="p"></span></pre></div> ! end ! test Multiline<source/> in lists !input*<source> a b</source>* foo<source> a b</source> ! html<ul><li><div class="mw-highlight mw-content-ltr" dir="ltr"><pre> a b</pre></div></li></ul><ul><li> foo<div class="mw-highlight mw-content-ltr" dir="ltr"><pre> a b</pre></div></li></ul> ! html tidy<ul><li><div class="mw-highlight mw-content-ltr" dir="ltr"><pre> a b</pre></div></li></ul><ul><li> foo<div class="mw-highlight mw-content-ltr" dir="ltr"><pre> a b</pre></div></li></ul> ! end ! test Custom attributes !input<source lang="javascript" id="foo" class="bar" dir="rtl" style="font-size: larger;"> var a |
Definition at line 89 of file parserTests.txt.
Referenced by DumpBackup::__construct(), CleanupEmptyCategories::__construct(), ManageForeignResources::__construct(), PopulateInterwiki::__construct(), CleanupInvalidDbKeys::__construct(), DumpCategoriesAsRdf::addDumpHeader(), PHPVersionCheck::checkExtensionExistence(), PHPVersionCheck::checkRequiredPHPVersion(), PHPVersionCheck::checkVendorExistence(), CategoryTree::createCountString(), VectorTemplate::execute(), UpdateLogging::execute(), QueryPage::execute(), Wikimedia\Rdbms\PostgresField::fromText(), XCFHandler::getXCFMetaData(), MWExceptionHandler::handleFatalError(), CheckLanguageCLI::help(), PoolCounterRedis::initAndPopPoolSlotList(), InputBox::isValidColor(), MessageCache::load(), SpecialBlock::maybeAlterFormDefaults(), WebInstallerOutput::outputFooter(), ParserOutputTest::provideGetText(), PathRouterTest::provideParse(), TidyTest::provideTestWrapping(), PoolCounterRedis::release(), LanguageConverterTest::setUp(), ReplaceAll::showFileFormat(), and SideBarTest::testExternalUrlsRequireADescription().
List redirects & amp |
Definition at line 57 of file parserTests.txt.
script& gt |
Definition at line 78 of file parserTests.txt.
& lt |
Definition at line 53 of file parserTests.txt.
IMG SRC |
Definition at line 54 of file parserTests.txt.