<html xmlns:tal="http://xml.zope.org/namespaces/tal">
  <p tal:replace="structure string:&lt;a&gt;bar&lt;/a&gt;"
     tal:attributes="href string:http://www.python.org">dummy text</p>
  <p tal:define="x python:1" tal:on-error="string:bad boy!">
   <span tal:define="x python:2">
    <span tal:define="x python:3">
     <span tal:content="python:1/0"/>
    </span>
   </span>
  </p>
  <p tal:on-error="string:x undefined">
    <span tal:content="x"/>
  </p>
  <tal:block on-error="string:x undefined" replace="x" />
  <tal:block on-error="string:x undefined">
  <p tal:content="x">p</p>
  </tal:block>
  <div tal:replace="structure string:&lt;hr /&gt;">rule</div>
</html>

<html>
  <p tal:replace="structure string:&lt;a&gt;bar&lt;/a&gt;"
     tal:attributes="href string:http://www.python.org">dummy text</p>
  <p tal:define="x python:1" tal:on-error="string:bad boy!">
   <span tal:define="x python:2">
    <span tal:define="x python:3">
     <span tal:content="python:1/0"/>
    </span>
   </span>
  </p>
  <p tal:on-error="string:x undefined">
    <span tal:content="x"/>
  </p>
  <tal:block on-error="string:x undefined" replace="x" />
  <tal:block on-error="string:x undefined">
  <p tal:content="x">p</p>
  </tal:block>
  <div tal:replace="structure string:&lt;hr /&gt;">rule</div>
</html>

Fix a test in line with .NET functionality
Fix a test in line with .NET functionality
