@@ 4041-4048 (lines=8) @@ | ||
4038 | ) { |
|
4039 | /* If the current node is an option element, act as if an end tag |
|
4040 | with the tag name "option" had been seen. */ |
|
4041 | if (end($this->stack)->nodeName === 'option') { |
|
4042 | $this->inSelect( |
|
4043 | array( |
|
4044 | 'name' => 'option', |
|
4045 | 'type' => HTML5::ENDTAG |
|
4046 | ) |
|
4047 | ); |
|
4048 | } |
|
4049 | ||
4050 | /* Insert an HTML element for the token. */ |
|
4051 | $this->insertElement($token); |
|
@@ 4059-4066 (lines=8) @@ | ||
4056 | ) { |
|
4057 | /* If the current node is an option element, act as if an end tag |
|
4058 | with the tag name "option" had been seen. */ |
|
4059 | if (end($this->stack)->nodeName === 'option') { |
|
4060 | $this->inSelect( |
|
4061 | array( |
|
4062 | 'name' => 'option', |
|
4063 | 'type' => HTML5::ENDTAG |
|
4064 | ) |
|
4065 | ); |
|
4066 | } |
|
4067 | ||
4068 | /* If the current node is an optgroup element, act as if an end tag |
|
4069 | with the tag name "optgroup" had been seen. */ |
|
@@ 4070-4077 (lines=8) @@ | ||
4067 | ||
4068 | /* If the current node is an optgroup element, act as if an end tag |
|
4069 | with the tag name "optgroup" had been seen. */ |
|
4070 | if (end($this->stack)->nodeName === 'optgroup') { |
|
4071 | $this->inSelect( |
|
4072 | array( |
|
4073 | 'name' => 'optgroup', |
|
4074 | 'type' => HTML5::ENDTAG |
|
4075 | ) |
|
4076 | ); |
|
4077 | } |
|
4078 | ||
4079 | /* Insert an HTML element for the token. */ |
|
4080 | $this->insertElement($token); |