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::DocumentType - DocumentType in JavaScript

Description

The Eg::Node::DocumentType class in SPVM represents a node containing a doctype.

This class is a port of DocumentType in JavaScript.

Usage

  my $dt = Eg->document->implementation->create_document_type(
    "svg:svg",
    "-//W3C//DTD SVG 1.1//EN",
    "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd",
  );
  
  my $name = $dt->name;

Inheritance

Eg::Node

Fields

name

has name : ro string;

Retunrs the type of the document.

For details, see DocumentType.name in JavaScript.

public_id

has public_id : ro string;

Retunrs a formal identifier of the document.

For details, see DocumentType.publicId in JavaScript.

system_id

has system_id : ro string;

Retunrs the URL of the associated DTD.

For details, see DocumentType.systemId in JavaScript.

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License