lib/PXML/HTML5.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/FP/Repl/corefuncs.pm ↑ Summary lib/PXML/Serialize/t.pm »
1 #
2 # Copyright (c) 2013-2015 Christian Jaeger, copying@christianjaeger.ch
3 #
4 # This is free software, offered under either the same terms as perl 5
5 # or the terms of the Artistic License version 2 or the terms of the
6 # MIT License (Expat version). See the file COPYING.md that came
7 # bundled with this file.
8 #
9  
10 =head1 NAME
11  
12 PXML::HTML5
13  
14 =head1 SYNOPSIS
15  
16 =head1 DESCRIPTION
17  
18 currently just provides $html5_void_elements and $html5_void_element_h
19  
20 =head1 NOTE
21  
22 This is alpha software! Read the status section in the package README
23 or on the L<website|http://functional-perl.org/>.
24  
25 =cut
26  
27 package PXML::HTML5;
28 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 7 ▶use warnings FATAL => 'uninitialized';
Subroutine BEGIN: called CC=1 SCAR=0.0
31 7 ▶use Exporter "import";
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 7 our @EXPORT = qw();
34 7 our @EXPORT_OK = qw( $html5_void_elements $html5_void_element_h);
35 7 our %EXPORT_TAGS = (all => [@EXPORT, @EXPORT_OK]);
36  
37 # the set of tags that are allowed to be self-closing (<foo/>) without
38 # semantical changes
39 7 our $html5_void_elements = [
40  
41 # http://dev.w3.org/html5/markup/syntax.html
42 # "The following is a complete list of the void elements in HTML:"
43 qw(
44 area
45 base
46 br
47 col
48 command
49 embed
50 hr
51 img
52 input
53 keygen
54 link
55 meta
56 param
57 source
58 track
59 wbr
60 )
61 ];
62  
63 7 our $html5_void_element_h = +{ map { $_ => 1 } @$html5_void_elements };
64  
65 7 1
« lib/FP/Repl/corefuncs.pm ↑ Summary lib/PXML/Serialize/t.pm »