Re: Modify File Entity Reference child node and its attribute

On Thu, 4 Aug 2005, Dave Maung wrote:

>
> Is there way to make File Entity Reference children to
> be modifiable?

I believe there is no way (unless your DOM implementation supports
some non-portable private mechanism).

You can either set a load feature to eliminate the entity reference
markers or you can clone the child, remove the parent, and insert
the child, either of which should give you a node you can modify
since it is no longer inside the entity reference.

The entity reference, as long as it is there, serves as a marker
of a reference which should contain / collapse to the original
definition.  If you could modify the content under the entity 
reference, it would no longer represent a reference of the entity 
because the content would be different (exactly what it would 
represent would be hard to say).

There is presently no DOM support for modifying an entity 
definition.

Ray Whitmer

Received on Friday, 5 August 2005 14:00:08 UTC