Typo; Extended description for $("<div>stuff</div") example (ticket #218)
This commit is contained in:
parent
29f3fd50f7
commit
cc967562ca
1 changed files with 5 additions and 2 deletions
7
src/jquery/jquery.js
vendored
7
src/jquery/jquery.js
vendored
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue