src/java.xml/share/classes/com/sun/org/apache/xerces/internal/dom/CoreDocumentImpl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved. |
3 */ |
3 */ |
4 /* |
4 /* |
5 * Licensed to the Apache Software Foundation (ASF) under one or more |
5 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * contributor license agreements. See the NOTICE file distributed with |
6 * contributor license agreements. See the NOTICE file distributed with |
7 * this work for additional information regarding copyright ownership. |
7 * this work for additional information regarding copyright ownership. |
81 * @author Arnaud Le Hors, IBM |
81 * @author Arnaud Le Hors, IBM |
82 * @author Joe Kesselman, IBM |
82 * @author Joe Kesselman, IBM |
83 * @author Andy Clark, IBM |
83 * @author Andy Clark, IBM |
84 * @author Ralf Pfeiffer, IBM |
84 * @author Ralf Pfeiffer, IBM |
85 * @since PR-DOM-Level-1-19980818. |
85 * @since PR-DOM-Level-1-19980818. |
86 * @LastModified: Nov 2017 |
86 * @LastModified: Nov 2018 |
87 */ |
87 */ |
88 public class CoreDocumentImpl |
88 public class CoreDocumentImpl |
89 extends ParentNode implements Document { |
89 extends ParentNode implements Document { |
90 |
90 |
91 /** |
91 /** |
1795 } else { |
1795 } else { |
1796 // Adopting between two dissimilar DOM's is not allowed |
1796 // Adopting between two dissimilar DOM's is not allowed |
1797 return null; |
1797 return null; |
1798 } |
1798 } |
1799 } |
1799 } |
|
1800 // Adopting from a deferred DOM into another deferred DOM |
|
1801 else if (otherImpl instanceof DeferredDOMImplementationImpl) { |
|
1802 // traverse the DOM and expand deferred nodes and then allow adoption |
|
1803 undeferChildren (node); |
|
1804 } |
1800 } |
1805 } |
1801 |
1806 |
1802 switch (node.getNodeType()) { |
1807 switch (node.getNodeType()) { |
1803 case ATTRIBUTE_NODE: { |
1808 case ATTRIBUTE_NODE: { |
1804 AttrImpl attr = (AttrImpl) node; |
1809 AttrImpl attr = (AttrImpl) node; |