[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/khtml/ecma [POSSIBLY UNSAFE]
From:       David Faure <faure () kde ! org>
Date:       2003-06-21 20:03:38
[Download RAW message or body]

CVS commit by faure: 

DOMTS fix: DOMAttr::value isn't readonly (obviously a typo).


  M +1 -1      kjs_binding.h   1.55 [POSSIBLY UNSAFE: printf]
  M +1 -1      kjs_dom.cpp   1.159
  M +1 -1      kjs_dom.lut.h   1.27


--- kdelibs/khtml/ecma/kjs_dom.cpp  #1.158:1.159
@@ -676,5 +676,5 @@ const ClassInfo DOMAttr::info = { "Attr"
   name          DOMAttr::Name           DontDelete|ReadOnly
   specified     DOMAttr::Specified      DontDelete|ReadOnly
-  value         DOMAttr::ValueProperty  DontDelete|ReadOnly
+  value         DOMAttr::ValueProperty  DontDelete
   ownerElement  DOMAttr::OwnerElement   DontDelete|ReadOnly
 @end

--- kdelibs/khtml/ecma/kjs_dom.lut.h  #1.26:1.27
@@ -124,5 +124,5 @@ namespace KJS {
 static const struct HashEntry DOMAttrTableEntries[] = {
    { "specified", DOMAttr::Specified, DontDelete|ReadOnly, 0, 0 },
-   { "value", DOMAttr::ValueProperty, DontDelete|ReadOnly, 0, 0 },
+   { "value", DOMAttr::ValueProperty, DontDelete, 0, 0 },
    { "name", DOMAttr::Name, DontDelete|ReadOnly, 0, 0 },
    { 0, 0, 0, 0, 0 },

--- kdelibs/khtml/ecma/kjs_binding.h  #1.54:1.55
@@ -217,5 +217,5 @@ namespace KJS {
     else if (entry->attr & ReadOnly) // readonly! Can't put!
 #ifdef KJS_VERBOSE
-      fprintf(stderr,"Attempt to change value of readonly property \
'%s'\n",propertyName.ascii()); +      fprintf(stderr,"WARNING: Attempt to change \
value of readonly property '%s'\n",propertyName.ascii());  #else
     ; // do nothing


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic