@@ -344,8 +344,8 @@ discard block |
||
| 344 | 344 | } |
| 345 | 345 | |
| 346 | 346 | if ($this->onlyInline && Elements::isA($lname, Elements::BLOCK_TAG)) { |
| 347 | - $this->autoclose($this->onlyInline); |
|
| 348 | - $this->onlyInline = null; |
|
| 347 | + $this->autoclose($this->onlyInline); |
|
| 348 | + $this->onlyInline = null; |
|
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | try { |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | } |
| 376 | 376 | |
| 377 | 377 | if (Elements::isA($lname, Elements::BLOCK_ONLY_INLINE)) { |
| 378 | - $this->onlyInline = $lname; |
|
| 378 | + $this->onlyInline = $lname; |
|
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | // When we add some namespacess, we have to track them. Later, when "endElement" is invoked, we have to remove them. |
@@ -323,13 +323,9 @@ |
||
| 323 | 323 | if ($tok == '-' && $this->scanner->peek() == '-') { |
| 324 | 324 | $this->scanner->consume(2); |
| 325 | 325 | return $this->comment(); |
| 326 | - } |
|
| 327 | - |
|
| 328 | - elseif ($tok == 'D' || $tok == 'd') { // Doctype |
|
| 326 | + } elseif ($tok == 'D' || $tok == 'd') { // Doctype |
|
| 329 | 327 | return $this->doctype(); |
| 330 | - } |
|
| 331 | - |
|
| 332 | - elseif ($tok == '[') { // CDATA section |
|
| 328 | + } elseif ($tok == '[') { // CDATA section |
|
| 333 | 329 | return $this->cdataSection(); |
| 334 | 330 | } |
| 335 | 331 | |