develooper Front page | perl.libwww | Postings from May 2011

HTML::Tagset - patch proposal for HTML 5 elements.

Thread Next
From:
James Bromberger
Date:
May 19, 2011 21:41
Subject:
HTML::Tagset - patch proposal for HTML 5 elements.
Message ID:
4DD5F0DC.5000204@rcpt.to
--- 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
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About