AND-3041 - Initial fix for inline images in articles
AND-3041 - Remove debugger console and logging messages. NB still need to look at Fig Caption text sizing
AND-3041 - Fixed Fig Caption being to large issue, the fix for in-line images created this problem and they shared the same selector inheritence, I've now seperated this out by targeting figure.figure-inline specifically so it doesn't affect the previous fix, and now it displays correctly.
AND-3041 - Fix for image height stretch issue on Live Blog templates and certain articles (such a Sports fixture articles) where there is not an anchor tag wrapping the img. The code did look two nodes up for the Figure element to place the figure wide class but without the a tag it was not being placed. Unfortunately the replacement libraries being used in place of jQuery called Bonzo and QWERY do not support more advanced DOM traversal shortcuts such as parents() or closest() without loading a new library called traversty.js and as I understand it ender_bridge.js which is part of the Ender package manager. So I've created a simple pure JavaScript dom traversal ternary evaulation for parentNode.parentNode.nodeName to give parent the correct node selection in both scenarios and add the figure-wide or figure-inline class to the figure element as intended.
Merge pull request #288 from guardian/AND-3041

And 3041