Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
get rid of length check
  • Loading branch information
kraih committed Jan 4, 2014
1 parent be98957 commit 07ccc7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/DOM/HTML.pm
Expand Up @@ -23,7 +23,7 @@ my $ATTR_RE = qr/
/x;
my $END_RE = qr!^\s*/\s*(.+)\s*!;
my $TOKEN_RE = qr/
([^<]*) # Text
([^<]+)? # Text
(?:
<\?(.*?)\?> # Processing Instruction
|
Expand Down Expand Up @@ -96,10 +96,10 @@ sub parse {

# Text (and runaway "<")
$text .= '<' if defined $runaway;
push @$current, ['text', html_unescape $text] if length $text;
push @$current, ['text', html_unescape $text] if defined $text;

# Tag
if ($tag) {
if (defined $tag) {

# End
my $xml = $self->xml;
Expand Down

0 comments on commit 07ccc7b

Please sign in to comment.