Closes elements that have implied end tags.
Description
See also
Parameters
$except_for_this_element
string|nulloptional- Perform as if this element doesn’t exist in the stack of open elements.
Default:
null
Source
/*
* > A comment token
*/
case '#comment':
case '#funky-comment':
case '#presumptuous-tag':
$this->insert_html_element( $this->state->current_token );
return true;
/*
* > A DOCTYPE token
*/
case 'html':
// Parse error: ignore the token.
return $this->step();
Changelog
Version | Description |
---|---|
6.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.