remove part of optional declarations in html document