403 |
$r .= '<ul class="attributes">'; |
$r .= '<ul class="attributes">'; |
404 |
for my $attr (sort {$a->[0] cmp $b->[0]} map { [$_->name, $_->value, $_->namespace_uri, 'node-'.refaddr $_] } |
for my $attr (sort {$a->[0] cmp $b->[0]} map { [$_->name, $_->value, $_->namespace_uri, 'node-'.refaddr $_] } |
405 |
@{$child->attributes}) { |
@{$child->attributes}) { |
406 |
$r .= qq[<li id="$attr->[3]" class="tree-attribute"><code title="@{[defined $_->[2] ? $_->[2] : '']}">] . htescape ($attr->[0]) . '</code> = '; ## ISSUE: case? |
$r .= qq[<li id="$attr->[3]" class="tree-attribute"><code title="@{[defined $attr->[2] ? htescape ($attr->[2]) : '']}">] . htescape ($attr->[0]) . '</code> = '; ## ISSUE: case? |
407 |
$r .= '<q>' . htescape ($attr->[1]) . '</q></li>'; ## TODO: children |
$r .= '<q>' . htescape ($attr->[1]) . '</q></li>'; ## TODO: children |
408 |
} |
} |
409 |
$r .= '</ul>'; |
$r .= '</ul>'; |
424 |
} elsif ($nt == $child->DOCUMENT_NODE) { |
} elsif ($nt == $child->DOCUMENT_NODE) { |
425 |
$r .= qq'<li id="$node_id" class="tree-document">Document'; |
$r .= qq'<li id="$node_id" class="tree-document">Document'; |
426 |
$r .= qq[<ul class="attributes">]; |
$r .= qq[<ul class="attributes">]; |
427 |
|
my $cp = $child->manakai_charset; |
428 |
|
if (defined $cp) { |
429 |
|
$r .= qq[<li><code>charset</code> parameter = <code>]; |
430 |
|
$r .= htescape ($cp) . qq[</code></li>]; |
431 |
|
} |
432 |
|
$r .= qq[<li><code>inputEncoding</code> = ]; |
433 |
|
my $ie = $child->input_encoding; |
434 |
|
if (defined $ie) { |
435 |
|
$r .= qq[<code>@{[htescape ($ie)]}</code>]; |
436 |
|
if ($child->manakai_has_bom) { |
437 |
|
$r .= qq[ (with <code class=charname><abbr>BOM</abbr></code>)]; |
438 |
|
} |
439 |
|
} else { |
440 |
|
$r .= qq[(<code>null</code>)]; |
441 |
|
} |
442 |
$r .= qq[<li>@{[scalar get_text ('manakaiIsHTML:'.($child->manakai_is_html?1:0))]}</li>]; |
$r .= qq[<li>@{[scalar get_text ('manakaiIsHTML:'.($child->manakai_is_html?1:0))]}</li>]; |
443 |
$r .= qq[<li>@{[scalar get_text ('manakaiCompatMode:'.$child->manakai_compat_mode)]}</li>]; |
$r .= qq[<li>@{[scalar get_text ('manakaiCompatMode:'.$child->manakai_compat_mode)]}</li>]; |
444 |
unless ($child->manakai_is_html) { |
unless ($child->manakai_is_html) { |