-
Bug
-
Resolution: Fixed
-
Minor
-
2.7.1, 2.8, 2.8.7
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_28_STABLE, MOODLE_29_STABLE
-
MDL-46387-master -
The subscript and superscript buttons should be toggle buttons that behave like bold and italics.
Instead if you try to type H<sub>2</sub>O you get H<sub>2<sub>O</sub></sub>.
Tested on Chrome 36.0.1985.125 m
Note: The original problem could not be reproduced at the first integration attempt and afterwards. Changes appear to have been made in Chrome. However, in the follow up testing with the following problems were found.
Chrome:
- Type H20
- Select 20 and click subscript
- Select 0 and click subscript
Expected: html is H<sub>2</sub>O, Actual: About half the time it is H<sub><span>2</span><span><sub>O</sub></span></sub> or some permutation.
Also try - Type H20
- Select 20 and click subscript
- Click italic
Expected: html is H<sub><i>2</i></sub><i>O</i>, Actual: H<sub><i>2<sub>O</sub></i></sub>
Firefox and IE:
- Type H20
- Select 20 and click subscript
- Select 0 and click superscript
Expected: html is H<sub>2</sub>O or H<sub>2</sub><sup>O<sup>, Actual H<sub>2<sup>O</sup></sub>
IE:
- Type H20
- Select 20 and click subscript
- Click between 2 and 0 and click superscript
Expected: Will wait for character to be typed and placed at default, Actual: H20 (the whole subscript is removed immediately)