@@ 519-530 (lines=12) @@ | ||
516 | $this->char--; |
|
517 | $this->state = 'data'; |
|
518 | ||
519 | } else { |
|
520 | /* Anything else |
|
521 | Start a new attribute in the current tag token. Set that attribute's |
|
522 | name to the current input character, and its value to the empty string. |
|
523 | Switch to the attribute name state. */ |
|
524 | $this->token['attr'][] = array( |
|
525 | 'name' => strtolower($char), |
|
526 | 'value' => null |
|
527 | ); |
|
528 | ||
529 | $this->state = 'attributeName'; |
|
530 | } |
|
531 | } |
|
532 | ||
533 | private function attributeNameState() { |
|
@@ 624-635 (lines=12) @@ | ||
621 | $this->char--; |
|
622 | $this->state = 'data'; |
|
623 | ||
624 | } else { |
|
625 | /* Anything else |
|
626 | Start a new attribute in the current tag token. Set that attribute's |
|
627 | name to the current input character, and its value to the empty string. |
|
628 | Switch to the attribute name state. */ |
|
629 | $this->token['attr'][] = array( |
|
630 | 'name' => strtolower($char), |
|
631 | 'value' => null |
|
632 | ); |
|
633 | ||
634 | $this->state = 'attributeName'; |
|
635 | } |
|
636 | } |
|
637 | ||
638 | private function beforeAttributeValueState() { |