Request.HTML - returns the contents of <body> not full <html> content

When I execute Request.HTMLthrough mootools, the property responseHTMLcontains only the content of the tag, not the full content that can be found in the body of the response.

Can someone explain why - and is it possible to get the full HTML code? I have an existing application that requests an “email preview” via ajax and then drops the response in an iframe, but iframe has recently lost CSS, and this is due to the response.HTML responseHTML property not containing full html.

Here is the JSFiddle: http://jsfiddle.net/BloodBaz/n7nwhkc9/3/

Thank you, Chris

+4
source share
1

Request.HTML , /, node.

<head /> , , .. - https://github.com/mootools/mootools-core/blob/master/Source/Request/Request.HTML.js#L38, , .

script , , evalScripts true.

Request.HTML, , , Request() reference this.response.text .

: http://jsfiddle.net/dimitar/n7nwhkc9/5/

Request.HTML, xml, node.

+4

All Articles