mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
e4db955395
Previously, if you had Capybara.asset_host defined and tried to `save_page` on a document without a <head> tag (like plain text) `inject_asset_host` would crash trying to string-replace a <base> tag onto the nonexistant <head>. Since there's probably no need for it to successfully inject a <base> into such documents, now it will return the original content when there is no <head> present. |
||
---|---|---|
.. | ||
capybara | ||
capybara.rb |