Figure support

added support for figure, figcaption. legend is now skipped as there is no equivalent html5 element.