This is a migrated thread and some comments may be shown as answers.

Mac OSX Safari HTML

1 Answer 111 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chris Miller
Top achievements
Rank 1
Chris Miller asked on 22 Jul 2008, 07:32 PM
I'm wondering why in general does the editor write different code for common html tags based on the browser I'm using. For instance, if I'm using a PC with FF and I bold something, the editor will write <strong> tag which is perfect. However, when using the same editor with a MAC and Safari bold will insert <span style="font-weight: bold; ">. I'm pretty sure Safari support <strong> so why would you ever go to the trouble of writing 2 coding engines for 2 browsers. Below are more examples of the nuttiness.

Line Break
PC/IE7/FF - <br />
MAC/SAFARI - <div><br></div>

Choose Normal
PC/IE7/FF - <p></p> (Which I think should just be plain text not <p>
MAC/SAFARI - <span><p></p></span>

Bold
PC/IE7/FF - <strong>
MAC/SAFARI - <span style="font-weight: bold; ">

Italic
PC/IE7/FF - <strong>
MAC/SAFARI - <span style="font-weight: italic; ">

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Jul 2008, 07:43 AM
Hi Nik,

RadEditor uses the Rich Text Editing (RTE) engine of the browser under which it operates. The different RTE engines of the browsers produce different HTML content and you have noticed this with your tests.

So far, we have implemented 20+ content filters which addressed many of the cross browser problems and enhanced the production of XHTML compliant content. For example the content filters produce <strong> tags instead of <b> tags in Firefox (by default FF applies <b> tags for the bold command).

Our goal is to make the editor to produce identical content under all browsers, but this task is not easy and requires a lot of coding and tests, because of the appearing problems with the selection, undo redo support and browser commands.


Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Chris Miller
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or