#1349: Mozilla style="-moz-style: -moz-initial"
----------------------+-----------------------------------------------------
Reporter: Scott | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:
Component: General | Version: FCKeditor 2.4.3
Resolution: | Keywords: HasPatch
----------------------+-----------------------------------------------------
Old description:
> 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
>
> [EMAIL PROTECTED]
New description:
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
--
Ticket URL: <http://dev.fckeditor.net/ticket/1349#comment:6>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac