Skip to content
Permalink
Browse files

Typo; Extended description for $("<div>stuff</div") example (ticket #218

)
  • Loading branch information
jzaefferer committed Oct 6, 2006
1 parent 29f3fd5 commit cc967562cae77d62f8288ead533ec1a7da539d0a
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/jquery/jquery.js
@@ -95,7 +95,10 @@ if ( typeof $ != "undefined" )
* @result [ <p>two</p> ]
*
* @example $("<div><p>Hello</p></div>").appendTo("#body")
* @desc Creates a div element (and all of its contents) dynamically, and appends it to the element with the ID of body.
* @desc Creates a div element (and all of its contents) dynamically,
* and appends it to the element with the ID of body. Internally, an
* element is created and it's innerHTML property set to the given markup.
* It is therefore both quite flexible and limited.
*
* @name $
* @param String expr An expression to search with, or a string of HTML to create on the fly.
@@ -645,7 +648,7 @@ jQuery.fn = jQuery.prototype = {
// Insert it before the element to be wrapped
this.parentNode.insertBefore( b, this );

// Find he deepest point in the wrap structure
// Find the deepest point in the wrap structure
while ( b.firstChild )
b = b.firstChild;

0 comments on commit cc96756

Please sign in to comment.
You can’t perform that action at this time.