Skip to content

Commit fb813f0

Browse files
committed
Second arg of $.parseHTML can only be a document. Close jquerygh-281.
1 parent 5aafc0f commit fb813f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entries/jQuery.parseHTML.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
<desc>HTML string to be parsed</desc>
99
</argument>
1010
<argument name="context" type="Element" optional="true" default="document">
11-
<desc>DOM element to serve as the context in which the HTML fragment will be created</desc>
11+
<desc>Document element to serve as the context in which the HTML fragment will be created</desc>
1212
</argument>
1313
<argument name="keepScripts" type="Boolean" optional="true" default="false">
1414
<desc>A Boolean indicating whether to include scripts passed in the HTML string</desc>
1515
</argument>
1616
</signature>
1717
<longdesc>
1818
<p><code>jQuery.parseHTML</code> uses a native DOM element creation function to convert the string to a set of DOM elements, which can then be inserted into the document.</p>
19+
<p>By default, the <code>context</code> is the current <code>document</code> if not specified or given as <code>null</code> or <code>undefined</code>. If the HTML was to be used in another document such as an iframe, that frame's document could be used.</p>
1920
</longdesc>
2021
<example>
2122
<desc>Create an array of Dom nodes using an HTML string and insert it into a div.</desc>

0 commit comments

Comments
 (0)