From: Gabriel Wicke Date: Wed, 21 Nov 2012 21:06:52 +0000 (-0800) Subject: Test handling HTML tag like structures X-Git-Tag: 1.31.0-rc.0~21549^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=d94003a6453e038e6eb49bcf3bbf4c4f8070bd6b;p=lhc%2Fweb%2Fwiklou.git Test handling HTML tag like structures * Add a (disabled for the PHP parser) test for bug 40670. Passing in Parsoid. * Add another test for html-like text. Change-Id: I2026fb09a5e32062cec0b7f0d45dc6643d4885a9 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index f6091b4159..305d0f1590 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -12757,6 +12757,48 @@ Escaping nowikis

!! end +!! test +Tag-like HTML structures are passed through as text +!! input + + + + + + +1>2 + +xb + +1f +!! result +

<x y> +

<x.y> +

<x-y> +

1>2 +

x<y +

a>b +

1<d e>f +

+!! end + + +# This fails in the PHP parser (see bug 40670, +# https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it. +!! test +Tag names followed by punctuation should not be recognized as tags +!! options +disabled +!! input + text +!! result +

<s.ome> text +

+!! end + + TODO: more images more tables