| @@ 4056-4063 (lines=8) @@ | ||
| 4053 | ) { |
|
| 4054 | /* If the current node is an option element, act as if an end tag |
|
| 4055 | with the tag name "option" had been seen. */ |
|
| 4056 | if (end($this->stack)->nodeName === 'option') { |
|
| 4057 | $this->inSelect( |
|
| 4058 | array( |
|
| 4059 | 'name' => 'option', |
|
| 4060 | 'type' => HTML5::ENDTAG |
|
| 4061 | ) |
|
| 4062 | ); |
|
| 4063 | } |
|
| 4064 | ||
| 4065 | /* Insert an HTML element for the token. */ |
|
| 4066 | $this->insertElement($token); |
|
| @@ 4074-4081 (lines=8) @@ | ||
| 4071 | ) { |
|
| 4072 | /* If the current node is an option element, act as if an end tag |
|
| 4073 | with the tag name "option" had been seen. */ |
|
| 4074 | if (end($this->stack)->nodeName === 'option') { |
|
| 4075 | $this->inSelect( |
|
| 4076 | array( |
|
| 4077 | 'name' => 'option', |
|
| 4078 | 'type' => HTML5::ENDTAG |
|
| 4079 | ) |
|
| 4080 | ); |
|
| 4081 | } |
|
| 4082 | ||
| 4083 | /* If the current node is an optgroup element, act as if an end tag |
|
| 4084 | with the tag name "optgroup" had been seen. */ |
|
| @@ 4085-4092 (lines=8) @@ | ||
| 4082 | ||
| 4083 | /* If the current node is an optgroup element, act as if an end tag |
|
| 4084 | with the tag name "optgroup" had been seen. */ |
|
| 4085 | if (end($this->stack)->nodeName === 'optgroup') { |
|
| 4086 | $this->inSelect( |
|
| 4087 | array( |
|
| 4088 | 'name' => 'optgroup', |
|
| 4089 | 'type' => HTML5::ENDTAG |
|
| 4090 | ) |
|
| 4091 | ); |
|
| 4092 | } |
|
| 4093 | ||
| 4094 | /* Insert an HTML element for the token. */ |
|
| 4095 | $this->insertElement($token); |
|