sboag 00/10/17 11:51:48
Modified: java/src/org/apache/xalan/stree ElementImpl.java
Log:
In getFirstChild, use hasChildNodes instead of getChildCount, which solves
the last incrementality bug that I know of.
Revision Changes Path
1.16 +1 -5
xml-xalan/java/src/org/apache/xalan/stree/ElementImpl.java
Index: ElementImpl.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/stree/ElementImpl.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ElementImpl.java 2000/10/09 23:25:16 1.15
+++ ElementImpl.java 2000/10/17 18:51:46 1.16
@@ -73,11 +73,7 @@
*/
public Node getFirstChild()
{
- // The call to getAttrCount gets the number of attributes in the list.
- // The attributes are put in the list before the actual children.
- // Force attributes to be added first!
- int attrs = getAttrCount();
- return (getChildCount() == 0) ? null : getChild(attrs);
+ return hasChildNodes() ? getChild(attrsEnd) : null;
}
/**