-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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
Labels
No labels