=head1 NAME Mozilla::DOM::Document =for object Mozilla::DOM::Document Mozilla::DOM::Document is a wrapper around an instance of Mozilla's nsIDOMDocument interface. This inherits from L. * The nsIDOMDocument interface represents the entire HTML or XML document. * Conceptually, it is the root of the document tree, and provides the * primary access to the document's data. * Since elements, text nodes, comments, processing instructions, etc. * cannot exist outside the context of a Document, the nsIDOMDocument * interface also contains the factory methods needed to create these * objects. * * For more information on this interface please see * LEwww.w3.orgETREDOM-Level-2-CoreE> =head1 CLASS METHODS =head2 $iid = Mozilla::DOM::Document->B() Pass this to QueryInterface. =head1 METHODS =head2 $node = $document->B($name) =over =over =item * $name (string) =back =back =head2 $attr = $document->B($namespaceURI, $qualifiedName) =over =over =item * $namespaceURI (string) =item * $qualifiedName (string) =back =back =head2 $node = $document->B($text) =over =over =item * $data (string) =back =back =head2 $node = $document->B($text) =over =over =item * $data (string) =back =back =head2 $doc_fragment = $document->B() =over =back =head2 $element = $document->B($tagname) =over =over =item * $tagname (string) =back =back =head2 $element = $document->B($namespaceURI, $qualifiedName) =over =over =item * $namespaceURI (string) =item * $qualifiedName (string) =back =back =head2 $node = $document->B($name) =over =over =item * $name (string) =back =back =head2 $node = $node = $document->B($target, $text) =over =over =item * $target (string) =item * $data (string) =back =back =head2 $textnode = $document->B($text) =over =over =item * $data (string) =back =back =head2 $document_type = $document->B() =over =back =head2 $element = $document->B() =over =back =head2 $element = $document->B($elementId) =over =over =item * $elementId (string) =back =back =head2 $domlist = $document->B($tagname) In scalar context, returns a L. In list context, returns a list of Ls. =over =over =item * $tagname (string) =back =back =head2 $element = $document->B($namespaceURI, $localName) In scalar context, returns a L. In list context, returns a list of Ls. =over =over =item * $namespaceURI (string) =item * $localName (string) =back =back =head2 $dom_implementation = $document->B() =over =back =head2 $document->B($node, $deep) =over =over =item * $importedNode (Mozilla::DOM::Node) =item * $deep (boolean) =back $deep = boolean =back =head1 SEE ALSO L =head1 COPYRIGHT Copyright (C) 2005-2007, Scott Lanning This software is licensed under the LGPL. See L for a full notice. =cut