Skip to content

Commit a6df016

Browse files
Sean M. BurkeGitpan
authored andcommitted
Import of SBURKE/HTML-Tagset-3.02 from CPAN.
gitpan-cpan-distribution: HTML-Tagset gitpan-cpan-version: 3.02 gitpan-cpan-path: SBURKE/HTML-Tagset-3.02.tar.gz gitpan-cpan-author: SBURKE gitpan-cpan-maturity: released
1 parent 6343826 commit a6df016

3 files changed

Lines changed: 42 additions & 4 deletions

File tree

ChangeLog

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Revision history for Perl extension HTML::TagSet
2-
Time-stamp: "2000-08-21 01:39:24 MDT"
2+
Time-stamp: "2000-09-04 14:54:19 MDT"
3+
4+
2000-09-04 Sean M. Burke sburke@cpan.org
5+
6+
* Release 3.02
7+
Added %is_Possible_Strict_P_Content.
38

49
2000-08-21 Sean M. Burke sburke@cpan.org
510

README

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
README for HTML::Tagset
2-
Time-stamp: "2000-08-21 01:38:22 MDT"
2+
Time-stamp: "2000-08-22 22:42:38 MDT"
33

44
HTML::Tagset
55

@@ -62,3 +62,6 @@ COPYRIGHT
6262

6363
Copyright 1999,2000 Sean M. Burke <sburke@cpan.org>; Copyright
6464
1995-2000 Gisle Aas; all rights reserved.
65+
66+
This library is free software; you can redistribute it and/or
67+
modify it under the same terms as Perl itself.

Tagset.pm

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11

22
require 5;
3-
package HTML::Tagset; # Time-stamp: "2000-08-21 01:34:10 MDT"
3+
package HTML::Tagset; # Time-stamp: "2000-09-04 14:21:24 MDT"
44
use strict;
55
use vars qw(
66
$VERSION
77
%emptyElement %optionalEndTag %linkElements %boolean_attr
88
%isHeadElement %isBodyElement %isPhraseMarkup
9+
%is_Possible_Strict_P_Content
910
%isHeadOrBodyElement
1011
%isList %isTableElement %isFormElement
1112
%isKnown %canTighten
1213
@p_closure_barriers
1314
%isCDATA_Parent
1415
);
1516

16-
$VERSION = '3.01';
17+
$VERSION = '3.02';
1718

1819
=head1 NAME
1920
@@ -183,6 +184,35 @@ This hashset contains all phrasal-level elements.
183184
); # had: center, hr, table
184185

185186

187+
=item hashset %HTML::Tagset::is_Possible_Strict_P_Content
188+
189+
This hashset contains all phrasal-level elements that be content of a
190+
P element, for a strict model of HTML.
191+
192+
=cut
193+
194+
%is_Possible_Strict_P_Content = (
195+
%isPhraseMarkup,
196+
%isFormElement,
197+
map {; $_ => 1} qw( object script map )
198+
# I've no idea why there's these latter exceptions.
199+
# I'm just following the HTML4.01 DTD.
200+
);
201+
202+
#from html4 strict:
203+
#<!ENTITY % fontstyle "TT | I | B | BIG | SMALL">
204+
#
205+
#<!ENTITY % phrase "EM | STRONG | DFN | CODE |
206+
# SAMP | KBD | VAR | CITE | ABBR | ACRONYM" >
207+
#
208+
#<!ENTITY % special
209+
# "A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">
210+
#
211+
#<!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">
212+
#
213+
#<!-- %inline; covers inline or "text-level" elements -->
214+
#<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">
215+
186216
=item hashset %HTML::Tagset::isHeadElement
187217
188218
This hashset contains all elements that elements that should be

0 commit comments

Comments
 (0)