| 248 |
u => FORMATTING_EL, |
u => FORMATTING_EL, |
| 249 |
ul => MISC_SPECIAL_EL, |
ul => MISC_SPECIAL_EL, |
| 250 |
wbr => MISC_SPECIAL_EL, |
wbr => MISC_SPECIAL_EL, |
| 251 |
|
xmp => MISC_SPECIAL_EL, |
| 252 |
}; |
}; |
| 253 |
|
|
| 254 |
my $el_category_f = { |
my $el_category_f = { |
| 649 |
|
|
| 650 |
## NOTE: |set_inner_html| copies most of this method's code |
## NOTE: |set_inner_html| copies most of this method's code |
| 651 |
|
|
| 652 |
|
## Confidence: irrelevant. |
| 653 |
$self->{confident} = 1 unless exists $self->{confident}; |
$self->{confident} = 1 unless exists $self->{confident}; |
| 654 |
|
|
| 655 |
$self->{document}->input_encoding ($self->{input_encoding}) |
$self->{document}->input_encoding ($self->{input_encoding}) |
| 656 |
if defined $self->{input_encoding}; |
if defined $self->{input_encoding}; |
| 657 |
## TODO: |{input_encoding}| is needless? |
## TODO: |{input_encoding}| is needless? |
| 6561 |
my $onerror = $_[1]; |
my $onerror = $_[1]; |
| 6562 |
my $get_wrapper = $_[2] || sub ($) { return $_[0] }; |
my $get_wrapper = $_[2] || sub ($) { return $_[0] }; |
| 6563 |
|
|
|
## ISSUE: Should {confident} be true? |
|
|
|
|
| 6564 |
my $nt = $node->node_type; |
my $nt = $node->node_type; |
| 6565 |
if ($nt == 9) { # Document (invoke the algorithm with no /context/ element) |
if ($nt == 9) { # Document (invoke the algorithm with no /context/ element) |
| 6566 |
# MUST |
# MUST |
| 6775 |
$anode = $anode->parent_node; |
$anode = $anode->parent_node; |
| 6776 |
} # AN |
} # AN |
| 6777 |
|
|
| 6778 |
|
## F.5. Set the input stream. |
| 6779 |
|
$p->{confident} = 1; ## Confident: irrelevant. |
| 6780 |
|
|
| 6781 |
## F.6. Start the parser. |
## F.6. Start the parser. |
| 6782 |
{ |
{ |
| 6783 |
my $self = $p; |
my $self = $p; |