Author: mrglavas
Date: Mon Sep 11 19:54:42 2006
New Revision: 442427

URL: http://svn.apache.org/viewvc?view=rev&rev=442427
Log:
Fixing JIRA Bug #1187:
http://issues.apache.org/jira/browse/XERCESJ-1187

We were checking whether a tag name equals "tbody". Given that the HTML DOM
uses upper-case element names this string should be "TBODY". Patch thanks
to Jacob Kjome.

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

Modified: xerces/java/trunk/src/org/apache/html/dom/HTMLCollectionImpl.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/html/dom/HTMLCollectionImpl.java?view=diff&rev=442427&r1=442426&r2=442427
==============================================================================
--- xerces/java/trunk/src/org/apache/html/dom/HTMLCollectionImpl.java (original)
+++ xerces/java/trunk/src/org/apache/html/dom/HTMLCollectionImpl.java Mon Sep 
11 19:54:42 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 1999,2000,2004 The Apache Software Foundation.
+ * Copyright 1999,2000,2004,2006 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,8 +13,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.html.dom;
 
+package org.apache.html.dom;
 
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
@@ -31,7 +31,6 @@
 import org.w3c.dom.html.HTMLTableRowElement;
 import org.w3c.dom.html.HTMLTableSectionElement;
 
-
 /**
  * Implements [EMAIL PROTECTED] org.w3c.dom.html.HTMLCollection} to traverse 
any named
  * elements on a [EMAIL PROTECTED] org.w3c.dom.html.HTMLDocument}. The 
elements type to
@@ -439,7 +438,7 @@
             case TBODY:
                 // Any <TBODY> element (one of three table section types).
                 match = ( elem instanceof HTMLTableSectionElement &&
-                          elem.getTagName().equals( "tbody" ) );
+                          elem.getTagName().equals( "TBODY" ) );
                 break;
             case CELL:
                 // Any <TD> element.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to