@@ 3229-3234 (lines=6) @@ | ||
3226 | $token['name'] === 'option') { |
|
3227 | /* If the current node is an option element, act as if an end tag |
|
3228 | with the tag name "option" had been seen. */ |
|
3229 | if(end($this->stack)->nodeName === 'option') { |
|
3230 | $this->inSelect(array( |
|
3231 | 'name' => 'option', |
|
3232 | 'type' => HTML5::ENDTAG |
|
3233 | )); |
|
3234 | } |
|
3235 | ||
3236 | /* Insert an HTML element for the token. */ |
|
3237 | $this->insertElement($token); |
|
@@ 3244-3249 (lines=6) @@ | ||
3241 | $token['name'] === 'optgroup') { |
|
3242 | /* If the current node is an option element, act as if an end tag |
|
3243 | with the tag name "option" had been seen. */ |
|
3244 | if(end($this->stack)->nodeName === 'option') { |
|
3245 | $this->inSelect(array( |
|
3246 | 'name' => 'option', |
|
3247 | 'type' => HTML5::ENDTAG |
|
3248 | )); |
|
3249 | } |
|
3250 | ||
3251 | /* If the current node is an optgroup element, act as if an end tag |
|
3252 | with the tag name "optgroup" had been seen. */ |
|
@@ 3253-3258 (lines=6) @@ | ||
3250 | ||
3251 | /* If the current node is an optgroup element, act as if an end tag |
|
3252 | with the tag name "optgroup" had been seen. */ |
|
3253 | if(end($this->stack)->nodeName === 'optgroup') { |
|
3254 | $this->inSelect(array( |
|
3255 | 'name' => 'optgroup', |
|
3256 | 'type' => HTML5::ENDTAG |
|
3257 | )); |
|
3258 | } |
|
3259 | ||
3260 | /* Insert an HTML element for the token. */ |
|
3261 | $this->insertElement($token); |