moai/moai-dev — Issue #165: Broken </> tags in text box.
Author: danadrew
Created: 2012-03-05 22:05:54+00:00
State: open
Labels: Bug

See sample: samples / test / textbox-bad-text

**Expected:**
If I use a tag when there is no currently open style, the tag should be ignored and possibly throw a warning, and the remainder of the text box tagging should still be functional.

**Actual:**
Doing this will cause all subsequent tags to do nothing. It will still be possible to open new style tags, but impossible to close them, so I think this is an unintended response to bad input.

**Reproduction Steps:**
1. Create a text box with text that includes a near the beginning.
2. Attempt to open and close another style later in the text.
3. The style will properly open, however it will not close.

**Additional Info:**
While this is technically bad input, it should probably handle it better when this happens. It should probably spit out a warning for the user if they're closing a style when there was none open, but I think at the very least it should be ignored and should not break the rest of the tags.