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