@@ -1096,15 +1096,15 @@ private function skip_whitespace() {
10961096 }
10971097
10981098 /**
1099- * Applies lexical updates and cleans up once a tag is fully parsed.
1099+ * Applies attribute updates and cleans up once a tag is fully parsed.
11001100 *
11011101 * @since 6.2.0
11021102 *
11031103 * @return void
11041104 */
11051105 private function after_tag () {
1106- $ this ->class_name_updates_to_lexical_updates ();
1107- $ this ->apply_lexical_updates ();
1106+ $ this ->class_name_updates_to_attributes_updates ();
1107+ $ this ->apply_attributes_updates ();
11081108 $ this ->tag_name_starts_at = null ;
11091109 $ this ->tag_name_length = null ;
11101110 $ this ->tag_ends_at = null ;
@@ -1113,10 +1113,10 @@ private function after_tag() {
11131113 }
11141114
11151115 /**
1116- * Converts class name updates into tag lexical updates
1116+ * Converts class name updates into tag attributes updates
11171117 * (they are accumulated in different data formats for performance).
11181118 *
1119- * This method is only meant to run right before the lexical updates are applied.
1119+ * This method is only meant to run right before the attribute updates are applied.
11201120 * The behavior in all other cases is undefined.
11211121 *
11221122 * @return void
@@ -1125,7 +1125,7 @@ private function after_tag() {
11251125 * @see $classname_updates
11261126 * @see $lexical_updates
11271127 */
1128- private function class_name_updates_to_lexical_updates () {
1128+ private function class_name_updates_to_attributes_updates () {
11291129 if ( count ( $ this ->classname_updates ) === 0 || isset ( $ this ->lexical_updates ['class ' ] ) ) {
11301130 $ this ->classname_updates = array ();
11311131 return ;
@@ -1246,13 +1246,13 @@ private function class_name_updates_to_lexical_updates() {
12461246 *
12471247 * @since 6.2.0
12481248 */
1249- private function apply_lexical_updates () {
1249+ private function apply_attributes_updates () {
12501250 if ( ! count ( $ this ->lexical_updates ) ) {
12511251 return ;
12521252 }
12531253
12541254 /**
1255- * Lexical updates can be enqueued in any order but as we
1255+ * Attribute updates can be enqueued in any order but as we
12561256 * progress through the document to replace them we have to
12571257 * make our replacements in the order in which they are found
12581258 * in that document.
@@ -1345,8 +1345,8 @@ public function seek( $bookmark_name ) {
13451345 *
13461346 * @since 6.2.0
13471347 *
1348- * @param WP_HTML_Text_Replacement $a First lexical update.
1349- * @param WP_HTML_Text_Replacement $b Second lexical update.
1348+ * @param WP_HTML_Text_Replacement $a First attribute update.
1349+ * @param WP_HTML_Text_Replacement $b Second attribute update.
13501350 * @return integer
13511351 */
13521352 private static function sort_start_ascending ( $ a , $ b ) {
@@ -1737,8 +1737,8 @@ public function get_updated_html() {
17371737 $ updated_html_up_to_current_tag_name_end = $ this ->updated_html . $ delta_between_updated_html_end_and_current_tag_end ;
17381738
17391739 // 1. Apply the attributes updates to the original HTML
1740- $ this ->class_name_updates_to_lexical_updates ();
1741- $ this ->apply_lexical_updates ();
1740+ $ this ->class_name_updates_to_attributes_updates ();
1741+ $ this ->apply_attributes_updates ();
17421742
17431743 // 2. Replace the original HTML with the updated HTML
17441744 $ this ->html = $ this ->updated_html . substr ( $ this ->html , $ this ->updated_bytes );
0 commit comments