|
@@ 2558-2565 (lines=8) @@
|
| 2555 |
|
|
| 2556 |
|
# OMITTED: <plaintext> |
| 2557 |
|
|
| 2558 |
|
case 'button': |
| 2559 |
|
if ( $this->stack->inScope( 'button' ) ) { |
| 2560 |
|
$this->inBodyMode( 'endtag', 'button' ); |
| 2561 |
|
return $this->insertToken( $token, $value, $attribs, $selfclose ); |
| 2562 |
|
} |
| 2563 |
|
$this->afe->reconstruct( $this->stack ); |
| 2564 |
|
$this->stack->insertHTMLElement( $value, $attribs ); |
| 2565 |
|
return true; |
| 2566 |
|
|
| 2567 |
|
case 'a': |
| 2568 |
|
$activeElement = $this->afe->findElementByTag( 'a' ); |
|
@@ 2831-2838 (lines=8) @@
|
| 2828 |
|
} |
| 2829 |
|
return true; |
| 2830 |
|
|
| 2831 |
|
case 'p': |
| 2832 |
|
if ( !$this->stack->inButtonScope( 'p' ) ) { |
| 2833 |
|
$this->inBodyMode( 'tag', 'p', [] ); |
| 2834 |
|
return $this->insertToken( $token, $value, $attribs, $selfclose ); |
| 2835 |
|
} |
| 2836 |
|
$this->stack->generateImpliedEndTags( $value ); |
| 2837 |
|
$this->stack->popTag( $value ); |
| 2838 |
|
return true; |
| 2839 |
|
|
| 2840 |
|
case 'li': |
| 2841 |
|
if ( !$this->stack->inListItemScope( $value ) ) { |