[parser] properly removed self-closing tag support

also replaced call to `Array#slice` with setting the stack's `length`
property