@@ 889-900 (lines=12) @@ | ||
886 | $this->char--; |
|
887 | $this->state = 'data'; |
|
888 | ||
889 | } else { |
|
890 | /* Anything else |
|
891 | Start a new attribute in the current tag token. Set that attribute's |
|
892 | name to the current input character, and its value to the empty string. |
|
893 | Switch to the attribute name state. */ |
|
894 | $this->token['attr'][] = array( |
|
895 | 'name' => strtolower($char), |
|
896 | 'value' => null |
|
897 | ); |
|
898 | ||
899 | $this->state = 'attributeName'; |
|
900 | } |
|
901 | } |
|
902 | ||
903 | private function attributeNameState() |
|
@@ 996-1007 (lines=12) @@ | ||
993 | $this->char--; |
|
994 | $this->state = 'data'; |
|
995 | ||
996 | } else { |
|
997 | /* Anything else |
|
998 | Start a new attribute in the current tag token. Set that attribute's |
|
999 | name to the current input character, and its value to the empty string. |
|
1000 | Switch to the attribute name state. */ |
|
1001 | $this->token['attr'][] = array( |
|
1002 | 'name' => strtolower($char), |
|
1003 | 'value' => null |
|
1004 | ); |
|
1005 | ||
1006 | $this->state = 'attributeName'; |
|
1007 | } |
|
1008 | } |
|
1009 | ||
1010 | private function beforeAttributeValueState() |