Including patch from https://code.google.com/p/html5lib/issues/detail?id=131 (Failure with custom namespace elements)