[Zope3-dev] RE: [Zope3-Users] Maybe bug in pagetemplate parser?

Fred Drake fdrake at gmail.com
Thu Nov 17 00:01:55 EST 2005


On 11/14/05, Roger Ineichen <dev at projekt01.ch> wrote:
> This is a bug, please add a issue to the bugtracker!
> The parser engine tries to interprete the <div> tag.

Though this is most certainly a contentious feature, this is not a bug
in the parser, but a bug in the template itself.  The parser is a bit
stricter than most browsers.  If you don't agree, please read the HTML
4.01 specification very carefully before following up; this has been
discussed to death many times.

> I guess the normal hacks used in onther script languages will
> work. Try this:
>
> <script type="text/javascript">
>    <!--
>    document.write('<d'+'iv id="LOADING_DOCUMENT_HINT">Loading document.
> Please be patient...</d'+'iv>');
>    //-->
> </script>

No, that won't work; the *template* still has the same bug.  Try this:

<script type="text/javascript">
   <!--
   document.write('<'+'div id="LOADING_DOCUMENT_HINT">Loading document.
Please be patient...<'+'/div>');
   //-->
</script>

(Note that the break introduced in the script source is between the
"<" and the next character.)


  -Fred

--
Fred L. Drake, Jr.    <fdrake at gmail.com>
"Society attacks early, when the individual is helpless." --B.F. Skinner


More information about the Zope3-users mailing list