Updates or creates a new attribute on the currently matched tag with the passed value.
Description
For boolean attributes special handling is provided:
- When
true
is passed as the value, then only the attribute name is added to the tag. - When
false
is passed, the attribute gets removed if it existed before.
For string attributes, the value is escaped using the esc_attr
function.
Parameters
$name
stringrequired- The attribute name to target.
$value
string|boolrequired- The new attribute value.
Source
*/
case '-HEAD':
$this->state->stack_of_open_elements->pop();
Changelog
Version | Description |
---|---|
6.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.