[Webkit-unassigned] [Bug 36683] For compatibility, execCommand should support deprecated 'useCSS' alias for 'styleWithCSS'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 31 17:02:55 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=36683


Kiyoto Tamura <owenestea at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |owenestea at gmail.com




--- Comment #3 from Kiyoto Tamura <owenestea at gmail.com>  2011-08-31 17:02:55 PST ---
While I was working on this bug to get myself up to speed, I noticed something bizarre. I am using the Nightly Version 5.0.5 (6533.21.1, r94213) on Mac 10.6.7.

BEHAVIOR: styleWithCSS does not work properly

STEPS TO REPRODUCE:
1. Download the test page suggested by rniwa (http://www-archive.mozilla.org/editor/midasdemo/) and modify L403 to 

document.getElementById('edit').contentWindow.document.execCommand("styleWithCSS", false, source);

Essentially, modify the page so that it uses "styleWithCSS" as opposed to "useCSS". Note that the boolean argument needs to be flipped. I attached this modified version.

2. Load the modified version of the page (It would be missing images and such)

3. Although "useCSS" is checked, it does not work as expected. "View HTML Source" shows presentational tags. Now, if you uncheck "useCSS" and check it back, everything works as expected. CSS styles are now used instead of presentational tags.

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



More information about the webkit-unassigned mailing list