You are viewing a plain text version of this content. The canonical link for it is here.
Posted to crimson-cvs@xml.apache.org by ed...@apache.org on 2001/04/30 23:48:37 UTC

cvs commit: xml-crimson/src/org/apache/crimson/tree DOMImplementationImpl.java

edwingo     01/04/30 14:48:37

  Modified:    src/org/apache/crimson/tree DOMImplementationImpl.java
  Log:
  Fix DOM hasFeature("XML", "") returns false
  
  Revision  Changes    Path
  1.4       +2 -2      xml-crimson/src/org/apache/crimson/tree/DOMImplementationImpl.java
  
  Index: DOMImplementationImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-crimson/src/org/apache/crimson/tree/DOMImplementationImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DOMImplementationImpl.java	2001/03/16 21:54:48	1.3
  +++ DOMImplementationImpl.java	2001/04/30 21:48:36	1.4
  @@ -63,7 +63,7 @@
    * This class implements the DOM <em>DOMImplementation</em> interface.
    *
    * @author Edwin Goei
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public class DOMImplementationImpl implements DOMImplementation
   {
  @@ -95,7 +95,7 @@
   	if (!"XML".equalsIgnoreCase(feature)) {
   	    return false;
           }
  -        if (version == null || "2.0".equals(version)
  +        if (version == null || "".equals(version) || "2.0".equals(version)
               || "1.0".equals(version)) {
               return true;
           }
  
  
  

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