Web::DOM::DocumentType
The DOM DocumentType
object
DESCRIPTION
The Web::DOM::DocumentType
class implements the DOM DocumentType
interface.
It represents a document type.
METHODS
In addition to the methods of classes Web::DOM::EventTarget, Web::DOM::Node, and Web::DOM::ChildNode, following methods are available:
$string = $ent->declaration_base_uri
$string = $ent->manakai_declaration_base_uri
-
Return the base URL of the document type declaration. [DOMDTDEF]
See also "DEPENDENCY" in Web::DOM.
$col = $dt->element_types
-
Return the collection (Web::DOM::NamedNodeMap) of element types. [DOMDTDEF]
$col = $dt->general_entities
$col = $dt->entities
-
Return the collection (Web::DOM::NamedNodeMap) of general entities. [DOM3CORE] [DOMDTDEF]
$et = $dt->get_element_type_definition_node ($name)
-
Return the element type (Web::DOM::ElementTypeDefinition) with the specified name, if any, or
undef
. [DOMDTDEF] $entity = $dt->get_general_entity_node ($name)
-
Return the general entity (Web::DOM::Entity) with the specified name, if any, or
undef
. [DOMDTDEF] $notation = $dt->get_notation_node ($name)
-
Return the notation (Web::DOM::Notation) with the specified name, if any, or
undef
. [DOMDTDEF] $name = $dt->name
-
Return the name of the document type. [DOM]
$col = $dt->notations
-
Return the collection (Web::DOM::NamedNodeMap) of notations. [DOM3CORE]
$id = $dt->public_id
$dt->public_id ($id)
-
Return or set the public identifier of the document type. [DOM] [DOMDTDEF] [MANAKAI] [DOMPERL]
$node = $dt->remove_element_type_definition_node ($node)
-
Remove the specified element type from the document type. The removed node is returned. [DOMDTDEF]
$node = $dt->remove_general_entity_node ($node)
-
Remove the specified general entity from the document type. The removed node is returned. [DOMDTDEF]
$node = $dt->remove_notation_node ($node)
-
Remove the specified notation from the document type. The removed node is returned. [DOMDTDEF]
$old = $dt->set_element_type_definition_node ($new)
-
Set the specified element type to the document type. If there is already an element type with the same name, it is removed from the document type and returned. [DOMDTDEF]
$old = $dt->set_general_entity_node ($new)
-
Set the specified general entity node to the document type. If there is already a general entity with the same name, it is removed from the document type and returned. [DOMDTDEF]
$old = $dt->set_notation_node ($new)
-
Set the specified notation node to the document type. If there is already a notation with the same name, it is removed from the document type and returned. [DOMDTDEF]
$id = $dt->system_id
$dt->system_id ($id)
-
Return or set the system identifier of the document type. [DOM] [DOMDTDEF] [MANAKAI] [DOMPERL]
SPECIFICATIONS
- DOM
-
DOM Living Standard
<http://dom.spec.whatwg.org/#interface-documenttype>
. - DOMDTDEF
-
DOM Document Type Definitions
<http://suika.suikawiki.org/www/markup/xml/domdtdef/domdtdef>
. - DOMPERL
-
manakai's DOM Perl Binding
<http://suika.suikawiki.org/~wakaba/wiki/sw/n/manakai%27s%20DOM%20Perl%20Binding>
. - MANAKAI
-
manakai DOM Extensions
<http://suika.suikawiki.org/~wakaba/wiki/sw/n/manakai%20DOM%20Extensions>
.
SEE ALSO
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2012-2013 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.