Refs #414. Improved comments and changed how a couple variable are used.
Refs #414. Fixed usage of a couple variables.
Refs #414. Fixed an invalid list case with editor-only elements that wasn't working and added a test for it.
Refs #414. Fixed some code construction issues.
Refs #414. Fixed a minor placement issue of setting the _lastTagRemoved flag.
Merge branch 'issue_414' into issue_415