You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2006/09/10 02:38:58 UTC

svn commit: r441883 - /xerces/java/trunk/src/org/apache/html/dom/HTMLDocumentImpl.java

Author: mrglavas
Date: Sat Sep  9 17:38:58 2006
New Revision: 441883

URL: http://svn.apache.org/viewvc?view=rev&rev=441883
Log:
JIRA Issue #1185:
http://issues.apache.org/jira/browse/XERCESJ-1185

Removing a redundant line of code. We were calling getElementsByTagName() 
twice to get the TITLE. Patch thanks to Dave Brosius.

Modified:
    xerces/java/trunk/src/org/apache/html/dom/HTMLDocumentImpl.java

Modified: xerces/java/trunk/src/org/apache/html/dom/HTMLDocumentImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/html/dom/HTMLDocumentImpl.java?view=diff&rev=441883&r1=441882&r2=441883
==============================================================================
--- xerces/java/trunk/src/org/apache/html/dom/HTMLDocumentImpl.java (original)
+++ xerces/java/trunk/src/org/apache/html/dom/HTMLDocumentImpl.java Sat Sep  9 17:38:58 2006
@@ -262,7 +262,6 @@
         // When found, make sure the TITLE is a direct child of HEAD,
         // and return the title's text (the Text node contained within).
         head = getHead();
-        title = head.getElementsByTagName( "TITLE" ).item( 0 );
         list = head.getElementsByTagName( "TITLE" );
         if ( list.getLength() > 0 ) {
             title = list.item( 0 );



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org