[Webkit-unassigned] [Bug 17733] execCommand with super/subscript doesn't toggle back to baseline

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 25 05:08:27 PDT 2008


grossmann.mark at gmail.com changed:

           What    |Removed                     |Added
                 CC|                            |grossmann.mark at gmail.com

------- Comment #6 from grossmann.mark at gmail.com  2008-05-25 05:08 PDT -------
(In reply to comment #5)
> If you're using this in an application which needs a workaround in shipping
> versions of Safari, I would encourage you to use
> document.executeCommand("Unscript"); to remove any subscript/superscripts. 
> That should work in both IE and Safari.  Sadly, that also means you have to
> maintain your own "is this subscripted/superscripted" state.  You could use
> getComputedStyle on some portion of the selected text in order to discover the
> vertical-align value however.
For some reason it did not work for me in Safari 3.0.3 and 3.1.1. I used the
same test case and simply added another button with
It does not work in IE6/7 either (results in js exception). 

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list