http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1303 *** shadow/1303 Wed Apr 11 01:21:33 2001 --- shadow/1303.tmp.5401 Wed Apr 11 01:21:33 2001 *************** *** 0 **** --- 1,37 ---- + +============================================================================+ + | AttrImpl::setValue with null argument | + +----------------------------------------------------------------------------+ + | Bug #: 1303 Product: Xerces-C | + | Status: NEW Version: 1.4 | + | Resolution: Platform: All | + | Severity: Normal OS/Version: All | + | Priority: Component: DOM | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + > DTest failed in the following way : + > + > konst@[numa]://...bin>./DTest + > Warning!!! DOM_Attr's 'setValue' to 'null' method failed to work properly! + > + > *****The DOM_Attr method calls listed above failed, all others worked + +correctly.***** + > Warning!!! DOM_Attr's 'setValue' to 'null' method failed to work properly! + + + I think I found a bug in AttrImpl::setValue in src/dom/AttrImpl.cpp. + If its argument is an empty string (one that constructed + by DOMString(0)) than it does nothing and + attribute retains its previos value (in case of DTest it is "Reset Value") + + The bug is clear from the source code. + + this happend to me on DYNIX/ptx numa 4.0 V4.4.7 i386 + with gcc 2.95.3 + and Linux with gcc 2.95.2 + but I think it doesn't matter --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
