Skip to content

Commit 2309028

Browse files
committed
Do not bother tracking style or script, they're ignored.
1 parent 0423689 commit 2309028

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/HTML/HeadParser.pm

+1-2
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ sub start
203203
# This is a non-standard header. Perhaps we should just ignore
204204
# this element
205205
$self->{'header'}->push_header(Isindex => $attr->{prompt} || '?');
206-
} elsif ($tag =~ /^(?:title|(?:no)?script|style|object
207-
|eventsource|command)$/x) {
206+
} elsif ($tag =~ /^(?:title|noscript|object|eventsource|command)$/) {
208207
# Just remember tag. Initialize header when we see the end tag.
209208
$self->{'tag'} = $tag;
210209
} elsif ($tag eq 'link') {

0 commit comments

Comments
 (0)