Moved back to array lookups for html5 elements. This is SIGNIFICANTLY faster then the regular expressions and twice as fast as the next fastest method I tested.
Added tests around the html element checking.
Added MathML Presentation element checking.