|
@@ 2016-2022 (lines=7) @@
|
| 2013 |
|
/* Create an element for the token and append the new element to the |
| 2014 |
|
node pointed to by the head element pointer, or, if that is null |
| 2015 |
|
(innerHTML case), to the current node. */ |
| 2016 |
|
if ($this->head_pointer !== null) { |
| 2017 |
|
$element = $this->insertElement($token, false); |
| 2018 |
|
$this->head_pointer->appendChild($element); |
| 2019 |
|
|
| 2020 |
|
} else { |
| 2021 |
|
$element = $this->insertElement($token); |
| 2022 |
|
} |
| 2023 |
|
|
| 2024 |
|
/* Switch the tokeniser's content model flag to the RCDATA state. */ |
| 2025 |
|
return HTML5::RCDATA; |
|
@@ 2032-2038 (lines=7) @@
|
| 2029 |
|
/* Create an element for the token and append the new element to the |
| 2030 |
|
node pointed to by the head element pointer, or, if that is null |
| 2031 |
|
(innerHTML case), to the current node. */ |
| 2032 |
|
if ($this->head_pointer !== null) { |
| 2033 |
|
$element = $this->insertElement($token, false); |
| 2034 |
|
$this->head_pointer->appendChild($element); |
| 2035 |
|
|
| 2036 |
|
} else { |
| 2037 |
|
$this->insertElement($token); |
| 2038 |
|
} |
| 2039 |
|
|
| 2040 |
|
/* Switch the tokeniser's content model flag to the CDATA state. */ |
| 2041 |
|
return HTML5::CDATA; |
|
@@ 2061-2068 (lines=8) @@
|
| 2058 |
|
/* Create an element for the token and append the new element to the |
| 2059 |
|
node pointed to by the head element pointer, or, if that is null |
| 2060 |
|
(innerHTML case), to the current node. */ |
| 2061 |
|
if ($this->head_pointer !== null) { |
| 2062 |
|
$element = $this->insertElement($token, false); |
| 2063 |
|
$this->head_pointer->appendChild($element); |
| 2064 |
|
array_pop($this->stack); |
| 2065 |
|
|
| 2066 |
|
} else { |
| 2067 |
|
$this->insertElement($token); |
| 2068 |
|
} |
| 2069 |
|
|
| 2070 |
|
/* An end tag with the tag name "head" */ |
| 2071 |
|
} elseif ($token['type'] === HTML5::ENDTAG && $token['name'] === 'head') { |