git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
29f3fd5
)
Typo; Extended description for $("<div>stuff</div") example (ticket #218)
author
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Fri, 6 Oct 2006 14:26:52 +0000
(14:26 +0000)
committer
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Fri, 6 Oct 2006 14:26:52 +0000
(14:26 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
2259ece
..
12b298f
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-95,7
+95,10
@@
if ( typeof $ != "undefined" )
* @result [ <p>two</p> ]
\r
*
\r
* @example $("<div><p>Hello</p></div>").appendTo("#body")
\r
* @result [ <p>two</p> ]
\r
*
\r
* @example $("<div><p>Hello</p></div>").appendTo("#body")
\r
- * @desc Creates a div element (and all of its contents) dynamically, and appends it to the element with the ID of body.
\r
+ * @desc Creates a div element (and all of its contents) dynamically,
\r
+ * and appends it to the element with the ID of body. Internally, an
\r
+ * element is created and it's innerHTML property set to the given markup.
\r
+ * It is therefore both quite flexible and limited.
*
\r
* @name $
\r
* @param String expr An expression to search with, or a string of HTML to create on the fly.
\r
*
\r
* @name $
\r
* @param String expr An expression to search with, or a string of HTML to create on the fly.
\r
@@
-645,7
+648,7
@@
jQuery.fn = jQuery.prototype = {
// Insert it before the element to be wrapped
\r
this.parentNode.insertBefore( b, this );
\r
\r
// Insert it before the element to be wrapped
\r
this.parentNode.insertBefore( b, this );
\r
\r
- // Find he deepest point in the wrap structure
\r
+ // Find the deepest point in the wrap structure
\r
while ( b.firstChild )
\r
b = b.firstChild;
\r
\r
while ( b.firstChild )
\r
b = b.firstChild;
\r
\r