@@ 3087-3101 (lines=15) @@ | ||
3084 | ||
3085 | private function inCaptionMode( $token, $value, $attribs = null, $selfClose = false ) { |
|
3086 | if ( $token === 'tag' ) { |
|
3087 | switch ( $value ) { |
|
3088 | case 'caption': |
|
3089 | case 'col': |
|
3090 | case 'colgroup': |
|
3091 | case 'tbody': |
|
3092 | case 'td': |
|
3093 | case 'tfoot': |
|
3094 | case 'th': |
|
3095 | case 'thead': |
|
3096 | case 'tr': |
|
3097 | if ( $this->endCaption() ) { |
|
3098 | $this->insertToken( $token, $value, $attribs, $selfClose ); |
|
3099 | } |
|
3100 | return true; |
|
3101 | } |
|
3102 | // Fall through to "anything else" case. |
|
3103 | } elseif ( $token === 'endtag' ) { |
|
3104 | switch ( $value ) { |
|
@@ 3330-3344 (lines=15) @@ | ||
3327 | } |
|
3328 | private function inCellMode( $token, $value, $attribs = null, $selfClose = false ) { |
|
3329 | if ( $token === 'tag' ) { |
|
3330 | switch ( $value ) { |
|
3331 | case 'caption': |
|
3332 | case 'col': |
|
3333 | case 'colgroup': |
|
3334 | case 'tbody': |
|
3335 | case 'td': |
|
3336 | case 'tfoot': |
|
3337 | case 'th': |
|
3338 | case 'thead': |
|
3339 | case 'tr': |
|
3340 | if ( $this->endCell() ) { |
|
3341 | $this->insertToken( $token, $value, $attribs, $selfClose ); |
|
3342 | } |
|
3343 | return true; |
|
3344 | } |
|
3345 | } elseif ( $token === 'endtag' ) { |
|
3346 | switch ( $value ) { |
|
3347 | case 'td': |