Which browser are you implementing? ;-) On firefox, that first one doesn't do what it says it does. It actually renders as:
italic bold italic
bold
still bold. normal
Firefox seems to enforce nesting. Which, as I recall (perhaps incorrectly), is the way that the HTML standards have always described things. Not closing tags in reverse order of them being opened cause "undefined behaviour," which, as most computer programming geeks should know, means that it could format your hard disk. Sounds like your browser has chosen to implement the undefined behaviour as "continue the text formatting" while Firefox has chosen to implement it as "automatically close off tags that should have been closed." Neither one is wrong as per my recollection of the standard.
In reply to Re: Ideas for PerlMonks Markup support in an editor
by Tanktalus
in thread Ideas for PerlMonks Markup support in an editor
by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |