Ok, I've put together a few test cases:

First of all those few lines of code I'm using:

    this.internalTest = function(){
        $j.ajax({
            url: 'http://www.juergentreml.de/jquerytest/
test_staged_short_inner_body.htm',
            type: "GET",
            dataType: "html",
            cache: false,
            success: this.internalTestCallback
        });
    };

    this.internalTestCallback = function(data, textStatus){
                var test = $j("[name=PHPSESSID]", data).attr("
    }.bind(this);

And the test pages are those (Note: On a desktop computer running the
current version of Safari, ALL of those cases work fine!)

Real website to parse:
http://www.juergentreml.de/jquerytest/test_real.htm (full untouched
html page, parse ERROR using jquery and mojo SDK)
http://www.juergentreml.de/jquerytest/test_real_short.htm (same as
above but head and script tags removed, parse ERROR using jquery and
mojo SDK)
http://www.juergentreml.de/jquerytest/test_real_short_inner_body.htm
(same as above but html frame removed, contains only innerHTML of the
body tag, parse ERROR using jquery and mojo SDK)
http://www.juergentreml.de/jquerytest/test_real_short_bottom.htm
(removed top half of the body's content, parses FINE using jquery and
mojo SDK)
http://www.juergentreml.de/jquerytest/test_real_short_top.htm (removed
bottom half of the body'scontent, parses FINE using jquery and mojo
SDK)

"Artificial test case" (basically the same as above but much simpler
html page)
http://www.juergentreml.de/jquerytest/test_staged.htm (full html page,
parse ERROR)
http://www.juergentreml.de/jquerytest/test_staged_inner_body.htm (only
body's innerHTML content, parse ERROR)
http://www.juergentreml.de/jquerytest/test_staged_short.htm (full html
but much shorter content in body, parses FINE)
http://www.juergentreml.de/jquerytest/test_staged_short_inner_body.htm
(same as above but without HTML frame, parses FINE)

All those test cases prove two things: 1) It doesn't matter if it's a
full html page or just the inner part of the body tag. At lest in
Safari and the webOS / Mojo SDK javascript engine, both work FINE. 2)
It's not any specific part of the website causing a parse error but
the length of the page. Removing any part of the html page, thus
shortening it, leads to the page being parsed without errors.




On Nov 17, 12:37 am, Dave Methvin <dave.meth...@gmail.com> wrote:
> Do you have a small test case you can put up somewhere?

--

You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=.


Reply via email to