How come I cannot make $(frame) a jQuery object in the below case? Below is my output from chrome developer tools.
console: mainFrame
output: <frame src="http://someurl.com" name="mainFrame">
console: $(mainFrame).contents()
output: SyntaxError: Failed to execute 'querySelector' on 'Document': '[object HTMLFrameElement]' is not a valid selector.
Edit:
to respond to comments...
$.toString()
"function $(selector, [startNode]) { [Command Line API] }"
typeof(mainFrame)
"object"
jQuery
ReferenceError: jQuery is not defined
$.toString()andtypeof mainFrame?$is jQuery here, tryjQuery(mainFrame).contents()