#64 ✓resolved
Nate

XMLP tripping over javascript &&

Reported by Nate | 2009-03-31 11:38:22 UTC | in 1.0 Release

this is a problem when parsing and loading inline javascript.

the XMLP parser tries to interpret any javascript operator starting with & as an xml entity, and chokes, spitting out an error when encountering it. the document is still attempted to be loaded, though, and the inline js is truncated when written to a file, resulting in another error when the interpreter tries to load the shortened file.

there are 3 operators in javascript that start with an ampersand. &, &=, &&. I'm not quite sure about the best way to patch this.

Comments and changes to this ticket

  • Thatcher

    Thatcher 2009-09-09 17:47:50 UTC

    • Milestone set to “1.0 Release”
    • State changed from “new” to “open”
    • Tag changed from “ampersand, entity, inline, parse, parser, script” to “ampersand, entity, inline, parse, parser, script”
    • Assigned user set to “Thatcher”

    Will try to get this fixed in the next couple of days. Thanks for reporting and sorry for the delay!

  • Thatcher

    Thatcher 2009-09-09 18:14:09 UTC

    • State changed from “open” to “resolved”

    i threw this check into our latest and the issue seems resolved

    <script>
            function testXMLSpecialCharacters(){
                if(true && true && 0>-1){
                    var f = 0&1;
                    f&=1;    
                }
            }
        </script>
    

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

People watching this ticket

Pages