GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HTML::DOM::NODE (3)

.ds Aq ’

NAME

HTML::DOM::Node - A Perl class for representing the nodes of an HTML DOM tree

CONTENTS

VERSION

Version 0.056

SYNOPSIS



  use HTML::DOM::Node :all; # constants
  use HTML::DOM;
  $doc = HTML::DOM->new;
  $doc->isa(HTML::DOM::Node); # true
  $doc->nodeType == DOCUMENT_NODE; # true

  $doc->firstChild;
  $doc->childNodes;
  # etc



DESCRIPTION

This is the base class for all nodes in an HTML::DOM tree. (See CLASSES AND DOM INTERFACES in HTML::DOM.) It implements the Node interface, and, indirectly, the EventTarget interface (see HTML::DOM::EventTarget.

METHODS

    Attributes

The following DOM attributes are supported:
nodeName
nodeType These two are implemented not by HTML::DOM::Node itself, but by its subclasses.
nodeValue
parentNode
childNodes
firstChild
lastChild
previousSibling
nextSibling
attributes
ownerDocument
namespaceURI
prefix
localName Those last three always return nothing.
There is also a _set_ownerDocument method, which you probably do not need to know about.

    Other Methods

See the DOM spec. for descriptions of most of these. The first four automatically trigger mutation events. (See HTML::DOM::Event::Mutation.)
insertBefore
replaceChild
removeChild
appendChild
hasChildNodes
cloneNode
normalize
hasAttributes
isSupported
trigger_event This overrides HTML::DOM::EventTarget’s (non-DOM) method of the same name, so that the document’s default event handler is called.
as_text
as_HTML These two (non-DOM) methods of HTML::Element are overridden, so that they work correctly with comment and text nodes.

EXPORTS

The following node type constants are exportable:
ELEMENT_NODE \fIs0(1)
ATTRIBUTE_NODE \fIs0(2)
TEXT_NODE \fIs0(3)
CDATA_SECTION_NODE \fIs0(4)
ENTITY_REFERENCE_NODE \fIs0(5)
ENTITY_NODE \fIs0(6)
PROCESSING_INSTRUCTION_NODE \fIs0(7)
COMMENT_NODE \fIs0(8)
DOCUMENT_NODE \fIs0(9)
DOCUMENT_TYPE_NODE (10)
DOCUMENT_FRAGMENT_NODE (11)
NOTATION_NODE (12)

SEE ALSO

HTML::DOM

HTML::DOM::EventTarget

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HTML::DOM::NODE (3) 2016-02-28

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.