Father Chrysostomos > HTML-DOM-0.054 > HTML::DOM::Implementation

Download:
HTML-DOM-0.054.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Stalled  1
View/Report Bugs
Module Version: 0.054   Source  

NAME ^

HTML::DOM::Implementation - HTML::DOM's 'DOMImplementation' object

SYNOPSIS ^

  $impl = $HTML::DOM::Implementation::it;
  $impl->hasFeature('HTML', '1.0'); # returns true
  $impl->hasFeature('XML' , '1.0'); # returns false

DESCRIPTION ^

This singleton class provides HTML::DOM's 'DOMImplementation' object. There is no constructor. The object itself is accessible as $HTML::DOM::Implementation::it or HTML::DOM->implementation.

THE ONLY METHOD ^

$implementation->hasFeature( $name, $version )

This returns true or false depending on whether the feature is supported. $name is case-tolerant. $version is optional. The supported features are listed under "DESCRIPTION" in HTML::DOM. If $version is '1.0', this method only returns true for 'Core' and 'HTML'.

SEE ALSO ^

HTML::DOM

syntax highlighting: