Resolving an issue relating to the parsing of closing element tags