Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
6b64fbf7
...
6b64fbf7bd0b263fa81e37434f85950a76f1378f
authored
2013-11-21 11:59:31 +0100
by
Laurent Jouanneau
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add comments
1 parent
3bf3df38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
modules/casper.js
modules/casper.js
View file @
6b64fbf
...
...
@@ -925,11 +925,13 @@ Casper.prototype.getPageContent = function getPageContent() {
if
(
!
head
||
!
body
)
{
return
null
;
}
// for content in Webkit
if
(
head
.
childNodes
.
length
===
0
&&
body
.
childNodes
.
length
===
1
&&
__utils__
.
findOne
(
'body pre[style]'
))
{
return
__utils__
.
findOne
(
'body pre'
).
textContent
.
trim
();
}
// for content in Gecko
if
(
head
.
childNodes
.
length
===
1
&&
body
.
childNodes
.
length
===
1
&&
head
.
childNodes
[
0
].
localName
===
'link'
&&
...
...
Please
register
or
sign in
to post a comment