On Fri Nov 04 03:13:47 2011, PETDANCE wrote:
Show quoted text> If we're going to handle HTML5, it's not going to be through a "Can't
> you just do X". Adding elements at random and pushing out something
> isn't a good long-term solution.
>
Andy, do you know what the status of the patch I sent to the libwww
mailing list on May 20 with support for HTML 5 elements? I saw no
response from you or aytone else. Here 'tis again:
--- 3.20/Tagset.pm 2011-05-20 11:50:41.987911127 +0800
+++ new/Tagset.pm 2011-05-20 12:24:38.519497374 +0800
@@ -95,6 +95,7 @@
'a' => ['href'],
'applet' => ['archive', 'codebase', 'code'],
'area' => ['href'],
+ 'audio' => ['src'],
'base' => ['href'],
'bgsound' => ['src'],
'blockquote' => ['cite'],
@@ -115,10 +116,13 @@
'object' => ['classid', 'codebase', 'data', 'archive', 'usemap'],
'q' => ['cite'],
'script' => ['src', 'for'],
+ 'source' => ['src'],
'table' => ['background'],
'td' => ['background'],
'th' => ['background'],
'tr' => ['background'],
+ 'track' => ['src'],
+ 'video' => ['poster'],
'xmp' => ['href'],
);
@@ -185,6 +189,7 @@
wbr nobr blink
font basefont bdo
spacer embed noembed
+ time mark ruby rp rt bdi bdo
); # had: center, hr, table
@@ -253,7 +258,7 @@
=cut
%isFormElement = map {; $_ => 1 }
- qw(input select option optgroup textarea button label);
+ qw(input select option optgroup textarea button label keygen output
progress meter );
=head2 hashset %HTML::Tagset::isBodyElement
@@ -285,6 +290,10 @@
table
center
form
+
+ section nav article aside hgroup figure
+ param video audio source track canvas
+ details summary command menu
),
keys %isFormElement,
keys %isPhraseMarkup, # And everything phrasal
@@ -313,7 +322,7 @@
%isKnown = (%isHeadElement, %isBodyElement,
map{; $_=>1 }
qw( head body html
- frame frameset noframes
+ frame frameset noframes figcaption
~comment ~pi ~directive ~literal
));
# that should be all known tags ever ever