Fix bug with non-lower case color names in HTML.
[htmlpurifier.git] / smoketests / attrTransform.xml
blob8272f4ac7c53358d19b19102f87c7714fb88d427
1 <?xml version="1.0"?>
2 <samples>
3     <group title="menu,dir">
4         <sample><![CDATA[<menu><li>menu</li></menu>]]></sample>
5         <sample><![CDATA[<dir><li>dir</li></dir>]]></sample>
6     </group>
7     <group title="font">
8         <sample><![CDATA[<font color="red">Red</font>]]></sample>
9         <sample><![CDATA[<font color="#0000FF">#0000FF</font>]]></sample>
10         <sample><![CDATA[<font face="Arial">Arial</font>]]></sample>
11     </group>
12     <group title="font.size">
13         <sample><![CDATA[<font size="-2">-2</font>]]></sample>
14         <sample><![CDATA[<font size="-1">-1</font>]]></sample>
15         <sample><![CDATA[<font size="0">0</font>]]></sample>
16         <sample><![CDATA[<font size="1">1</font>]]></sample>
17         <sample><![CDATA[<font size="2">2</font>]]></sample>
18         <sample><![CDATA[<font size="3">3</font>]]></sample>
19         <sample><![CDATA[<font size="4">4</font>]]></sample>
20         <sample><![CDATA[<font size="5">5</font>]]></sample>
21         <sample><![CDATA[<font size="6">6</font>]]></sample>
22         <sample><![CDATA[<font size="7">7</font>]]></sample>
23         <sample><![CDATA[<font size="8">8</font>]]></sample>
24         <sample><![CDATA[<font size="+1">+1</font>]]></sample>
25         <sample><![CDATA[<font size="+2">+2</font>]]></sample>
26         <sample><![CDATA[<font size="+3">+3</font>]]></sample>
27         <sample><![CDATA[<font size="+4">+4</font>]]></sample>
28         <sample><![CDATA[<font size="+5">+5</font>]]></sample>
29     </group>
30     <group title="center">
31         <sample><![CDATA[<center>Centered</center>]]></sample>
32     </group>
33     <group title="p.align">
34         <sample><![CDATA[<p align="left">Left</p>]]></sample>
35         <sample><![CDATA[<p align="center">Center</p>]]></sample>
36         <sample><![CDATA[<p align="right">Right</p>]]></sample>
37     </group>
38     <group title="table.bgcolor">
39         <sample><![CDATA[
40             <table bgcolor="black" cellspacing="2" cellpadding="2" border="1">
41                 <tr bgcolor="red">
42                     <th bgcolor="green">To</th>
43                     <td bgcolor="blue">Be</td>
44                 </tr>
45                 <tr>
46                     <th bgcolor="green">Or</th>
47                     <td>Not</td>
48                 </tr>
49                 <tr bgcolor="red">
50                     <th>To</th>
51                     <td>Be</td>
52                 </tr>
53             </table>
54        ]]></sample>
55         <sample><![CDATA[
56             <table class="bright" bgcolor="black" cellspacing="2" cellpadding="2" border="1">
57                 <tr>
58                     <th bgcolor="green">Or</th>
59                     <td>Not</td>
60                 </tr>
61                 <tr bgcolor="blue">
62                     <th bgcolor="green">To</th>
63                     <td>Be</td>
64                 </tr>
65             </table>
66        ]]></sample>
67     </group>
68     <group title="img.border">
69         <sample><![CDATA[<img src="img.png" alt="I" border="2" />]]></sample>
70         <sample><![CDATA[<a href="http://example.com/"><img src="img.png" alt="I" border="2" /></a>]]></sample>
71     </group>
72     <group title="td,th,hr.width">
73         <sample><![CDATA[
74             <table border="1">
75                 <tr>
76                     <th width="20">x1</th>
77                     <td width="40">x2</td>
78                 </tr>
79             </table>
80         ]]></sample>
81         <sample><![CDATA[
82             <table border="1">
83                 <tr>
84                     <th width="33%">x1</th>
85                     <td width="67%">x2</td>
86                 </tr>
87             </table>
88         ]]></sample>
89         <sample><![CDATA[<hr width="70%" /><hr width="30" />]]></sample>
90     </group>
91     <group title="td,th.nowrap">
92         <sample><![CDATA[
93             <table border="1">
94                 <tr>
95                     <th>This wants to wrap</th>
96                     <td>really badly yes it does</td>
97                 </tr>
98             </table>
99         ]]></sample>
100         <sample><![CDATA[
101             <table border="1">
102                 <tr>
103                     <th nowrap>This wants to wrap</th>
104                     <td nowrap>really badly yes it does</td>
105                 </tr>
106             </table>
107         ]]></sample>
108     </group>
109     <group title="td,th.height">
110         <sample><![CDATA[<table border="1"><tr><td height="60">tall</td></tr></table>]]></sample>
111     </group>
112     <group title="img.vspace,hspace">
113         <sample><![CDATA[a<img src="img.png" alt="I" class="marked" hspace="7" />a]]></sample>
114         <sample><![CDATA[<img src="img.png" alt="I" class="marked" vspace="7" /><br />o]]></sample>
115     </group>
116     <group title="hr">
117         <sample><![CDATA[<hr size="4" />]]></sample>
118         <sample><![CDATA[<hr size="50" noshade />]]></sample>
119     </group>
120     <group title="br.clear">
121         <sample><![CDATA[<img src="img.png" alt="I" align="right" />B<br />A]]></sample>
122         <sample><![CDATA[<img src="img.png" alt="I" align="right" />B<br clear="right" />A]]></sample>
123         <sample><![CDATA[<img src="img.png" alt="I" align="right" /><img src="img.png" alt="I" align="left" />B<br />A]]></sample>
124         <sample><![CDATA[<img src="img.png" alt="I" align="right" /><img src="img.png" alt="I" align="left" />B<br clear="all" />A]]></sample>
125     </group>
126     <group title="caption.align">
127         <sample><![CDATA[
128             <table border="1">
129                 <caption align="left">Left</caption>
130                 <tr><td>1.1</td><td>1.2</td></tr>
131             </table>
132         ]]></sample>
133         <sample><![CDATA[
134             <table border="1">
135                 <caption align="right">Right</caption>
136                 <tr><td>1.1</td><td>1.2</td></tr>
137             </table>
138         ]]></sample>
139         <sample><![CDATA[
140             <table border="1">
141                 <caption align="top">Top</caption>
142                 <tr><td>1.1</td><td>1.2</td></tr>
143             </table>
144         ]]></sample>
145         <sample><![CDATA[
146             <table border="1">
147                 <caption align="bottom">Bottom</caption>
148                 <tr><td>1.1</td><td>1.2</td></tr>
149             </table>
150         ]]></sample>
151     </group>
152     <group title="img.align">
153         <sample><![CDATA[left<img src="img.png" alt="I" class="marked" align="left" />]]></sample>
154         <sample><![CDATA[right<img src="img.png" alt="I" class="marked" align="right" />]]></sample>
155         <sample><![CDATA[o<img src="img.png" alt="I" class="marked" align="top" /> top]]></sample>
156         <sample><![CDATA[o<img src="img.png" alt="I" class="marked" align="bottom" /> bottom]]></sample>
157         <sample><![CDATA[o<img src="img.png" alt="I" class="marked" align="middle" /> middle]]></sample>
158     </group>
159     <group title="table.align">
160         <sample><![CDATA[a<table align="left" class="bright"><tr><td>left</td></tr></table>a]]></sample>
161         <sample><![CDATA[a<table align="center" class="bright"><tr><td>center</td></tr></table>a]]></sample>
162         <sample><![CDATA[a<table align="right" class="bright"><tr><td>right</td></tr></table>a]]></sample>
163     </group>
164     <group title="hr.align">
165         <sample><![CDATA[<hr align="left" class="short" />left]]></sample>
166         <sample><![CDATA[<hr align="center" class="short" />center]]></sample>
167         <sample><![CDATA[<hr align="right" class="short" />right]]></sample>
168     </group>
169     <group title="ul,ol,li.type">
170         <sample><![CDATA[<ul type="disc"><li>1</li><li>2</li></ul>]]></sample>
171         <sample><![CDATA[<ul type="square"><li>1</li><li>2</li></ul>]]></sample>
172         <sample><![CDATA[<ul type="circle"><li>1</li><li>2</li></ul>]]></sample>
173         <sample><![CDATA[<ol type="a"><li>1</li><li>2</li></ul>]]></sample>
174         <sample><![CDATA[<ol type="A"><li>1</li><li>2</li></ul>]]></sample>
175         <sample><![CDATA[<ol type="i"><li>1</li><li>2</li></ul>]]></sample>
176         <sample><![CDATA[<ol type="I"><li>1</li><li>2</li></ul>]]></sample>
177         <sample><![CDATA[<ol type="1"><li>1</li><li>2</li></ul>]]></sample>
178         <sample><![CDATA[<ol><li type="a">1</li><li type="I">2</li></ul>]]></sample>
179     </group>
182     <!-- sample
183     <group title="">
184         <sample><![CDATA[]]></sample>
185         <sample><![CDATA[]]></sample>
186         <sample><![CDATA[]]></sample>
187     </group>
188     -->
189 </samples>
191 <!-- vim: et sw=4 sts=4