зеркало из https://github.com/mozilla/gecko-dev.git
349901dac4
`document.execCommand("removeformat")` removes any elements in the range which are editable, not `<a>`, not block and a container. https://searchfox.org/mozilla-central/rev/dd7e27f4a805e4115d0dbee70e1220b23b23c567/editor/libeditor/HTMLStyleEditor.cpp#760-763 This means that it removes hidden elements like `<script>` and `<style>`, or non-HTML elements like SVG elements. However, the unofficial document of `execCommand()` lists up elements which should be handled by the command. https://w3c.github.io/editing/execCommand.html#removeformat-candidate Additionally, Chrome respects this list since not including `<del>` element into the list does not make sense but Chrome ignores it. So, we should respect the list. Differential Revision: https://phabricator.services.mozilla.com/D27018 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIEditorStyleSheets.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsIPlaintextEditor.idl | ||
nsITableEditor.idl | ||
nsIURIRefObject.idl |