[bug 1063585] Lowercase tagName before comparing with 'a'.

@Osmose r?