HTML-Tiny

 view release on metacpan or  search on metacpan

lib/HTML/Tiny.pm  view on Meta::CPAN

  for my $tag ( qw(
    a abbr acronym address applet area article aside audio
    b base bdi bdo big blink blockquote body br button
    canvas caption center cite code col colgroup
    data datalist dd del details dfn dialog dir div dl dt
    em embed
    fieldset figcaption figure font footer form frame frameset
    h1 h2 h3 h4 h5 h6 head header hgroup hr html
    i iframe img input ins
    kbd keygen
    label legend li link
    main map mark marquee menu menuitem meta meter
    nav nobr noframes noscript
    object ol optgroup option output
    p param picture portal pre progress
    q
    rb rp rt rtc ruby
    s samp script section select slot small source spacer span strike strong style sub summary sup
    table tbody td template textarea tfoot th thead time title tr track tt
    u ul
    var video

lib/HTML/Tiny.pm  view on Meta::CPAN


=head2 Methods named after tags

In addition to the methods described above C<< HTML::Tiny >> provides
all of the following HTML generation methods:

  a abbr acronym address applet area article aside audio b base bdi bdo big
  blink blockquote body br button canvas caption center cite code col colgroup
  data datalist dd del details dfn dialog dir div dl dt em embed fieldset
  figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head
  header hgroup hr html i iframe img input ins kbd keygen label legend li link
  main map mark marquee menu menuitem meta meter nav nobr noframes noscript
  object ol optgroup option output p param picture portal pre progress q rb rp
  rt rtc ruby s samp script section select slot small source spacer span strike
  strong style sub summary sup table tbody td template textarea tfoot th thead
  time title tr track tt u ul var video wbr xmp

The following methods generate closed XHTML (<br />) tags by default:

  area base br col embed frame hr iframe img input keygen link meta param
  source track wbr

t/020-coverage.t  view on Meta::CPAN

      "method"        => "kbd"
    },
    {
      "expect_list" => [ "<label>one</label>", "<label>two</label>" ],
      "args"        => [ "one",                "two" ],
      "expect_scalar" => "<label>one</label><label>two</label>",
      "method"        => "label"
    },
    {
      "expect_list" =>
       [ "<legend>one</legend>", "<legend>two</legend>" ],
      "args" => [ "one", "two" ],
      "expect_scalar" => "<legend>one</legend><legend>two</legend>",
      "method"        => "legend"
    },
    {
      "expect_list"   => [ "<li>one</li>", "<li>two</li>" ],
      "args"          => [ "one",          "two" ],
      "expect_scalar" => "<li>one</li><li>two</li>",
      "method"        => "li"
    },
    {
      "expect_list" => [ "<map>one</map>", "<map>two</map>" ],
      "args"        => [ "one",            "two" ],



( run in 3.082 seconds using v1.01-cache-2.11-cpan-49f99fa48dc )