If you apply bold, underline, and italic styles to an element, queryCommandState will incorrectly report that the selected text is not underlined.
queryCommandState works fine under all the other combinations of bold, underline, and italic text.
Created attachment 22355 [details]
Demonstrations the underline state bug
Select some text in the edit area and click "Query selected state". Notice that the underline state is false.
*** This bug has been marked as a duplicate of 11022 ***