CoreFiles by mySites.guru
class-wp-html-span.php52 lines, 1,023 bytes, from wordpress-6.2.3.zip
Raw History Compare with 6.2.2
md5
731dc47fde5f0b904bf3649d5bec4ad4
sha1
a6dab8e510c6d5e284b29f300d69469177c6d4cb
sha256
5d95020c4aaf69affac7f7dbf8557da4ef486a74d4743fde3c7e703c8a938e0b
<?php
/**
 * HTML Span: Represents a textual span inside an HTML document.
 *
 * @package WordPress
 * @subpackage HTML-API
 * @since 6.2.0
 */

/**
 * Represents a textual span inside an HTML document.
 *
 * This is a two-tuple in disguise, used to avoid the memory
 * overhead involved in using an array for the same purpose.
 *
 * This class is for internal usage of the WP_HTML_Tag_Processor class.
 *
 * @access private
 * @since 6.2.0
 *
 * @see WP_HTML_Tag_Processor
 */
class WP_HTML_Span {
	/**
	 * Byte offset into document where span begins.
	 *
	 * @since 6.2.0
	 * @var int
	 */
	public $start;

	/**
	 * Byte offset into document where span ends.
	 *
	 * @since 6.2.0
	 * @var int
	 */
	public $end;

	/**
	 * Constructor.
	 *
	 * @since 6.2.0
	 *
	 * @param int $start Byte offset into document where replacement span begins.
	 * @param int $end   Byte offset into document where replacement span ends.
	 */
	public function __construct( $start, $end ) {
		$this->start = $start;
		$this->end   = $end;
	}
}

The same content is in 27 releases, WordPress 6.2-beta1 to 6.2.15. See them all, or every version of this file.