@@ 2357-2360 (lines=4) @@ | ||
2354 | ||
2355 | private function inHeadMode( $token, $value, $attribs = null, $selfClose = false ) { |
|
2356 | if ( $token === 'text' ) { |
|
2357 | if ( preg_match( '/^[\x09\x0A\x0C\x0D\x20]+/', $value, $matches ) ) { |
|
2358 | $this->stack->insertText( $matches[0] ); |
|
2359 | $value = substr( $value, strlen( $matches[0] ) ); |
|
2360 | } |
|
2361 | if ( strlen( $value ) === 0 ) { |
|
2362 | return true; // All text handled. |
|
2363 | } |
|
@@ 3134-3137 (lines=4) @@ | ||
3131 | ||
3132 | private function inColumnGroupMode( $token, $value, $attribs = null, $selfClose = false ) { |
|
3133 | if ( $token === 'text' ) { |
|
3134 | if ( preg_match( '/^[\x09\x0A\x0C\x0D\x20]+/', $value, $matches ) ) { |
|
3135 | $this->stack->insertText( $matches[0] ); |
|
3136 | $value = substr( $value, strlen( $matches[0] ) ); |
|
3137 | } |
|
3138 | if ( strlen( $value ) === 0 ) { |
|
3139 | return true; // All text handled. |
|
3140 | } |