Fixed docs for html()
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 20 Dec 2006 13:10:29 +0000 (13:10 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 20 Dec 2006 13:10:29 +0000 (13:10 +0000)
newandnoteworthy.txt
src/jquery/jquery.js

index 051dff5..d9c8b5c 100644 (file)
@@ -10,6 +10,7 @@ New and Noteworthy
  - Improved event fixing, using less browser and more object detection
  - Fixed ID with context selectors (eg. div#id doesn't ignore "div" anymore)
  - Improved jQuery.merge to avoid unnecessary loops
+ - Fixed docs for html(): Now mentions that is not available for XML documents
 
 1.0.4
 -----
index fd6d3a2..8a0a115 100644 (file)
@@ -2461,6 +2461,9 @@ jQuery.macros = {
                /**\r
                 * Get the html contents of the first matched element.\r
                 *\r
+                * A wrapper for the innerHTML property of DOM elements, therefore\r
+                * not available for XML documents.\r
+                *\r
                 * @example $("div").html();\r
                 * @before <div><input/></div>\r
                 * @result <input/>\r
@@ -2473,6 +2476,9 @@ jQuery.macros = {
                /**\r
                 * Set the html contents of every matched element.\r
                 *\r
+                * A wrapper for the innerHTML property of DOM elements, therefore\r
+                * not available for XML documents.\r
+                *\r
                 * @example $("div").html("<b>new stuff</b>");\r
                 * @before <div><input/></div>\r
                 * @result <div><b>new stuff</b></div>\r