Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429404
HTMLPreHandler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
855 B
Referenced Files
None
Subscribers
None
HTMLPreHandler.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Html2Wt\DOMHandlers
;
use
Wikimedia\Parsoid\DOM\Element
;
use
Wikimedia\Parsoid\DOM\Node
;
use
Wikimedia\Parsoid\Html2Wt\SerializerState
;
class
HTMLPreHandler
extends
DOMHandler
{
public
function
__construct
()
{
parent
::
__construct
(
false
);
}
/** @inheritDoc */
public
function
handle
(
Element
$node
,
SerializerState
$state
,
bool
$wrapperUnmodified
=
false
):
?
Node
{
(
new
FallbackHTMLHandler
)->
handle
(
$node
,
$state
,
$wrapperUnmodified
);
return
$node
->
nextSibling
;
}
/** @inheritDoc */
public
function
firstChild
(
Node
$node
,
Node
$otherNode
,
SerializerState
$state
):
array
{
return
[
'max'
=>
PHP_INT_MAX
];
}
/** @inheritDoc */
public
function
lastChild
(
Node
$node
,
Node
$otherNode
,
SerializerState
$state
):
array
{
return
[
'max'
=>
PHP_INT_MAX
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 17:31 (10 h, 9 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
05/fa/3dc3884a12a0637fcea336f19548
Default Alt Text
HTMLPreHandler.php (855 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment