Libdoc: IE8 workarounds for search (#1872).

TODO:
- Test w/ IE9 and 10.
- Performance testing.
Libdoc: small refactor
Merge branch 'master' of https://github.com/robotframework/robotframework