dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ddc49d
)
Test improperly quoted attribute values in HTML tags and table cells
author
Gabriel Wicke
<gwicke@wikimedia.org>
Fri, 25 Jan 2013 01:20:50 +0000
(17:20 -0800)
committer
Gabriel Wicke
<gwicke@wikimedia.org>
Fri, 25 Jan 2013 01:20:50 +0000
(17:20 -0800)
Change-Id: Iab14adcb81e32bcea2b950c7f4e68ecd69ff19d2
tests/parser/parserTests.txt
patch
|
blob
|
history
diff --git
a/tests/parser/parserTests.txt
b/tests/parser/parserTests.txt
index
8f297ad
..
df3a9e8
100644
(file)
--- a/
tests/parser/parserTests.txt
+++ b/
tests/parser/parserTests.txt
@@
-13453,6
+13453,29
@@
HTML tag with 'unnecessary' entity encoding in attributes
</p>
!! end
+!! test
+HTML tag with broken attribute value quoting
+!! input
+<span title="Hello world>Foo</span>
+!! result
+<p><span>Foo</span>
+</p>
+!! end
+
+!! test
+Table with broken attribute value quoting
+!! input
+{|
+| title="Hello world|Foo
+|}
+!! result
+<table>
+<tr>
+<td>Foo
+</td></tr></table>
+
+!! end
+
TODO:
more images
more tables