MediaWiki
1.30.0
|
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 | ) |
</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(), UserOptions::showUsageAndExit(), and UserOptions::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(), PopulateInterwiki::__construct(), CleanupInvalidDbKeys::__construct(), CologneBlueTemplate::beforeContent(), PHPVersionCheck::checkExtensionExistence(), PHPVersionCheck::checkRequiredPHPVersion(), PHPVersionCheck::checkVendorExistence(), VectorTemplate::execute(), MonoBookTemplate::execute(), UpdateLogging::execute(), ModernTemplate::execute(), QueryPage::execute(), Wikimedia\Rdbms\PostgresField::fromText(), XCFHandler::getXCFMetaData(), MWExceptionHandler::handleFatalError(), CheckLanguageCLI::help(), PoolCounterRedis::initAndPopPoolSlotList(), InputBox::isValidColor(), MessageCache::load(), SpecialBlock::maybeAlterFormDefaults(), WebInstallerOutput::outputFooter(), TidyTest::provideTestWrapping(), PoolCounterRedis::release(), 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.