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 253 - msxml2.DOMDocument.3.0 was missing the 2
Summary: msxml2.DOMDocument.3.0 was missing the 2
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: ECMAScript Binding (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Curt Arnold
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-28 15:38 UTC by Curt Arnold
Modified: 2003-06-28 19:39 UTC (History)
0 users

See Also:


Attachments

Description Curt Arnold 2003-06-28 15:38:40 UTC
The progID for the Microsoft XML parser was missing a character which results 
in the tests failing with a "cannot create object" exception.
Comment 1 Curt Arnold 2003-06-28 15:39:40 UTC
Index: ecmascript/DOMTestCase.js
===================================================================
RCS file: /sources/public/2001/DOM-Test-Suite/ecmascript/DOMTestCase.js,v
retrieving revision 1.26
diff -r1.26 DOMTestCase.js
50a51,54
> 	var minLength = expected.length;
> 	if (actual.length < minLength) {
> 	    minLength = actual.length;
> 	}
52,57c56
<     //  if they aren't the same size, they aren't equal
<     assertEquals(descr, expected.length, actual.length);
<     //
<     var actualLen = actual.length;
<     var i;
<     for(i = 0; i < actualLen; i++) {
---
>     for(var i = 0; i < minLength; i++) {
61a61,63
>     //
>     //  if they aren't the same size, they aren't equal
>     assertEquals(descr, expected.length, actual.length);
712c714
<     return new MSXMLBuilder("Msxml.DOMDocument.3.0");
---
>     return new MSXMLBuilder("Msxml2.DOMDocument.3.0");