Skip to content

Documentation of %isHeadElement is misleading #9

@PhilterPaper

Description

@PhilterPaper

Originally opened by "bkb" 2015-11-16 as RT 109044 "Documentation of %isHeadElement is misleading". Please close the RT ticket.

==============================================================================

The documentation for %isHeadElement claims

This hashset contains all elements that elements that should be
present only in the 'head' element of an HTML document.

However, %isHeadElement contains tags like <script> which may be present either in the head or the body section of an HTML document.

==============================================================================

I fixed this in PhilterPaper/HTML-Tagset by changing the POD and code:

=head2 hashset %HTML::Tagset::isHeadElement

This hashset contains all elements that elements that may be
present in the 'head' element of an HTML document. Some, such as <script>,
may also by in the 'body'.

=cut

our %isHeadElement = (
  map {; $_ => 1 } qw(
    title 
    base basefont
    link 
    meta 
    object 
  ),
  %isHeadOrBodyElement,
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions