Menu

#771 XML Files are broken (by the deprecated JavaScript filters)

version 3.0.8
closed-wont-fix
5
2009-03-18
2009-02-20
No

When privoxy filters XML pages (like http://cnx.org/content/m11948/latest/\), it inserts the

<script>function PrivoxyWindowOpen(a, b, c){return(window.open(a, b, c));}</script>

*after* the closing xml root tag. This causes the XML parsing to fail and Firefox refuses to show the page ("XML Parsing Error: junk after document element
Location: http://cnx.org/content/m11948/latest/
Line Number 4080, Column 8:").

Discussion

  • Fabian Keil

    Fabian Keil - 2009-02-20

    Thanks for the report.

    The JavaScript filters are deprecated and disabled by default.

    On of the reasons is that some of them don't handle XML
    properly, the other (more important one) is that they are
    unreliable.

    If you decide to enable them anyway, you could prevent the
    problem you're seeing by disabling them for some pages based
    on the Content-Type header.

    I would recommend that you simply disable them, though.
    Your browser should be a lot better at filtering JavaScript.

     
  • Fabian Keil

    Fabian Keil - 2009-02-20
    • assigned_to: nobody --> fabiankeil
    • summary: XML Files are broken --> XML Files are broken (by the deprecated JavaScript filters)
    • status: open --> pending-wont-fix
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-wont-fix --> closed-wont-fix
     

Log in to post a comment.

MongoDB Logo MongoDB