diegoles / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

Font color or font background color tag is lost when text is removed #486

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
1.Chrome browser 21.0.1180.60
2. goto 
http://closure-library.googlecode.com/svn/trunk/closure/goog/demos/editor/editor
.html
3. Set the font color to some value
4. set the background color to another value
5. type some text.
6. Backspace over it to remove all the text
7. type some new text 

What do you see instead?
The font color stay to the changed color and the backgroud is reset to the 
default.

What is the expected output? 
The colors to stay at the changed colors or for both of them to be reset.
What do you see instead?

What version of the product are you using? On what operating system?

The odd thing is all browser behave differently. 
IE 9 keeps both colors.  
Chrome resets the backgrond color.  
Firefox resets both sometimes and does not set them sometimes.

Please provide any additional information below.

Note: we cannot accept patches without the contributor license agreement
being signed. See http://code.google.com/p/closure-
library/wiki/Contributors for more info.

Original issue reported on code.google.com by david.la...@teamaol.com on 7 Aug 2012 at 5:38