Bug 15651
Summary: | color-related execCommand operations require the "#" on hex colors | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kevin Decker <kdecker> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | ahmad.saleem792, ayg, justin.garcia, rniwa, rpaplin, wenson_hsieh |
Priority: | P2 | ||
Version: | 523.x (Safari 3) | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Kevin Decker
color-related execCommand operations require the "#" on hex colors; other browsers don't.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Aryeh Gregor
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
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?