Ticket #1349 (new Bug)
Mozilla style="-moz-style: -moz-initial"
| Reported by: | Scott | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | FCKeditor 2.4.3 |
| Keywords: | HasPatch | Cc: |
Description (last modified by fredck) (diff)
Sometimes mozilla can pollute html with -moz-xxx: moz-initial styles.
This breaks w3c style validation, and is unnecessary and annoying.
Can I suggest that when the editor switches to source, a regexp replace is ran that removes these styles.
Something like this would do the trick...
if(FCKBrowserInfo.IsGeckoLike)
{
sHTML = sHTML.replace( /\s*-moz-[^:]+: -moz-initial\s*;/g, '' ) ;
}
Cheers
Scott
Attachments
Change History
Note: See
TracTickets for help on using
tickets.