Ticket #4665 (closed bug: duplicate)
Chrome and Jquery Selector and Maximum size 49800 characters
| Reported by: | zzcyanide | Owned by: | |
|---|---|---|---|
| Priority: | critical | Milestone: | 1.4 |
| Component: | unfiled | Version: | 1.3.2 |
| Keywords: | jquery selector, maximum size, chrome | Cc: | |
| Blocking: | Blocked by: |
Description
I am using ajax to return a content web page. The content happens to be greater than 49800 characters. IE and Firefox handle this with no problems, but in Chrome, it returns null.
Steps to reproduce:
- create a html content page with greater than 49800 characters.
- make a div with an identity you want to select, id="Title"
- load the page via ajax, and return the html content
- use a selector on the content to return the title:
function LoadContent( page ){
$.ajax
({
url: page ,cache: false ,success: function(html){ ContentLoaded(html); } ,error: function(httpObject, textStatus, errorThrown ) { alert( textStatus + " and " + errorThrown ); } ,dataType: "text" ,data:{} ,timeout:10000
});
} LoadContent
function ContentLoaded( html ){
var title = $("#Header", html).html(); alert( title );
}
This will throw an error in Chrome.
I am not sure if this is a maximum variable size limit in chrome or something something.
Doom on you Chrome!
Attachments
Change History
Changed 4 years ago by zzcyanide
-
attachment
Chrome Issue.zip
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

chrome issue test files