441 |
!!!cp (19); |
!!!cp (19); |
442 |
$self->{ct} |
$self->{ct} |
443 |
= {type => START_TAG_TOKEN, |
= {type => START_TAG_TOKEN, |
444 |
tag_name => chr ($self->{nc} + 0x0020), |
tag_name => chr ($self->{nc} + ($self->{is_xml} ? 0 : 0x0020)), |
445 |
line => $self->{line_prev}, |
line => $self->{line_prev}, |
446 |
column => $self->{column_prev}}; |
column => $self->{column_prev}}; |
447 |
$self->{state} = TAG_NAME_STATE; |
$self->{state} = TAG_NAME_STATE; |
530 |
!!!cp (29); |
!!!cp (29); |
531 |
$self->{ct} |
$self->{ct} |
532 |
= {type => END_TAG_TOKEN, |
= {type => END_TAG_TOKEN, |
533 |
tag_name => chr ($self->{nc} + 0x0020), |
tag_name => chr ($self->{nc} + ($self->{is_xml} ? 0 : 0x0020)), |
534 |
line => $l, column => $c}; |
line => $l, column => $c}; |
535 |
$self->{state} = TAG_NAME_STATE; |
$self->{state} = TAG_NAME_STATE; |
536 |
!!!next-input-character; |
!!!next-input-character; |
661 |
} elsif (0x0041 <= $self->{nc} and |
} elsif (0x0041 <= $self->{nc} and |
662 |
$self->{nc} <= 0x005A) { # A..Z |
$self->{nc} <= 0x005A) { # A..Z |
663 |
!!!cp (38); |
!!!cp (38); |
664 |
$self->{ct}->{tag_name} .= chr ($self->{nc} + 0x0020); |
$self->{ct}->{tag_name} |
665 |
|
.= chr ($self->{nc} + ($self->{is_xml} ? 0 : 0x0020)); |
666 |
# start tag or end tag |
# start tag or end tag |
667 |
## Stay in this state |
## Stay in this state |
668 |
!!!next-input-character; |
!!!next-input-character; |
734 |
$self->{nc} <= 0x005A) { # A..Z |
$self->{nc} <= 0x005A) { # A..Z |
735 |
!!!cp (49); |
!!!cp (49); |
736 |
$self->{ca} |
$self->{ca} |
737 |
= {name => chr ($self->{nc} + 0x0020), |
= {name => chr ($self->{nc} + ($self->{is_xml} ? 0 : 0x0020)), |
738 |
value => '', |
value => '', |
739 |
line => $self->{line}, column => $self->{column}}; |
line => $self->{line}, column => $self->{column}}; |
740 |
$self->{state} = ATTRIBUTE_NAME_STATE; |
$self->{state} = ATTRIBUTE_NAME_STATE; |
835 |
} elsif (0x0041 <= $self->{nc} and |
} elsif (0x0041 <= $self->{nc} and |
836 |
$self->{nc} <= 0x005A) { # A..Z |
$self->{nc} <= 0x005A) { # A..Z |
837 |
!!!cp (63); |
!!!cp (63); |
838 |
$self->{ca}->{name} .= chr ($self->{nc} + 0x0020); |
$self->{ca}->{name} |
839 |
|
.= chr ($self->{nc} + ($self->{is_xml} ? 0 : 0x0020)); |
840 |
## Stay in the state |
## Stay in the state |
841 |
!!!next-input-character; |
!!!next-input-character; |
842 |
redo A; |
redo A; |
920 |
$self->{nc} <= 0x005A) { # A..Z |
$self->{nc} <= 0x005A) { # A..Z |
921 |
!!!cp (76); |
!!!cp (76); |
922 |
$self->{ca} |
$self->{ca} |
923 |
= {name => chr ($self->{nc} + 0x0020), |
= {name => chr ($self->{nc} + ($self->{is_xml} ? 0 : 0x0020)), |
924 |
value => '', |
value => '', |
925 |
line => $self->{line}, column => $self->{column}}; |
line => $self->{line}, column => $self->{column}}; |
926 |
$self->{state} = ATTRIBUTE_NAME_STATE; |
$self->{state} = ATTRIBUTE_NAME_STATE; |