Implemented auto-stacking mechanism for HTML elements such as li, td, etc. and removed HTML-handling-level stack.