Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-inclu.../html-api
File: class-wp-html-processor-state.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* HTML API: WP_HTML_Processor_State class
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage HTML-API
[5] Fix | Delete
* @since 6.4.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Core class used by the HTML processor during HTML parsing
[10] Fix | Delete
* for managing the internal parsing state.
[11] Fix | Delete
*
[12] Fix | Delete
* This class is designed for internal use by the HTML processor.
[13] Fix | Delete
*
[14] Fix | Delete
* @since 6.4.0
[15] Fix | Delete
*
[16] Fix | Delete
* @access private
[17] Fix | Delete
*
[18] Fix | Delete
* @see WP_HTML_Processor
[19] Fix | Delete
*/
[20] Fix | Delete
class WP_HTML_Processor_State {
[21] Fix | Delete
/*
[22] Fix | Delete
* Insertion mode constants.
[23] Fix | Delete
*
[24] Fix | Delete
* These constants exist and are named to make it easier to
[25] Fix | Delete
* discover and recognize the supported insertion modes in
[26] Fix | Delete
* the parser.
[27] Fix | Delete
*
[28] Fix | Delete
* Out of all the possible insertion modes, only those
[29] Fix | Delete
* supported by the parser are listed here. As support
[30] Fix | Delete
* is added to the parser for more modes, add them here
[31] Fix | Delete
* following the same naming and value pattern.
[32] Fix | Delete
*
[33] Fix | Delete
* @see https://html.spec.whatwg.org/#the-insertion-mode
[34] Fix | Delete
*/
[35] Fix | Delete
[36] Fix | Delete
/**
[37] Fix | Delete
* Initial insertion mode for full HTML parser.
[38] Fix | Delete
*
[39] Fix | Delete
* @since 6.4.0
[40] Fix | Delete
*
[41] Fix | Delete
* @see https://html.spec.whatwg.org/#the-initial-insertion-mode
[42] Fix | Delete
* @see WP_HTML_Processor_State::$insertion_mode
[43] Fix | Delete
*
[44] Fix | Delete
* @var string
[45] Fix | Delete
*/
[46] Fix | Delete
const INSERTION_MODE_INITIAL = 'insertion-mode-initial';
[47] Fix | Delete
[48] Fix | Delete
/**
[49] Fix | Delete
* In body insertion mode for full HTML parser.
[50] Fix | Delete
*
[51] Fix | Delete
* @since 6.4.0
[52] Fix | Delete
*
[53] Fix | Delete
* @see https://html.spec.whatwg.org/#parsing-main-inbody
[54] Fix | Delete
* @see WP_HTML_Processor_State::$insertion_mode
[55] Fix | Delete
*
[56] Fix | Delete
* @var string
[57] Fix | Delete
*/
[58] Fix | Delete
const INSERTION_MODE_IN_BODY = 'insertion-mode-in-body';
[59] Fix | Delete
[60] Fix | Delete
/**
[61] Fix | Delete
* Tracks open elements while scanning HTML.
[62] Fix | Delete
*
[63] Fix | Delete
* This property is initialized in the constructor and never null.
[64] Fix | Delete
*
[65] Fix | Delete
* @since 6.4.0
[66] Fix | Delete
*
[67] Fix | Delete
* @see https://html.spec.whatwg.org/#stack-of-open-elements
[68] Fix | Delete
*
[69] Fix | Delete
* @var WP_HTML_Open_Elements
[70] Fix | Delete
*/
[71] Fix | Delete
public $stack_of_open_elements = null;
[72] Fix | Delete
[73] Fix | Delete
/**
[74] Fix | Delete
* Tracks open formatting elements, used to handle mis-nested formatting element tags.
[75] Fix | Delete
*
[76] Fix | Delete
* This property is initialized in the constructor and never null.
[77] Fix | Delete
*
[78] Fix | Delete
* @since 6.4.0
[79] Fix | Delete
*
[80] Fix | Delete
* @see https://html.spec.whatwg.org/#list-of-active-formatting-elements
[81] Fix | Delete
*
[82] Fix | Delete
* @var WP_HTML_Active_Formatting_Elements
[83] Fix | Delete
*/
[84] Fix | Delete
public $active_formatting_elements = null;
[85] Fix | Delete
[86] Fix | Delete
/**
[87] Fix | Delete
* Refers to the currently-matched tag, if any.
[88] Fix | Delete
*
[89] Fix | Delete
* @since 6.4.0
[90] Fix | Delete
*
[91] Fix | Delete
* @var WP_HTML_Token|null
[92] Fix | Delete
*/
[93] Fix | Delete
public $current_token = null;
[94] Fix | Delete
[95] Fix | Delete
/**
[96] Fix | Delete
* Tree construction insertion mode.
[97] Fix | Delete
*
[98] Fix | Delete
* @since 6.4.0
[99] Fix | Delete
*
[100] Fix | Delete
* @see https://html.spec.whatwg.org/#insertion-mode
[101] Fix | Delete
*
[102] Fix | Delete
* @var string
[103] Fix | Delete
*/
[104] Fix | Delete
public $insertion_mode = self::INSERTION_MODE_INITIAL;
[105] Fix | Delete
[106] Fix | Delete
/**
[107] Fix | Delete
* Context node initializing fragment parser, if created as a fragment parser.
[108] Fix | Delete
*
[109] Fix | Delete
* @since 6.4.0
[110] Fix | Delete
*
[111] Fix | Delete
* @see https://html.spec.whatwg.org/#concept-frag-parse-context
[112] Fix | Delete
*
[113] Fix | Delete
* @var [string, array]|null
[114] Fix | Delete
*/
[115] Fix | Delete
public $context_node = null;
[116] Fix | Delete
[117] Fix | Delete
/**
[118] Fix | Delete
* The frameset-ok flag indicates if a `FRAMESET` element is allowed in the current state.
[119] Fix | Delete
*
[120] Fix | Delete
* > The frameset-ok flag is set to "ok" when the parser is created. It is set to "not ok" after certain tokens are seen.
[121] Fix | Delete
*
[122] Fix | Delete
* @since 6.4.0
[123] Fix | Delete
*
[124] Fix | Delete
* @see https://html.spec.whatwg.org/#frameset-ok-flag
[125] Fix | Delete
*
[126] Fix | Delete
* @var bool
[127] Fix | Delete
*/
[128] Fix | Delete
public $frameset_ok = true;
[129] Fix | Delete
[130] Fix | Delete
/**
[131] Fix | Delete
* Constructor - creates a new and empty state value.
[132] Fix | Delete
*
[133] Fix | Delete
* @since 6.4.0
[134] Fix | Delete
*
[135] Fix | Delete
* @see WP_HTML_Processor
[136] Fix | Delete
*/
[137] Fix | Delete
public function __construct() {
[138] Fix | Delete
$this->stack_of_open_elements = new WP_HTML_Open_Elements();
[139] Fix | Delete
$this->active_formatting_elements = new WP_HTML_Active_Formatting_Elements();
[140] Fix | Delete
}
[141] Fix | Delete
}
[142] Fix | Delete
[143] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function