Commit d1697efe authored by Guido van Rossum's avatar Guido van Rossum

Test insert/replace structure

parent bf2a6131
......@@ -45,9 +45,21 @@
</span>
</ul>
<!-- test attribute expansion -->
<a href="http://python.org" z:attributes="href python:'http://python.org' ">python</a>
<a z:attributes="href python:'http://python.org' " href="http://python.org">python</a>
<!-- test insert/replace structure -->
<span z:insert="structure python:None"></span>
<span z:define="global x str:&lt;h3&gt;Header Level 3&lt;/h3&gt;"/>
<span z:define="global x python:'&amp;' + 'nbsp;;' + x"/>
&nbsp;<h3>Header Level 3</h3>
<span z:insert="structure x">&nbsp;<h3>Header Level 3</h3></span>
</body>
</html>
......@@ -37,9 +37,21 @@ Title">Title</h1>
</span>
</ul>
<!-- test attribute expansion -->
<a href="foo" z:attributes="href python:'http://python.org' ">python</a>
<a z:attributes="href python:'http://python.org' ">python</a>
<!-- test insert/replace structure -->
<span z:insert="structure python:None" />
<span z:replace="structure python:None" />
<span z:define="global x str:&lt;h3&gt;Header Level 3&lt;/h3&gt;" />
<span z:define="global x python:'&amp;' + 'nbsp;;' + x" />
<span z:replace="structure x" />
<span z:insert="structure x" />
</body>
</html>
......@@ -45,9 +45,21 @@
</span>
</ul>
<!-- test attribute expansion -->
<a href="http://python.org" z:attributes="href python:'http://python.org' ">python</a>
<a z:attributes="href python:'http://python.org' " href="http://python.org">python</a>
<!-- test insert/replace structure -->
<span z:insert="structure python:None"></span>
<span z:define="global x str:&lt;h3&gt;Header Level 3&lt;/h3&gt;"/>
<span z:define="global x python:'&amp;' + 'nbsp;;' + x"/>
&nbsp;<h3>Header Level 3</h3>
<span z:insert="structure x">&nbsp;<h3>Header Level 3</h3></span>
</body>
</html>
......@@ -37,9 +37,21 @@ Title">Title</h1>
</span>
</ul>
<!-- test attribute expansion -->
<a href="foo" z:attributes="href python:'http://python.org' ">python</a>
<a z:attributes="href python:'http://python.org' ">python</a>
<!-- test insert/replace structure -->
<span z:insert="structure python:None" />
<span z:replace="structure python:None" />
<span z:define="global x str:&lt;h3&gt;Header Level 3&lt;/h3&gt;" />
<span z:define="global x python:'&amp;' + 'nbsp;;' + x" />
<span z:replace="structure x" />
<span z:insert="structure x" />
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment