When in the source code you type :
<input type="text" value="10">
go to the view and then go back to code, the result is :
<input/>
Where did the value go ????? I also noticed that all <script> tags are erased and other bugs ...
What is going on with IE ? Is there a way to avoid IE to modify the code ?
Thanx guys ;-0
<input type="text" value="10">
go to the view and then go back to code, the result is :
<input/>
Where did the value go ????? I also noticed that all <script> tags are erased and other bugs ...
What is going on with IE ? Is there a way to avoid IE to modify the code ?
Thanx guys ;-0
RE: IE6 Erase value of textfield
I finaly found the cause of that behavior. Of course it's IE6 fault
In that file :
FCKeditor\editor\_source\internals\fckxhtml.js
you can find that line :
if ( oAttribute.specified ) ...
wich test if the attribute of the tag is defined. When testing the 'input' tag, IE6 return false whatever. It's kind of a bug right ?
So the solution is to replace this line by the following :
if ( oAttribute.specified || (oAttribute.nodeName.toLowerCase() == 'value' && oAttribute.nodeValue != ''))
Now it tests for the specific attribute value wether it's empty or not, and if not, process the attribute ,,,
If you want to apply this modification, you have to recompil the source code with the batch file given in this thread :
http://sourceforge.net/forum/message.php?msg_id=2754799
I found this solution when I noticed the same problem on HTMLArea. Thanx to this guy nels :
http://www.htmlarea.com/forum/htmlArea_3_(beta)_C4/htmlArea_v3.0_-_Beta_Release_F14/gforum.cgi?post=35983;search_string=input;guest=10177092&t=search_engine#35983
Good luck !!!