handle base tag being self-closing