#1955: Opera: Element names are uppercased in the output
----------------------+-----------------------------------------------------
Reporter: fredck | Owner:
Type: Bug | Status: new
Priority: High | Milestone: Opera Compatibility
Component: General | Version: SVN
Resolution: | Keywords: Confirmed Opera
----------------------+-----------------------------------------------------
Comment (by [EMAIL PROTECTED]):
This is simply about the case of tag names for the innerHTML
serialization, no?
Opera serializes tag names in upper case like IE does. Given that
.innerHTML is an IE thing I have no idea why Gecko has decided to do
things differently and return lower case tags.
The problem is here:
{{{
FCKXHtml._GetMainXmlString = function()
{
return '<xhtml>' + this.MainNode.innerHTML + '</xhtml>' ;
}
}}}
(from fckxhtml_gecko.js)
I doubt this will be fixed from our side. We've been back and forth on it
a few times and so far we were too worried about breaking IE-targetted
JavaScript to change it.
Possible FCKEditor fix - though I'd worry about the performance impact on
large documents, have not tested:
{{{
FCKXHtml._GetMainXmlString = function()
{
return '<xhtml>' + this.MainNode.innerHTML.replace(
/<((\/|)[A-Z]*)/g, function( tag ){ return tag.toLowerCase(); } ) +
'</xhtml>' ;
}
}}}
--
Ticket URL: <http://dev.fckeditor.net/ticket/1955#comment:2>
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