The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Name

SPVM::Eg::Node::Element::HTML - HTMLElement in JavaScript

Description

The Eg::Node::Element::HTML class in SPVM represents any HTML element.

This class is a port of HTMLElement in JavaScript.

Usage

  my $div = Eg->document->create_element("div");
  
  my $style = $div->style;
  
  $div->set_attribute("id", "1");

Inheritance

Eg::Node::Element

Fields

has style : ro Eg::CSS::StyleDeclaration;

The inline style of an element in the form of a live Eg::CSS::StyleDeclaration object that contains a list of all styles properties for that element with values assigned only for the attributes that are defined in the element's inline style attribute.

For details, see HTMLElement.style in JavaScript.

Well Known Child Classes

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License