Fixed: Image2 dialog does not honor config.baseHref while discovering width or height.
Fixed: Base tag does not work in IE<10.
Omit config.baseHref if not specified.
Changelog entry.
Merge branch 't/11910'
Move part of the hasAttribute from forms plugin to the core.
Tests: Tests for hasAttribute method with input elements.
Refactor hasAttribute method to check the browser once instead on 3 times.
Code refactoring and code style: Simplified conditions, rename, missing semicolons.