Closed
Bug 514627
Opened 15 years ago
Closed 4 years ago
invalid execCommand ( forecolor | fontname | fontsize ) results: doesn't join adjacent similar FONT tags (styleWithCss is false)
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 480647
People
(Reporter: dpopa, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 Invalid execCommand ( forecolor | fontname | fontsize ) results: doesn't join adjacent similar FONT tags (styleWithCss is false) Reproducible: Always Steps to Reproduce: 1. Goto midas demo, make sure use css is NOT checked. 2. switch to HTML code view and enter the following html: line 1<br>line 2 and some text 3. switch to rich mode 4. select last 2 words: some text 5. apply one of the following commands: forecolor | fontname | fontsize 6. select all text 7. apply the same command again, but with another value. Actual Results: <font size="2">line 1<br>line 2 and </font><font size="2">some text</font> Expected Results: <font size="2">line 1<br>line 2 and some text</font> The expected results are the results you get if you apply the command on all selected content the first time: 1. Initial HTML: line 1<br>line 2 and some text 2. Select all, apply font size 2 3. Result HTML: <font size="2">line 1<br>line 2 and some text</font>
Also fixed in 2012-04-24, possibly in Bug 480647.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•