diff --git a/History.md b/History.md index 5ddf711d..3ffe11aa 100644 --- a/History.md +++ b/History.md @@ -23,7 +23,7 @@ Release date: 2018-03-23 ### Changed -* Drivers are now expected to return visible text more in line with the WebDriver spec for visible text +* Visibile text whitespace is no longer fully normalized in favor of being more in line with the WebDriver spec for visible text * Drivers are expected to close extra windows when resetting the session * Selenium driver supports Date/Time when filling in date/time/datetime-local inputs * `current_url` returns the url for the top level browsing context diff --git a/lib/capybara/node/matchers.rb b/lib/capybara/node/matchers.rb index 5392d643..3a819342 100644 --- a/lib/capybara/node/matchers.rb +++ b/lib/capybara/node/matchers.rb @@ -622,10 +622,6 @@ module Capybara # Checks if the page or current node has the given text content, # ignoring any HTML tags. # - # Whitespaces are normalized in both node's text and passed text parameter. - # Note that whitespace isn't normalized in passed regexp as normalizing whitespace - # in regexp isn't easy and doesn't seem to be worth it. - # # By default it will check if the text occurs at least once, # but a different number can be specified. #