I sent the following to Troll Tech.
Is this bug already in bugzilla.elinks.cz?
Does the SGML/DOM code handle this situation correctly?


The ELinks 0.11.3 browser displays a blank page for <http://troll.no/>.
This happens because of the following:

    <!-- ADD ON UPDATE -->
  <script src="/__utm.js" type="text/javascript">&nbsp;</script>
<script src="http://www.google-analytics.com/urchin.js"; type="text/javascript" 
/><script type="text/javascript">
    <!-- Urchin script
                _uacct = "UA-107570-1";
                urchinTracker();
    -->
        </script>

You serve the page with this header:
Content-Type: text/html;charset=utf-8

ELinks does not support XHTML, so it expects the <script ... />
to be explicitly closed later.  It treats the immediately
following <script type="text/javascript">...</script> as a nested
element.

ELinks seems to be at fault here.  According to section 6.2 of
HTML 4.01, the content of the SCRIPT element is to be read as raw
data until the first occurrence of "</", which should then be
part of the end tag.  So ELinks should treat the "<script
type="text/javascript">" as part of the first script, and then
ignore it because the SCRIPT element had the src attribute.

Nevertheless, you also have this in your web page:

    <li>
      <a href="http://plone.org/browsersupport";
         class="colophonIcon colophonIconAnyBrowser"
         title="This Plone site is usable in any web browser.">
        Usable in any browser
      </a>
    </li>

so you may want to work around the bug anyway.

Attachment: pgp8ocu0bf4PP.pgp
Description: PGP signature

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev

Reply via email to