fixed compatibility with safari when white-space specified