Add square brackets syntax for accessing tag attributes