RESOLVED CONFIGURATION CHANGED 15651
color-related execCommand operations require the "#" on hex colors
https://bugs.webkit.org/show_bug.cgi?id=15651
Summary color-related execCommand operations require the "#" on hex colors
Kevin Decker
Reported 2007-10-23 17:32:07 PDT
color-related execCommand operations require the "#" on hex colors; other browsers don't.
Attachments
Aryeh Gregor
Comment 1 2011-08-18 10:52:11 PDT
That's not what my testing showed. Simple test-case: data:text/html,<!doctype html> <div contenteditable>foo</div> <script> getSelection().selectAllChildren(document.querySelector("div")); document.execCommand("forecolor", false, "ff0000"); </script> The text is red in Chrome 15 dev. Only Gecko fails this. The spec I wrote is here: http://aryeh.name/spec/editing/editing.html#the-forecolor-command
Ahmad Saleem
Comment 2 2022-12-16 17:32:11 PST
I am not able to reproduce this bug using test case from Comment 01 in STP 160 and it matches with other browsers (Chrome Canary 110 and Firefox Nightly 110). Link - https://jsfiddle.net/obh4tc7e/show Do we need to track it further or this can be marked as "RESOLVED WONTFIX" because Gecko / Firefox changed rather than Webkit / Safari?
Note You need to log in before you can comment on or make changes to this bug.