You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/03/23 01:00:30 UTC

[Bug 1084] New - Bug when appending child to DocumentImpl

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1084

*** shadow/1084	Thu Mar 22 16:00:30 2001
--- shadow/1084.tmp.27898	Thu Mar 22 16:00:30 2001
***************
*** 0 ****
--- 1,33 ----
+ +============================================================================+
+ | Bug when appending child to DocumentImpl                                   |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1084                        Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.3.0                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Linux                   |
+ |     Priority:                           Component: DOM                     |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: sapbasis@iname.com                                           |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ This bug appeared in 1.3 and is not present in 1.2.3. 
+ 
+ I have a DTD which has an element "img" with an attribute "src". Similar to the
+ HTML tag. From a parsed and validated Document containing the img tag, I get the
+ root element from the source document and do the following:
+ 
+ Document targetDoc = new DocumentImpl();
+ targetDoc.appendChild(targetDoc.importNode(rootNode, true));
+ 
+ If I serialize the rootNode I see ....<img src="figure.gif"/>....
+ 
+ If I serialize the targetDoc I see ....<img src=""/>....
+ 
+ I'm not modifying any of the elements or attributes at all. For some VERY
+ strange reason it seems to be stripping the attribute value for src out, however
+ all other elements and attributes come out as expected. This only happens when I
+ use 1.3, when I downgrade back to 1.2.3 everything works as expected.

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


Re: [Bug 1084] New - Bug when appending child to DocumentImpl

Posted by Ravi Kollu <rk...@cyberelan.com>.
I think I came across the same bug which happens to be in the importNode.
This happens if you try to import nodes from a document that was created
with the DOM parser feature
"http://apache.org/xml/features/dom/defer-node-expansion" set to 'true'. The
importNode problem is fixed  in 1.3.1

- Ravi

----- Original Message -----
From: <bu...@apache.org>
To: <xe...@xml.apache.org>
Sent: Thursday, March 22, 2001 7:00 PM
Subject: [Bug 1084] New - Bug when appending child to DocumentImpl


> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1084
>
> *** shadow/1084 Thu Mar 22 16:00:30 2001
> --- shadow/1084.tmp.27898 Thu Mar 22 16:00:30 2001
> ***************
> *** 0 ****
> --- 1,33 ----
> +
+===========================================================================
=+
> + | Bug when appending child to DocumentImpl
|
> +
+---------------------------------------------------------------------------
-+
> + |        Bug #: 1084                        Product: Xerces-J
|
> + |       Status: NEW                         Version: 1.3.0
|
> + |   Resolution:                            Platform: PC
|
> + |     Severity: Normal                   OS/Version: Linux
|
> + |     Priority:                           Component: DOM
|
> +
+---------------------------------------------------------------------------
-+
> + |  Assigned To: xerces-j-dev@xml.apache.org
|
> + |  Reported By: sapbasis@iname.com
|
> + |      CC list: Cc:
|
> +
+---------------------------------------------------------------------------
-+
> + |          URL:
|
> +
+===========================================================================
=+
> + |                              DESCRIPTION
|
> + This bug appeared in 1.3 and is not present in 1.2.3.
> +
> + I have a DTD which has an element "img" with an attribute "src". Similar
to the
> + HTML tag. From a parsed and validated Document containing the img tag, I
get the
> + root element from the source document and do the following:
> +
> + Document targetDoc = new DocumentImpl();
> + targetDoc.appendChild(targetDoc.importNode(rootNode, true));
> +
> + If I serialize the rootNode I see ....<img src="figure.gif"/>....
> +
> + If I serialize the targetDoc I see ....<img src=""/>....
> +
> + I'm not modifying any of the elements or attributes at all. For some
VERY
> + strange reason it seems to be stripping the attribute value for src out,
however
> + all other elements and attributes come out as expected. This only
happens when I
> + use 1.3, when I downgrade back to 1.2.3 everything works as expected.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>


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