Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-04-08 14:48:36

jhilgeman
New member
Registered: 2009-04-08
Posts: 1

IE always lower-casing the inline style tags

If I load up Internet Explorer 7, then go into the source view in Xinha, type in this:

<div style="background: url(MyBackground.gif);">Something</div>

When I go back to the WYSIWYG mode, the code is changed to:

<div style="background: url(mybackground.gif);">Something</div>

Firefox does its own thing, but it preserves the case, at least. Normally, this is not a problem for most people, but our web server is case-sensitive and we have people that upload images with MiXeD-case filenames, and if they put in MyBackground.gif in the source code, it will not work because of the conversion. If you go to XinhaCore.js, the conversion seems to happen here:

Xinha.prototype.setMode=function(_cf){
var _d0;
...
this._editMode=_cf;    <---- PROBLEM HAPPENS IMMEDIATELY AFTER THIS LINE IS EXECUTED
};

I am having trouble figuring out _editMode and why it is breaking the code. I figure it has to do with the browser's built-in engine, but the IE built-in rich text editor doesn't seem to have anything to do with _editMode.

Offline

#2 2009-04-14 05:10:42

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: IE always lower-casing the inline style tags

Hi jhilgeman,
that's a bug thanks for reporting Ticket #1423  and just fixed

PS: you should grab an uncompressed source from svn if you do debugging, that much easier smile

Offline

Board footer

Powered by FluxBB