Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
AHandler | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
handle | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace Wikimedia\Parsoid\Html2Wt\DOMHandlers; |
5 | |
6 | use Wikimedia\Parsoid\DOM\Element; |
7 | use Wikimedia\Parsoid\DOM\Node; |
8 | use Wikimedia\Parsoid\Html2Wt\SerializerState; |
9 | |
10 | class AHandler extends DOMHandler { |
11 | |
12 | public function __construct() { |
13 | parent::__construct( false ); |
14 | } |
15 | |
16 | /** @inheritDoc */ |
17 | public function handle( |
18 | Element $node, SerializerState $state, bool $wrapperUnmodified = false |
19 | ): ?Node { |
20 | $state->serializer->linkHandler( $node ); |
21 | return $node->nextSibling; |
22 | } |
23 | |
24 | // TODO: Implement link tail escaping with nowiki in DOM handler! |
25 | } |