| @@ 2845-2859 (lines=15) @@ | ||
| 2842 | ||
| 2843 | private function inCaptionMode( $token, $value, $attribs = null, $selfclose = false ) { |
|
| 2844 | if ( $token === 'tag' ) { |
|
| 2845 | switch ( $value ) { |
|
| 2846 | case 'caption': |
|
| 2847 | case 'col': |
|
| 2848 | case 'colgroup': |
|
| 2849 | case 'tbody': |
|
| 2850 | case 'td': |
|
| 2851 | case 'tfoot': |
|
| 2852 | case 'th': |
|
| 2853 | case 'thead': |
|
| 2854 | case 'tr': |
|
| 2855 | if ( $this->endCaption() ) { |
|
| 2856 | $this->insertToken( $token, $value, $attribs, $selfclose ); |
|
| 2857 | } |
|
| 2858 | return true; |
|
| 2859 | } |
|
| 2860 | // Fall through to "anything else" case. |
|
| 2861 | } elseif ( $token === 'endtag' ) { |
|
| 2862 | switch ( $value ) { |
|
| @@ 3085-3099 (lines=15) @@ | ||
| 3082 | } |
|
| 3083 | private function inCellMode( $token, $value, $attribs = null, $selfclose = false ) { |
|
| 3084 | if ( $token === 'tag' ) { |
|
| 3085 | switch ( $value ) { |
|
| 3086 | case 'caption': |
|
| 3087 | case 'col': |
|
| 3088 | case 'colgroup': |
|
| 3089 | case 'tbody': |
|
| 3090 | case 'td': |
|
| 3091 | case 'tfoot': |
|
| 3092 | case 'th': |
|
| 3093 | case 'thead': |
|
| 3094 | case 'tr': |
|
| 3095 | if ( $this->endCell() ) { |
|
| 3096 | $this->insertToken( $token, $value, $attribs, $selfclose ); |
|
| 3097 | } |
|
| 3098 | return true; |
|
| 3099 | } |
|
| 3100 | } elseif ( $token === 'endtag' ) { |
|
| 3101 | switch ( $value ) { |
|
| 3102 | case 'td': |
|