@@ -1439,11 +1439,11 @@ private static function sort_start_ascending( $a, $b ) {
14391439 * @return string|boolean|null Value of enqueued update if present, otherwise false.
14401440 */
14411441 private function get_enqueued_attribute_value ( $ comparable_name ) {
1442- if ( ! isset ( $ this ->lexical_updates [ $ comparable_name ] ) ) {
1442+ if ( ! isset ( $ this ->attribute_updates [ $ comparable_name ] ) ) {
14431443 return false ;
14441444 }
14451445
1446- $ enqueued_text = $ this ->lexical_updates [ $ comparable_name ]->text ;
1446+ $ enqueued_text = $ this ->attribute_updates [ $ comparable_name ]->text ;
14471447
14481448 // Removed attributes erase the entire span.
14491449 if ( '' === $ enqueued_text ) {
@@ -1517,7 +1517,7 @@ public function get_attribute( $name ) {
15171517
15181518 /*
15191519 * For every attribute other than `class` we can perform a quick check if there's an
1520- * enqueued lexical update whose value we should prefer over what's in the input HTML.
1520+ * enqueued attribute update whose value we should prefer over what's in the input HTML.
15211521 *
15221522 * The `class` attribute is special though because we expose the helpers `add_class`
15231523 * and `remove_class` which form a builder for the `class` attribute, so we have to
@@ -1818,8 +1818,8 @@ public function remove_attribute( $name ) {
18181818
18191819 // If we updated an attribute we didn't originally have, remove the enqueued update and move on.
18201820 if ( ! isset ( $ this ->attributes [ $ name ] ) ) {
1821- if ( isset ( $ this ->lexical_updates [ $ name ] ) ) {
1822- unset( $ this ->lexical_updates [ $ name ] );
1821+ if ( isset ( $ this ->attribute_updates [ $ name ] ) ) {
1822+ unset( $ this ->attribute_updates [ $ name ] );
18231823 }
18241824 return false ;
18251825 }
0 commit comments