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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 18 09:50:34 PDT 2008


------- Comment #7 from futurama at gmail.com  2008-08-18 09:50 PDT -------
(In reply to comment #6)
> (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
> onclick="document.execCommand('Unscript')".
> It does not work in IE6/7 either (results in js exception). 

I have no idea what's up with IE6/7 supporting this...it doesn't appear on MSDN

In any case,
seems to limit the "unscript" command identifier to
"supportedFromMenuOrKeyBinding". So, this command identifier is useless for web

Configure bugmail: https://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