You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@apache.org on 2002/04/26 11:16:18 UTC

cvs commit: xml-xerces/java/src/org/apache/html/dom HTMLDocumentImpl.java

andyc       02/04/26 02:16:17

  Modified:    java/docs releases.xml
               java/src/org/apache/html/dom HTMLDocumentImpl.java
  Log:
  Fixed bug in HTML DOM implementation that was causing xerces.dom
  element nodes to be created instead of the appropriate HTML element
  nodes.
  
  Reported by:	Ron Cemer <ro...@roncemer.com>
  
  Revision  Changes    Path
  1.118     +9 -1      xml-xerces/java/docs/releases.xml
  
  Index: releases.xml
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/docs/releases.xml,v
  retrieving revision 1.117
  retrieving revision 1.118
  diff -u -r1.117 -r1.118
  --- releases.xml	26 Apr 2002 09:13:29 -0000	1.117
  +++ releases.xml	26 Apr 2002 09:16:17 -0000	1.118
  @@ -1,5 +1,5 @@
   <?xml version='1.0' encoding='UTF-8'?>
  -<!-- $Id: releases.xml,v 1.117 2002/04/26 09:13:29 andyc Exp $ -->
  +<!-- $Id: releases.xml,v 1.118 2002/04/26 09:16:17 andyc Exp $ -->
   <!DOCTYPE releases SYSTEM 'dtd/releases.dtd'>
   <releases>
    <release version="TBD">
  @@ -7,6 +7,14 @@
         This release fixes a number of bugs, and adds some functionality.
     </desc>
     <changes>
  +    <fix>
  +     <note>
  +      Fixed bug in HTML DOM implementation that was causing xerces.dom
  +      element nodes to be created instead of the appropriate HTML element
  +      nodes.
  +     </note>
  +     <submitter name='Andy Clark'/>
  +    </fix>
       <fix>
        <note>
         Fixed bug to avoid null pointer exception in AbstractDOMParser when
  
  
  
  1.9       +23 -2     xml-xerces/java/src/org/apache/html/dom/HTMLDocumentImpl.java
  
  Index: HTMLDocumentImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/html/dom/HTMLDocumentImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- HTMLDocumentImpl.java	4 Oct 2000 08:53:21 -0000	1.8
  +++ HTMLDocumentImpl.java	26 Apr 2002 09:16:17 -0000	1.9
  @@ -83,7 +83,7 @@
    * methods ({@link #getURL}, {@link #getCookie}).
    *
    *
  - * @version $Revision: 1.8 $ $Date: 2000/10/04 08:53:21 $
  + * @version $Revision: 1.9 $ $Date: 2002/04/26 09:16:17 $
    * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
    * @see org.w3c.dom.html.HTMLDocument
    */
  @@ -441,12 +441,33 @@
       } 
   
   
  +    /**
  +     * Xerces-specific constructor. "localName" is passed in, so we don't need
  +     * to create a new String for it.
  +     * 
  +     * @param namespaceURI The namespace URI of the element to
  +     *                     create.
  +     * @param qualifiedName The qualified name of the element type to
  +     *                      instantiate.
  +     * @param localName     The local name of the element to instantiate.
  +     * @return Element A new Element object with the following attributes:
  +     * @throws DOMException INVALID_CHARACTER_ERR: Raised if the specified
  +     *                      name contains an invalid character.
  +     */
  +    public Element createElementNS(String namespaceURI, String qualifiedName,
  +                                   String localpart)
  +        throws DOMException
  +    {
  +        return createElementNS(namespaceURI, qualifiedName);
  +    }
  +    
       public Element createElementNS( String namespaceURI, String qualifiedName )
       {
           if ( namespaceURI == null || namespaceURI.length() == 0 )
               return createElement( qualifiedName );
  -        else
  +        else {
               return super.createElementNS( namespaceURI, qualifiedName );
  +        }
       }
   
   
  
  
  

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