| @@ 2475-2483 (lines=9) @@ | ||
| 2472 | case 'h3': |
|
| 2473 | case 'h4': |
|
| 2474 | case 'h5': |
|
| 2475 | case 'h6': |
|
| 2476 | if ( $this->stack->inButtonScope( 'p' ) ) { |
|
| 2477 | $this->inBodyMode( 'endtag', 'p' ); |
|
| 2478 | } |
|
| 2479 | if ( $this->stack->currentNode->isA( BalanceSets::$headingSet ) ) { |
|
| 2480 | $this->stack->pop(); |
|
| 2481 | } |
|
| 2482 | $this->stack->insertHTMLElement( $value, $attribs ); |
|
| 2483 | return true; |
|
| 2484 | ||
| 2485 | case 'pre': |
|
| 2486 | case 'listing': |
|
| @@ 2696-2702 (lines=7) @@ | ||
| 2693 | } |
|
| 2694 | ||
| 2695 | case 'optgroup': |
|
| 2696 | case 'option': |
|
| 2697 | if ( $this->stack->currentNode->isHtmlNamed( 'option' ) ) { |
|
| 2698 | $this->inBodyMode( 'endtag', 'option' ); |
|
| 2699 | } |
|
| 2700 | $this->afe->reconstruct( $this->stack ); |
|
| 2701 | $this->stack->insertHTMLElement( $value, $attribs ); |
|
| 2702 | return true; |
|
| 2703 | ||
| 2704 | case 'rb': |
|
| 2705 | case 'rtc': |
|
| @@ 3383-3391 (lines=9) @@ | ||
| 3380 | } |
|
| 3381 | $this->stack->insertHTMLElement( $value, $attribs ); |
|
| 3382 | return true; |
|
| 3383 | case 'optgroup': |
|
| 3384 | if ( $this->stack->currentNode->isHtmlNamed( 'option' ) ) { |
|
| 3385 | $this->stack->pop(); |
|
| 3386 | } |
|
| 3387 | if ( $this->stack->currentNode->isHtmlNamed( 'optgroup' ) ) { |
|
| 3388 | $this->stack->pop(); |
|
| 3389 | } |
|
| 3390 | $this->stack->insertHTMLElement( $value, $attribs ); |
|
| 3391 | return true; |
|
| 3392 | case 'select': |
|
| 3393 | $this->inSelectMode( 'endtag', $value ); // treat it like endtag |
|
| 3394 | return true; |
|