Fix w3c errors and warnings