r14623 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14622‎ | r14623 | r14624 >
Date:22:50, 6 June 2006
Author:brion
Status:old
Tags:
Comment:
Parser tests for <pre> tag with attributes (bug 3202)
Modified paths:
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -312,6 +312,42 @@
313313
314314 !! end
315315
 316+!! test
 317+<pre> with attributes (bug 3202)
 318+!! input
 319+<pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
 320+!! result
 321+<pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
 322+
 323+!! end
 324+
 325+!! test
 326+<pre> with width attribute (bug 3202)
 327+!! input
 328+<pre width="8">Narrow screen goodies</pre>
 329+!! result
 330+<pre width="8">Narrow screen goodies</pre>
 331+
 332+!! end
 333+
 334+!! test
 335+<pre> with forbidden attribute (bug 3202)
 336+!! input
 337+<pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
 338+!! result
 339+<pre width="8">Narrow screen goodies</pre>
 340+
 341+!! end
 342+
 343+!! test
 344+<pre> with forbidden attribute values (bug 3202)
 345+!! input
 346+<pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
 347+!! result
 348+<pre width="8">Narrow screen goodies</pre>
 349+
 350+!! end
 351+
316352 ###
317353 ### Definition lists
318354 ###

Follow-up revisions

RevisionCommit summaryAuthorDate
r14624* (bug 3202) Attributes now allowed on <pre> tags...brion22:56, 6 June 2006

Status & tagging log