| @@ 787-801 (lines=15) @@ | ||
| 784 | Parse error. Switch to the data state. */ |
|
| 785 | $this->state = 'data'; |
|
| 786 | ||
| 787 | } elseif ($this->char === $this->EOF) { |
|
| 788 | /* EOF |
|
| 789 | Parse error. Emit a U+003C LESS-THAN SIGN character token and a U+002F |
|
| 790 | SOLIDUS character token. Reconsume the EOF character in the data state. */ |
|
| 791 | $this->emitToken( |
|
| 792 | array( |
|
| 793 | 'type' => self::CHARACTR, |
|
| 794 | 'data' => '</' |
|
| 795 | ) |
|
| 796 | ); |
|
| 797 | ||
| 798 | $this->char--; |
|
| 799 | $this->state = 'data'; |
|
| 800 | ||
| 801 | } else { |
|
| 802 | /* Parse error. Switch to the bogus comment state. */ |
|
| 803 | $this->state = 'bogusComment'; |
|
| 804 | } |
|
| @@ 1365-1377 (lines=13) @@ | ||
| 1362 | ||
| 1363 | $this->state = 'data'; |
|
| 1364 | ||
| 1365 | } elseif ($this->char === $this->EOF) { |
|
| 1366 | $this->emitToken( |
|
| 1367 | array( |
|
| 1368 | 'name' => null, |
|
| 1369 | 'type' => self::DOCTYPE, |
|
| 1370 | 'error' => true |
|
| 1371 | ) |
|
| 1372 | ); |
|
| 1373 | ||
| 1374 | $this->char--; |
|
| 1375 | $this->state = 'data'; |
|
| 1376 | ||
| 1377 | } else { |
|
| 1378 | $this->token = array( |
|
| 1379 | 'name' => $char, |
|
| 1380 | 'type' => self::DOCTYPE, |
|