Changeset 61793
- Timestamp:
- 03/03/2026 01:10:51 PM (39 hours ago)
- Location:
- trunk/src/wp-includes/html-api
- Files:
-
- 7 edited
-
class-wp-html-active-formatting-elements.php (modified) (1 diff)
-
class-wp-html-attribute-token.php (modified) (1 diff)
-
class-wp-html-open-elements.php (modified) (1 diff)
-
class-wp-html-processor-state.php (modified) (1 diff)
-
class-wp-html-processor.php (modified) (40 diffs)
-
class-wp-html-stack-event.php (modified) (1 diff)
-
class-wp-html-tag-processor.php (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php
r58779 r61793 30 30 * 31 31 * @access private 32 32 33 * 33 34 * @see https://html.spec.whatwg.org/#list-of-active-formatting-elements -
trunk/src/wp-includes/html-api/class-wp-html-attribute-token.php
r57179 r61793 15 15 * 16 16 * @access private 17 18 17 19 * @since 6.2.0 18 20 * @since 6.5.0 Replaced `end` with `length` to more closely match `substr()`. -
trunk/src/wp-includes/html-api/class-wp-html-open-elements.php
r61624 r61793 24 24 * 25 25 * @access private 26 26 27 * 27 28 * @see https://html.spec.whatwg.org/#stack-of-open-elements -
trunk/src/wp-includes/html-api/class-wp-html-processor-state.php
r59463 r61793 17 17 * 18 18 * @access private 19 19 20 * 20 21 * @see WP_HTML_Processor -
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r61792 r61793 584 584 * 585 585 * @since 6.7.0 586 586 587 * 587 588 * @param string $message Explains support is missing in order to parse the current node. … … 792 793 * 793 794 * @since 6.7.2 Added for internal support. 794 * 795 * @access private 795 * @ignore 796 796 * 797 797 * @return bool … … 882 882 * 883 883 * @since 6.6.0 884 884 885 * 885 886 * @return bool Whether the current token is virtual. … … 1489 1490 * 1490 1491 * @since 6.7.0 1492 1491 1493 * 1492 1494 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 1560 1562 * 1561 1563 * @since 6.7.0 1564 1562 1565 * 1563 1566 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 1657 1660 * 1658 1661 * @since 6.7.0 1662 1659 1663 * 1660 1664 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 1754 1758 * 1755 1759 * @since 6.7.0 1760 1756 1761 * 1757 1762 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 1976 1981 * 1977 1982 * @since 6.7.0 1983 1978 1984 * 1979 1985 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 2079 2085 * 2080 2086 * @since 6.7.0 2087 2081 2088 * 2082 2089 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 2223 2230 * 2224 2231 * @since 6.4.0 2232 2225 2233 * 2226 2234 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 3248 3256 * 3249 3257 * @since 6.7.0 3258 3250 3259 * 3251 3260 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 3504 3513 * 3505 3514 * @since 6.7.0 Stub implementation. 3515 3506 3516 * 3507 3517 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 3523 3533 * 3524 3534 * @since 6.7.0 3535 3525 3536 * 3526 3537 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 3607 3618 * 3608 3619 * @since 6.7.0 3620 3609 3621 * 3610 3622 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 3714 3726 * 3715 3727 * @since 6.7.0 3728 3716 3729 * 3717 3730 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 3817 3830 * 3818 3831 * @since 6.7.0 3832 3819 3833 * 3820 3834 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 3927 3941 * 3928 3942 * @since 6.7.0 3943 3929 3944 * 3930 3945 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 4031 4046 * 4032 4047 * @since 6.7.0 4048 4033 4049 * 4034 4050 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 4206 4222 * 4207 4223 * @since 6.7.0 4224 4208 4225 * 4209 4226 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 4270 4287 * 4271 4288 * @since 6.7.0 4289 4272 4290 * 4273 4291 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 4399 4417 * 4400 4418 * @since 6.7.0 4419 4401 4420 * 4402 4421 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 4488 4507 * 4489 4508 * @since 6.7.0 4509 4490 4510 * 4491 4511 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 4607 4627 * 4608 4628 * @since 6.7.0 4629 4609 4630 * 4610 4631 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 4692 4713 * 4693 4714 * @since 6.7.0 4715 4694 4716 * 4695 4717 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 4755 4777 * 4756 4778 * @since 6.7.0 4779 4757 4780 * 4758 4781 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 4823 4846 * 4824 4847 * @since 6.7.0 4848 4825 4849 * 4826 4850 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 5144 5168 * @since 6.4.0 5145 5169 * @since 6.5.0 Renamed from bookmark_tag() to bookmark_token(). 5170 5146 5171 * 5147 5172 * @throws Exception When unable to allocate requested bookmark. … … 5797 5822 * 5798 5823 * @since 6.4.0 5824 5799 5825 * 5800 5826 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 5812 5838 * @since 6.4.0 5813 5839 * @since 6.7.0 Full spec support. 5840 5814 5841 * 5815 5842 * @see https://html.spec.whatwg.org/#generate-implied-end-tags … … 5849 5876 * @since 6.4.0 5850 5877 * @since 6.7.0 Full spec support. 5878 5851 5879 * 5852 5880 * @see WP_HTML_Processor::generate_implied_end_tags … … 5891 5919 * 5892 5920 * @since 6.7.0 5921 5893 5922 * 5894 5923 * @return WP_HTML_Token|null The adjusted current node. … … 5910 5939 * 5911 5940 * @since 6.4.0 5941 5912 5942 * 5913 5943 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 5952 5982 * 5953 5983 * @since 6.7.0 5984 5954 5985 * 5955 5986 * @see https://html.spec.whatwg.org/multipage/parsing.html#reset-the-insertion-mode-appropriately … … 6144 6175 * 6145 6176 * @since 6.4.0 6177 6146 6178 * 6147 6179 * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. … … 6261 6293 * 6262 6294 * @since 6.7.0 6295 6263 6296 */ 6264 6297 private function close_cell(): void { … … 6279 6312 * 6280 6313 * @since 6.4.0 6314 6281 6315 * 6282 6316 * @see https://html.spec.whatwg.org/#insert-a-foreign-element … … 6292 6326 * 6293 6327 * @since 6.7.0 6328 6294 6329 * 6295 6330 * @see https://html.spec.whatwg.org/#insert-a-foreign-element … … 6331 6366 * 6332 6367 * @since 6.7.0 6368 6333 6369 * 6334 6370 * @throws Exception When unable to allocate a bookmark for the next token in the input HTML document. … … 6358 6394 * 6359 6395 * @since 6.7.0 6396 6360 6397 * 6361 6398 * @see https://html.spec.whatwg.org/#mathml-text-integration-point … … 6394 6431 * 6395 6432 * @since 6.7.0 6433 6396 6434 * 6397 6435 * @see https://html.spec.whatwg.org/#html-integration-point -
trunk/src/wp-includes/html-api/class-wp-html-stack-event.php
r58769 r61793 14 14 * 15 15 * @access private 16 17 16 18 * @since 6.6.0 17 19 * -
trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php
r61754 r61793 946 946 * 947 947 * @since 6.5.0 948 * 949 * @access private 948 * @ignore 950 949 * 951 950 * @return bool Whether a token was parsed. … … 1383 1382 * 1384 1383 * @since 6.3.2 1384 1385 1385 * 1386 1386 * @see https://html.spec.whatwg.org/#generic-raw-text-element-parsing-algorithm … … 1402 1402 * 1403 1403 * @since 6.2.0 1404 1404 1405 * 1405 1406 * @see https://html.spec.whatwg.org/multipage/parsing.html#rcdata-state … … 1493 1494 * 1494 1495 * @since 6.2.0 1496 1495 1497 * 1496 1498 * @return bool Whether the script tag was closed before the end of the document. … … 1702 1704 * @since 6.2.0 1703 1705 * @since 6.2.1 Support abruptly-closed comments, invalid-tag-closer-comments, and empty elements. 1706 1704 1707 * 1705 1708 * @return bool Whether a tag was found before the end of the document. … … 2123 2126 * 2124 2127 * @since 6.2.0 2128 2125 2129 * 2126 2130 * @return bool Whether an attribute was found before the end of the document. … … 2260 2264 * 2261 2265 * @since 6.2.0 2266 2262 2267 */ 2263 2268 private function skip_whitespace(): void { … … 2269 2274 * 2270 2275 * @since 6.2.0 2276 2271 2277 */ 2272 2278 private function after_tag(): void { … … 2328 2334 * 2329 2335 * @since 6.2.0 2336 2330 2337 * 2331 2338 * @see WP_HTML_Tag_Processor::$lexical_updates … … 2491 2498 * @since 6.2.1 Accumulates shift for internal cursor and passed pointer. 2492 2499 * @since 6.3.0 Invalidate any bookmarks whose targets are overwritten. 2500 2493 2501 * 2494 2502 * @param int $shift_this_point Accumulate and return shift for this position. … … 2648 2656 * 2649 2657 * @since 6.2.0 2658 2650 2659 * 2651 2660 * @param WP_HTML_Text_Replacement $a First attribute update. … … 2681 2690 * 2682 2691 * @since 6.2.0 2692 2683 2693 * 2684 2694 * @param string $comparable_name The attribute name in its comparable form. … … 3927 3937 * 3928 3938 * @since 7.0.0 3939 3929 3940 * 3930 3941 * @return 'javascript'|'json'|null Type of script element content if matched and recognized. … … 4200 4211 * 4201 4212 * @since 7.0.0 4213 4202 4214 * 4203 4215 * @param string $sourcecode Raw contents intended to be serialized into an HTML SCRIPT element. … … 4665 4677 * 4666 4678 * @since 6.2.0 4679 4667 4680 * 4668 4681 * @param array|string|null $query { … … 4731 4744 * 4732 4745 * @since 6.2.0 4746 4733 4747 * 4734 4748 * @return bool Whether the given tag and its attribute match the search criteria.
Note: See TracChangeset
for help on using the changeset viewer.