NAME

HTML::Object::Declaration - HTML Object

SYNOPSIS

use HTML::Object::Declaration;
my $this = HTML::Object::Declaration->new || die( HTML::Object::Declaration->error, "\n" );

VERSION

v0.2.0

DESCRIPTION

This module represents a document declaration element.

INHERITANCE

+-----------------------+     +---------------------------+
| HTML::Object::Element | --> | HTML::Object::Declaration |
+-----------------------+     +---------------------------+

PROPERTIES

internalSubset

Read-only.

Returns an empty string object

name

Read-only.

A DOMString, eg html for <!DOCTYPE HTML>.

notations

Read-only.

A NamedNodeMap with notations declared in the DTD.

publicId

Read-only.

A DOMString, eg "-//W3C//DTD HTML 4.01//EN", empty string for HTML5.

For example, with a doctype such as:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

or

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

systemId

Read-only.

A DOMString, eg "http://www.w3.org/TR/html4/strict.dtd", empty string for HTML5.

METHODS

after

This method is listed here for standard compliance, but actually does nothing.

Normally, in JavaScript, it would insert a set of Node or DOMString objects in the children list of the DocumentType's parent, just after the DocumentType object.

as_string

Returns a string representation of this element.

as_xml

Returns a xml representation of this element. This is actually an alias for "as_string"

before

This method is listed here for standard compliance, but actually does nothing.

Normally, in JavaScript, it would insert a set of Node or DOMString objects in the children list of the DocumentType's parent, just before the DocumentType object.

checksum

Returns an empty string.

set_checksum

Returns nothing.

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

https://html.spec.whatwg.org/multipage/syntax.html#the-doctype

https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode

https://developer.mozilla.org/en-US/docs/Web/API/DocumentType

HTML::Object, HTML::Object::Attribute, HTML::Object::Boolean, HTML::Object::Closing, HTML::Object::Collection, HTML::Object::Comment, HTML::Object::Declaration, HTML::Object::Document, HTML::Object::Element, HTML::Object::Exception, HTML::Object::Literal, HTML::Object::Number, HTML::Object::Root, HTML::Object::Space, HTML::Object::Text, HTML::Object::XQuery

COPYRIGHT & LICENSE

Copyright (c) 2021 DEGUEST Pte. Ltd.

All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.