Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5973598
AfterFrameset.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
AfterFrameset.php
View Options
<?php
namespace
Wikimedia\RemexHtml\TreeBuilder
;
use
Wikimedia\RemexHtml\Tokenizer\Attributes
;
/**
* The "after frameset" insertion mode
*/
class
AfterFrameset
extends
InsertionMode
{
public
function
characters
(
$text
,
$start
,
$length
,
$sourceStart
,
$sourceLength
)
{
$this
->
handleFramesetWhitespace
(
false
,
$text
,
$start
,
$length
,
$sourceStart
,
$sourceLength
);
}
public
function
startTag
(
$name
,
Attributes
$attrs
,
$selfClose
,
$sourceStart
,
$sourceLength
)
{
$builder
=
$this
->
builder
;
$dispatcher
=
$this
->
dispatcher
;
switch
(
$name
)
{
case
'html'
:
$dispatcher
->
inBody
->
startTag
(
$name
,
$attrs
,
$selfClose
,
$sourceStart
,
$sourceLength
);
break
;
case
'noframes'
:
$dispatcher
->
inHead
->
startTag
(
$name
,
$attrs
,
$selfClose
,
$sourceStart
,
$sourceLength
);
break
;
default
:
$builder
->
error
(
"unexpected start tag after frameset, ignoring"
,
$sourceStart
);
return
;
}
}
public
function
endTag
(
$name
,
$sourceStart
,
$sourceLength
)
{
$builder
=
$this
->
builder
;
$dispatcher
=
$this
->
dispatcher
;
switch
(
$name
)
{
case
'html'
:
$dispatcher
->
switchMode
(
Dispatcher
::
AFTER_AFTER_FRAMESET
);
break
;
default
:
$builder
->
error
(
"unexpected end tag after frameset, ignoring"
,
$sourceStart
);
}
}
public
function
endDocument
(
$pos
)
{
$this
->
builder
->
stopParsing
(
$pos
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 16:45 (4 h, 9 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a6/aa/45b42a6b8807a394d221d01e6222
Default Alt Text
AfterFrameset.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment