Add Document as JQuery.contents() output encapsulated type. (#31296)

$('iframe').contents() is a JQuery<Document>;
This commit is contained in:
UrielCh
2018-12-12 08:46:22 +00:00
committed by John Reilly
parent c2367fab52
commit cca60bd544
+1 -1
View File
@@ -2090,7 +2090,7 @@ $( "#frameDemo" ).contents().find( "a" ).css( "background-color", "#BADA55" );
</html>
```
*/
contents(): JQuery<TElement | Text | Comment>;
contents(): JQuery<TElement | Text | Comment | Document>;
/**
* Bind an event handler to the "contextmenu" JavaScript event, or trigger that event on an element.
* @param eventData An object containing data that will be passed to the event handler.