Opened 10 years ago
Closed 10 years ago
#13792 closed bug (notabug)
jQuery Browser example throws error in jquery 1.9.1
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The example below, provided on the jQuery browser documentation page (http://api.jquery.com/jQuery.browser/) throws an error in release 1.9.1.
jQuery.each(jQuery.browser, function(i, val) { $("<div>" + i + " : <span>" + val + "</span>") .appendTo( document.body ); });
The error: "Uncaught TypeError: Cannot read property 'length' of undefined"
Note: See
TracTickets for help on using
tickets.
Docs bug moved to https://github.com/jquery/api.jquery.com/issues/283