[XML-SIG] [ pyxml-Bugs-774091 ] minidom CharacterData string
methods fail when offset=length
SourceForge.net
noreply at sourceforge.net
Sat Jul 19 01:42:09 EDT 2003
Bugs item #774091, was opened at 2003-07-19 07:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=774091&group_id=6473
Category: DOM
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Clover (bobince)
Assigned to: Nobody/Anonymous (nobody)
Summary: minidom CharacterData string methods fail when offset=length
Initial Comment:
In all minidom versions up to that released in 0.8.2, an
IndexSizeErr is raised by the methods substringData,
insertData, deleteData and replaceData when the offset
parameter passed is beyond *or at* the end of the
current string value.
According to DOM Level 1 Core, the exception should be
raised only if the offset is *greater than* the length.
The comparisons at lines 967, 979, 988 and 998 of
minidom.py should be changed from:
if offset >= len(self.data):
to:
if offset > len(self.data):
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=774091&group_id=6473
More information about the XML-SIG
mailing list