Returns whether a particular element is in button scope.
Description
The stack of open elements is said to have a particular element in button scope when it has that element in the specific scope consisting of the following element types:
- All the element types listed above for the has an element in scope algorithm.
- button in the HTML namespace
See also
Parameters
$tag_namestringrequired- Name of tag to check.
Source
public function has_element_in_button_scope( string $tag_name ): bool {
return $this->has_element_in_specific_scope(
$tag_name,
array(
'APPLET',
'BUTTON',
'CAPTION',
'HTML',
'TABLE',
'TD',
'TH',
'MARQUEE',
'OBJECT',
'TEMPLATE',
'math MI',
'math MO',
'math MN',
'math MS',
'math MTEXT',
'math ANNOTATION-XML',
'svg FOREIGNOBJECT',
'svg DESC',
'svg TITLE',
)
);
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.