HTML-HTML5-Writer

 view release on metacpan or  search on metacpan

lib/HTML/HTML5/Writer.pm  view on Meta::CPAN

	track@default
	video@autoplay video@preload video@controls video@loop
	);
our @OptionalStart = qw(html head body tbody);
our @OptionalEnd = qw(html head body tbody dt dd li optgroup
	option p rp rt td th tfoot thead tr);

sub new
{
	my ($class, %opts) = @_;
	my $self = bless \%opts => $class;
	
	$self->{'markup'}   //= 'html';
	$self->{'charset'}  //= 'utf8';
	$self->{'refs'}     //= 'hex';
	$self->{'doctype'}  //= ($self->is_xhtml? DOCTYPE_LEGACY : DOCTYPE_HTML5);
	$self->{'polyglot'} //= !!$self->is_xhtml;
	
	return $self;
}

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.792 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )