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::VIEW (3)

.ds Aq ’

NAME

HTML::DOM::View - A Perl class for representing an HTML Document’s ’defaultView’

CONTENTS

VERSION

Version 0.056

SYNOPSIS



  use HTML::DOM;
  $doc = HTML::DOM->new;
  $view = new MyView;
 
  $doc->defaultView($view);
 
 
  package MyView;
  BEGIN { @ISA = HTML::DOM::View; }
  use HTML::DOM::View;

  sub new {
      my $self = bless {}, shift; # doesnt have to be a hash
      my $doc = shift;
      $self->document($doc);
      return $self
  }

  # ...



DESCRIPTION

This class is used for an HTML::DOM object’s ’default view.’ It implements the AbstractView DOM interface.

It is an inside-out class, so you can subclass it without being constrained to any particular object structure.

METHODS

    Methods that HTML::DOM::View itself implements

$view->document Returns the document associated with the view.

You may pass an argument to set it, in which case the old value is returned. This attribute holds a weak reference to the object.

$view->getComputedStyle( $elem )
$view->getComputedStyle( $elem, $pseudo_elem ) Returns the computed style as a CSS::DOM::Style object. $pseudo_elem is the name of the pseudo-element, with or without the initial colons (1 or 2).

    Subclass methods that HTML::DOM::View uses

$view->ua_style_sheet( $string )
$view->user_style_sheet( $string ) These are called by getComputedStyle and are expected to return the user agent and user style sheets, respectively, as CSS::DOM objects.

SEE ALSO

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


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

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