This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 423 - textreplacewholetext04 tries to call a null return value
Summary: textreplacewholetext04 tries to call a null return value
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 3 (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Curt Arnold
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-12 15:01 UTC by Andrew Clover
Modified: 2004-01-07 16:05 UTC (History)
0 users

See Also:


Attachments
Asserts that return value is null (1.17 KB, patch)
2004-01-07 11:04 UTC, Curt Arnold
Details

Description Andrew Clover 2003-12-12 15:01:08 UTC
level3/core/textreplacewholetext04:

Tries to check the wholeText of the replaceWholeText returned value. However,
when the replacement text is the empty string, replaceWholeText removes the
node(s) and returns null, so the call to getWholeText will fail. The case for
replaceWholeText returning null is already checked for in textreplacewholetext02.
Comment 1 Curt Arnold 2004-01-07 11:04:39 UTC
Created attachment 173 [details]
Asserts that return value is null