- Timestamp:
- 05/05/2023 12:41:29 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php
r55723 r55724 254 254 * any given time. 255 255 * 256 * @see set_bookmark()257 256 * @since 6.2.0 258 257 * @var int 258 * 259 * @see WP_HTML_Tag_Processor::set_bookmark() 259 260 */ 260 261 const MAX_BOOKMARKS = 10; … … 264 265 * Prevents accidental infinite loops. 265 266 * 266 * @see seek()267 267 * @since 6.2.0 268 268 * @var int 269 * 270 * @see WP_HTML_Tag_Processor::seek() 269 271 */ 270 272 const MAX_SEEK_OPS = 1000; … … 499 501 * Tracks and limits `seek()` calls to prevent accidental infinite loops. 500 502 * 501 * @see seek502 503 * @since 6.2.0 503 504 * @var int 505 * 506 * @see WP_HTML_Tag_Processor::seek() 504 507 */ 505 508 protected $seek_count = 0; … … 721 724 * Skips contents of title and textarea tags. 722 725 * 726 * @since 6.2.0 727 * 723 728 * @see https://html.spec.whatwg.org/multipage/parsing.html#rcdata-state 724 * @since 6.2.0725 729 * 726 730 * @param string $tag_name – the lowercase tag name which will close the RCDATA region. … … 1282 1286 * (they are accumulated in different data formats for performance). 1283 1287 * 1284 * @s ee $lexical_updates1285 * @see $classname_updates1286 * 1287 * @s ince 6.2.01288 * @since 6.2.0 1289 * 1290 * @see WP_HTML_Tag_Processor::$lexical_updates 1291 * @see WP_HTML_Tag_Processor::$classname_updates 1288 1292 * 1289 1293 * @return void … … 1741 1745 * - HTML 5 spec 1742 1746 * 1743 * @see https://html.spec.whatwg.org/multipage/syntax.html#attributes-2:ascii-case-insensitive1744 *1745 1747 * Example: 1746 1748 * ```php … … 1755 1757 * @since 6.2.0 1756 1758 * 1759 * @see https://html.spec.whatwg.org/multipage/syntax.html#attributes-2:ascii-case-insensitive 1760 * 1757 1761 * @param string $prefix Prefix of requested attribute names. 1758 1762 * @return array|null List of attribute names, or `null` when no tag opener is matched. … … 1779 1783 * Example: 1780 1784 * ```php 1781 * $p = new WP_HTML_Tag_Processor( '< DIV CLASS="test">Test</DIV>' );1785 * $p = new WP_HTML_Tag_Processor( '<div class="test">Test</div>' ); 1782 1786 * $p->next_tag() === true; 1783 1787 * $p->get_tag() === 'DIV'; … … 2096 2100 * 2097 2101 * @since 6.2.0 2098 * @see get_updated_html 2102 * 2103 * @see WP_HTML_Tag_Processor::get_updated_html() 2099 2104 * 2100 2105 * @return string The processed HTML.
Note: See TracChangeset
for help on using the changeset viewer.