elena 2002/12/20 09:57:57 Modified: java/src/org/apache/html/dom HTMLBuilder.java Log: createElement in HTML DOM converts a tagName to upper case, thus on the endElement we should compare names ignoring the case. Revision Changes Path 1.5 +2 -3 xml-xerces/java/src/org/apache/html/dom/HTMLBuilder.java Index: HTMLBuilder.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLBuilder.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- HTMLBuilder.java 21 Dec 2000 00:33:38 -0000 1.4 +++ HTMLBuilder.java 20 Dec 2002 17:57:57 -0000 1.5 @@ -197,10 +197,9 @@ public void endElement( String tagName ) throws SAXException { - if ( _current == null ) throw new SAXException( "HTM007 State error: endElement called with no current node." ); - if ( ! _current.getNodeName().equals( tagName ) ) + if ( ! _current.getNodeName().equalsIgnoreCase( tagName )) throw new SAXException( "HTM008 State error: mismatch in closing tag name " + tagName + "\n" + tagName); // Move up to the parent element. When you reach the top (closing the root element).
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]