mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 07:05:37 +01:00
b5894d595e
The Tag Processor stores the byte-offsets into its HTML document where the current token starts and ends, and also for every bookmark. In some cases for tags, the end offset has been off by one. In this patch the offset is fixed so that a bookmark always properly refers to the full span of the token it's bookmarking. Also the current token byte offsets are properly recorded. While this is a defect in the Tag Processor, it hasn't been exposed through the public interface and has not affected any of the working of the processor. Only subclasses which rely on the length of a bookmark have been potentially affected, and these are not supported environments in the ongoing work. This fix is important for future work and for ensuring that subclasses performing custom behaviors remain as reliable as the public interface. Developed in https://github.com/WordPress/wordpress-develop/pull/6625 Discussed in https://core.trac.wordpress.org/ticket/61301 Props dmsnell, gziolo, jonsurrell, westonruter. Fixes #61301. Built from https://develop.svn.wordpress.org/trunk@58233 git-svn-id: http://core.svn.wordpress.org/trunk@57696 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
class-wp-html-active-formatting-elements.php | ||
class-wp-html-attribute-token.php | ||
class-wp-html-open-elements.php | ||
class-wp-html-processor-state.php | ||
class-wp-html-processor.php | ||
class-wp-html-span.php | ||
class-wp-html-tag-processor.php | ||
class-wp-html-text-replacement.php | ||
class-wp-html-token.php | ||
class-wp-html-unsupported-exception.php | ||
html5-named-character-references.php |