'HTML5 specific normalizations to the token stream'

def normalizeToken(self, token):

    if (token[u'type'] == tokenTypes[u'StartTag']):
        token[u'data'] = dict(token[u'data'][::(-1)])
    return token
