Bug Tracker

Opened 13 years ago

Closed 13 years ago

#6602 closed bug (invalid)

Chrome can't do: $(...).load(url, title);

Reported by: matrym Owned by:
Priority: Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:


The solution was resolved to my satisfaction on stack overflow. I recommend either updating the documentation to explain the limitations, or adjusting the method to be cross-browser:







Change History (1)

comment:1 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

The documentation for .load() currently says:

Note that the document retrieved cannot be a full HTML document; that is, it cannot include (for example) <html>, <title>, or <head> elements. jQuery uses the browser's innerHTML property on a <div> element to parse the document, and most browsers will not allow non-body elements to be parsed in this way.

your example on SO seems to violate that rule. It might work on some browsers but is specifically documented as not supported.

Note: See TracTickets for help on using tickets.