MediaWiki REL1_33
extensions/SyntaxHighlight_GeSHi/tests/parser/parserTests.txt File Reference

Functions

script alert ("pwnd") &lt
 
&& 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
 
scriptgt
 
</script > document cookie script</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > & lt
 
IMG SRC
 

Function Documentation

◆ alert() [1/2]

alert ( "pwnd" ) &

◆ alert() [2/2]

</script >< script > alert ( 'XSS' )

◆ attribute()

</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)

◆ behaviour()

</p > !end !test Default behaviour ( inner is pre)

◆ none()

</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)

◆ script()

◆ specified()

!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)

Variable Documentation

◆ a

</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 112 of file parserTests.txt.

Referenced by XCFHandler::getXCFMetaData().

◆ amp

$2 List redirects & amp

Definition at line 54 of file parserTests.txt.

◆ gt

script& gt

Definition at line 74 of file parserTests.txt.

◆ lt

& lt

Definition at line 50 of file parserTests.txt.

◆ SRC

IMG SRC
Initial value:
=`javascript:alert("RSnake says, 'XSS'")`>
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
</code > tag with name unused defined in< code > & lt
&& alert('XSS')

Definition at line 51 of file parserTests.txt.