Correctly handle typed "<tag>"