1 # Test option setting methods
3 use Test::More tests => 10;
8 my $p = HTML::Parser->new(api_version => 3,
12 $old = $p->boolean_attribute_value("foo");
15 $old = $p->boolean_attribute_value();
18 $old = $p->boolean_attribute_value(undef);
20 ok(!defined($p->boolean_attribute_value));
25 my $seen_buggy_comment_warning;
29 $seen_buggy_comment_warning++
30 if /^netscape_buggy_comment\(\) is deprecated/;
33 ok(!$p->strict_comment(1));
34 ok($p->strict_comment);
35 ok(!$p->netscape_buggy_comment);
36 ok($seen_buggy_comment_warning);