Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc
New issue 28904 by [email protected]: class="Apple-style-span" should not
be added by rich text editor
http://code.google.com/p/chromium/issues/detail?id=28904
Chrome Version : 4.0.249.4 (Official Build 32475)
URLs (if applicable) :
Other browsers tested:
Safari 4: FAIL
Firefox 3.x: OK
IE 7: OK
IE 8: OK
What steps will reproduce the problem?
1. Open Google Docs: https://docs.google.com/
2. Create a new document: Create new -> document
3. Type a single word, such as "Test"
4. Select the word, and apply a yellow background color to it with the
highlighter dropdown menu
5. Retrieve the generated HTML in Edit / Edit HTML
What is the expected result?
The generated HTML should be something like:
<span style="background-color:#ffff00">Test</span><br>
What happens instead?
The generated HTML is cluttered with class="Apple-style-span" attributes:
<font class="Apple-style-span"><span class="Apple-style-span"
style="background-color:#ffff00">Test</span></font><br>
The <font> tag seems added by Docs, but class="Apple-style-span" is
definitely added by Chrome. This attribute seems useless and should not be
added.
FYI, here is the HTML generated when using other browsers:
Safari 4.0 on Windows:
<font class="Apple-style-span"><span class="Apple-style-span"
style="background-color:#ffff00">Test</span></font><br>
(same issue as Chrome)
Firefox 3.0.15 on Windows:
<font><span style="background-color: rgb(255, 255,
0);">Test</span></font><br>
(no issue)
IE 8:
<FONT style="BACKGROUND-COLOR: #ffff00">Test</FONT><BR>
(no issue)
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs