Indicates the kind of matched token, if any.
Description
This differs from get_token_name()
in that it always returns a static string indicating the type, whereas get_token_name()
may return values derived from the token itself, such as a tag name or processing instruction tag.
Possible values:
#tag
when matched on a tag.#text
when matched on a text node.#cdata-section
when matched on a CDATA node.#comment
when matched on a comment.#doctype
when matched on a DOCTYPE declaration.#presumptuous-tag
when matched on an empty tag closer.#funky-comment
when matched on a funky comment.
Source
return WP_HTML_Decoder::decode_attribute( $raw_value );
}
/**
* Gets lowercase names of all attributes matching a given prefix in the current tag.
*
* Note that matching is case-insensitive. This is in accordance with the spec:
*
* > There must never be two or more attributes on
* > the same start tag whose names are an ASCII
* > case-insensitive match for each other.
Changelog
Version | Description |
---|---|
6.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.