Fix jQuery.parseHTML does not recognize document

Fix #2307.
This commit is contained in:
Junle Li
2014-06-09 21:28:09 +08:00
parent d2989ce35f
commit d12b83f8d0
2 changed files with 12 additions and 0 deletions
+9
View File
@@ -1252,6 +1252,15 @@ interface JQueryStatic {
* @param keepScripts A Boolean indicating whether to include scripts passed in the HTML string
*/
parseHTML(data: string, context?: HTMLElement, keepScripts?: boolean): any[];
/**
* Parses a string into an array of DOM nodes.
*
* @param data HTML string to be parsed
* @param context DOM element to serve as the context in which the HTML fragment will be created
* @param keepScripts A Boolean indicating whether to include scripts passed in the HTML string
*/
parseHTML(data: string, context?: Document, keepScripts?: boolean): any[];
}
/**