Issue: http://code.google.com/p/phantomjs/issues/detail?id=60 This improvement is provided by Salvador Parra Camacho.