Add support for doctests, contribution of Marius Gedminas
Small refactoring of the doctest checking method
Upgrade the patch for doctests, to calculate column offset.
Refactor handleDoctests; add tests for the column offset.
Avoid crash caused by missing "id" attribute
Use getNodeName() here too
Do not crash when handling dotted exception types; with tests.
Support checking doctests.