- From: Michael B. Allen <mballen@erols.com>
- Date: Tue, 26 Mar 2002 04:11:43 -0500
- To: "Rick Rivello" <richard.rivello@nist.gov>
- Cc: www-dom-ts@w3.org
On Mon, 25 Mar 2002 14:26:29 -0500 "Rick Rivello" <richard.rivello@nist.gov> wrote: > Michael > > I'm trying to get a better understanding of your problem. > > I wrote the nodegetfirstchildnull test and want to make sure there > is not a problem with the test. Is there any way you can send me > the values of the employeeList.items(0,1,etc). There's no problem with the test. The second fragment was some space coming in from by deficient builder. I meant to say that if I called normalize() before-hand it worked. Actually if I unconditionally normalize() for all tests about 12 more tests pass. Thanks, Mike > > Thanks > Rick Rivello > > > > > ----- Original Message ----- > From: "Michael B. Allen" <mballen@erols.com> > To: <www-dom-ts@w3.org> > Sent: Monday, March 25, 2002 1:02 AM > Subject: How should text be normalized for tests? > > > > Expat returns separate #text fragments for newlines and space. This > > results in extra text nodes in my average DOM tree (unless normalize() > > is called of-course). I believe this is acceptable but the > > nodegetfirstchildnull test assumes that the second node is employeeId: > > > > 67 doc = load("staff"); > > 68 elementList = doc.getElementsByTagName("employee"); > > 69 employeeNode = elementList.item(0); > > 70 employeeList = employeeNode.getChildNodes(); > > 71 ---> secondChildNode = employeeList.item(1); > > > > This is a #text node for me. > > > > -- > > May The Source be with you. > > > > > -- May The Source be with you.
Received on Tuesday, 26 March 2002 04:05:34 UTC