| 2704 |
|
|
| 2705 |
if ($token->{tag_name} eq 'textarea') { |
if ($token->{tag_name} eq 'textarea') { |
| 2706 |
## TODO: $self->{form_element} if defined |
## TODO: $self->{form_element} if defined |
|
## TODO: ignore first LF <http://html5.org/tools/web-apps-tracker?from=866&to=867> |
|
| 2707 |
$self->{content_model_flag} = 'RCDATA'; |
$self->{content_model_flag} = 'RCDATA'; |
| 2708 |
} else { |
} else { |
| 2709 |
$self->{content_model_flag} = 'CDATA'; |
$self->{content_model_flag} = 'CDATA'; |
| 2712 |
$insert->($el); |
$insert->($el); |
| 2713 |
|
|
| 2714 |
my $text = ''; |
my $text = ''; |
| 2715 |
!!!next-token; |
if ($token->{tag_name} eq 'textarea') { |
| 2716 |
|
!!!next-token; |
| 2717 |
|
if ($token->{type} eq 'character') { |
| 2718 |
|
$token->{data} =~ s/^\x0A//; |
| 2719 |
|
unless (length $token->{data}) { |
| 2720 |
|
!!!next-token; |
| 2721 |
|
} |
| 2722 |
|
} |
| 2723 |
|
} else { |
| 2724 |
|
!!!next-token; |
| 2725 |
|
} |
| 2726 |
while ($token->{type} eq 'character') { |
while ($token->{type} eq 'character') { |
| 2727 |
$text .= $token->{data}; |
$text .= $token->{data}; |
| 2728 |
!!!next-token; |
!!!next-token; |