AvailabilityDOM Level 1 Core SynopsisEntityReference createEntityReference(String name) throws DOMException; Arguments
ReturnsA new EntityReference node that references an entity with the specified name. ThrowsThis method may throw a DOMException with one of the following code values:
DescriptionThis method creates and returns an EntityReference node that refers to an entity with the specified name. Note that it always throws an exception if this is an HTML document, because HTML does not allow entity references. If this document has a DocumentType node, and if that DocumentType defines an Entity object with the specified name, the returned EntityReference has the same children as the referenced Entity node. |