Fix the blank textarea problem by ensuring that any change to a <textarea>'s DOM...
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Aug 2004 20:56:16 +0000 (20:56 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Aug 2004 20:56:16 +0000 (20:56 +0000)
to resync with the DOM.  This behavior matches WinIE.

        Reviewed by kocienda

        * khtml/html/html_formimpl.cpp:
        (HTMLTextAreaElementImpl::childrenChanged):
        * khtml/html/html_formimpl.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7261 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/html/html_formimpl.cpp
WebCore/khtml/html/html_formimpl.h

index f2dbea787f9a9583f28b7dd9c8231f3380dddaac..7b5cc68f59f133ebc58b2aebd79bb0c55bd4eec0 100644 (file)
@@ -1,3 +1,14 @@
+2004-08-15  David Hyatt  <hyatt@apple.com>
+
+       Fix the blank textarea problem by ensuring that any change to a <textarea>'s DOM children causes the form control
+       to resync with the DOM.  This behavior matches WinIE.
+       
+        Reviewed by kocienda
+
+        * khtml/html/html_formimpl.cpp:
+        (HTMLTextAreaElementImpl::childrenChanged):
+        * khtml/html/html_formimpl.h:
+
 2004-08-13  Trey Matteson  <trey@apple.com>
 
        3761794 Slider doesn't call onmouseup handler
index 1e19f2027e91306b206446b30c5e772b1f47b04b..a91ddac0d7883dde123d533dbe7461b03324f98f 100644 (file)
@@ -2823,6 +2823,11 @@ void HTMLTextAreaElementImpl::select(  )
     onSelect();
 }
 
+void HTMLTextAreaElementImpl::childrenChanged()
+{
+    setValue(defaultValue());
+}
+    
 void HTMLTextAreaElementImpl::parseHTMLAttribute(HTMLAttributeImpl *attr)
 {
     switch(attr->id())
index 1a8f7ac6a68ed03f8994d402d5e7b08b94a74922..8bfe69489673d1566fcdde37993abfa4eec4fc83 100644 (file)
@@ -614,6 +614,7 @@ public:
 
     void select (  );
 
+    virtual void childrenChanged();
     virtual void parseHTMLAttribute(HTMLAttributeImpl *attr);
     virtual khtml::RenderObject *createRenderer(RenderArena *, khtml::RenderStyle *);
     virtual bool encoding(const QTextCodec*, khtml::encodingList&, bool);