wholeText don't exists on ie8

Then use it only it it exists.