Web::DOM::Implementation
DOM DOMImplementation object
DESCRIPTION
The Web::DOM::Implementation class implements the DOM DOMImplementation interface.
A DOMImplementation object is associated with a Web::DOM::Document object.
The DOMImplementation object of the Web::DOM::Document is returned by the implementation method.
METHODS
The class has following methods:
$impl = Web::DOM::Implementation->new-
Create a new instance of the
DOMImplementationobject. This method is provided for some kind of compatibility and should not be used with newer applications. Now that the Web::DOM::Document class has the constructor, the constructor method of the Web::DOM::Implementation class is useless. [DOMPERL] $doc = $impl->create_atom_entry_document ($id, $title, $lang)-
Create a new Web::DOM::Document whose document element is an
atom:entryelement, using the specifiedatom:id,atom:title, andxml:langvalues. [ATOMDOM]See also "DEPENDENCY" in Web::DOM.
$doc = $impl->create_atom_feed_document ($id, $title, $lang)-
Create a new Web::DOM::Document whose document element is an
atom:feedelement, using the specifiedatom:id,atom:title, andxml:langvalues. [ATOMDOM]See also "DEPENDENCY" in Web::DOM.
$doc = $impl->create_document ($nsurl, $qname, $doctype)$doc = $impl->create_document ($nsurl, [$prefix, $local_name], $doctype)-
Create a new Web::DOM::XMLDocument. [DOM]
If first and second arguments are specified, they are used as the namespace URL and the qualified name of the document element. If they are not specified, an empty document is created.
The qualified name can be represented as an array reference, where the first item is the prefix (or
undeffor the null namespace) and the second item is the local name. [DOMPERL]If the third argument is specified, it is used as the document type node of the document.
$doc = $impl->create_html_document ($title)-
Create a new HTML document (Web::DOM::Document). If the argument is specified, it is used as the title of the document. [DOM]
$dt = $impl->create_document_type ($qname, $pubid, $sysid)-
Create a new document type node (Web::DOM::DocumentType) with the specified name, public identifier, and system identifier. [DOM] [DOMPERL]
$bool = $impl->has_feature-
Return true. This method is only provided for backward compatibility and should not be used. [DOM]
DEPENDENCY
For the create_atom_feed_document and create_atom_entry_document methods,
the perl-web-datetime package <https://github.com/manakai/perl-web-datetime> is required.
SPECIFICATIONS
- DOM
-
DOM Standard
<http://dom.spec.whatwg.org/#interface-domimplementation>. - DOMPERL
-
manakai's DOM Perl Binding
<http://suika.fam.cx/~wakaba/wiki/sw/n/manakai%27s%20DOM%20Perl%20Binding>. - ATOMDOM
-
Atom DOM
<http://suika.suikawiki.org/www/markup/xml/atomdom>.
SEE ALSO
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2012-2014 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.