File Coverage

blib/lib/OCBNET/CSS3/DOM/Extended/Charset.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 18 19 94.7


line stmt bran cond sub pod time code
1             ###################################################################################################
2             # Copyright 2013/2014 by Marcel Greter
3             # This file is part of OCBNET-CSS3 (GPL3)
4             ####################################################################################################
5             package OCBNET::CSS3::DOM::Extended::Charset;
6             ####################################################################################################
7             our $VERSION = '0.2.5';
8             ####################################################################################################
9              
10 11     11   59 use strict;
  11         20  
  11         546  
11 11     11   61 use warnings;
  11         22  
  11         299  
12              
13             ####################################################################################################
14 11     11   49 use base 'OCBNET::CSS3::DOM::Extended';
  11         20  
  11         1111  
15             ####################################################################################################
16              
17             # static getter
18             #**************************************************************************************************
19 1     1 0 4 sub type { return 'charset' }
20              
21             ####################################################################################################
22              
23             # load regex for vendor prefixes
24             #**************************************************************************************************
25 11     11   59 use OCBNET::CSS3::Regex::Base qw($re_vendors);
  11         21  
  11         1388  
26              
27             # add basic extended type with highest priority
28             #**************************************************************************************************
29             unshift @OCBNET::CSS3::types, [
30             qr/\A\s*\@(?:-$re_vendors-)?charset/is,
31             'OCBNET::CSS3::DOM::Extended::Charset'
32             ];
33              
34             ####################################################################################################
35             ####################################################################################################
36             1;