JariBakken: Remove 'g' modifier from bot.dom.HTML_WHITESPACE_REGEXP_.
JariBakken: Remove 'g' modifier from bot.dom.HTML_WHITESPACE_REGEXP_.

Global JS regexps save state between calls (which can be reset with exp.lastIndex = 0).
This made WebElement.isDisplayed alternate between true and false for the same element.

Example of the behaviour:

  >>> var rx = /^[\s\xa0 ]+$/g
  >>> rx.test(" ")
  true
  >>> rx.test(" ")
  false
  >>> rx.test(" ")
  true
  >>> var rx = /^[\s\xa0 ]+$/
  >>> rx.test(" ")
  true
  >>> rx.test(" ")
  true
  >>> rx.test(" ")
  true

r11438

krosenvold/selenium-git-release-candidate,krosenvold/selenium-git-release-candidate,krosenvold/selenium-git-release-candidate,krosenvold/selenium-git-release-candidate,krosenvold/selenium-git-release-candidate,krosenvold/selenium-git-release-candidate,krosenvold/selenium-git-release-candidate,krosenvold/selenium-git-release-candidate