http://troll.no/ appears blank in ELinks 0.11.3

Kalle Olavi Niemitalo <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
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.

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGWFlBHm9IGt60eMgRAkIBAJsEGXcmZFOsqAeqd1Ng4hhajZWF6QCdEPZ2
5w8G8aYwXAgMRkR2DKzeOJ0=
=PYbx
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.