Changeset 61796
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php
r61793 r61796 3818 3818 } 3819 3819 3820 if ( self::STATE_MATCHED_TAG !== $this->parser_state ) { 3820 /* 3821 * The rest of this function handles modifiable text for special "atomic" HTML elements. 3822 * Only tags in the HTML namespace should be processed. 3823 */ 3824 if ( 3825 self::STATE_MATCHED_TAG !== $this->parser_state || 3826 'html' !== $this->get_namespace() 3827 ) { 3821 3828 return false; 3822 3829 } -
trunk/tests/phpunit/tests/html-api/wpHtmlProcessorModifiableText.php
r61754 r61796 25 25 * @param string $expected_html Expected HTML output. 26 26 */ 27 public function test_modifiable_text_special_textarea( string $set_text, string $expected_html ) {27 public function test_modifiable_text_special_textarea( string $set_text, string $expected_html ) { 28 28 $processor = WP_HTML_Processor::create_fragment( '<textarea></textarea>' ); 29 29 $processor->next_token(); … … 51 51 * Data provider. 52 52 * 53 * @return array []53 * @return array 54 54 */ 55 public static function data_modifiable_text_special_textarea() {55 public static function data_modifiable_text_special_textarea() { 56 56 return array( 57 57 'Leading newline' => array( … … 69 69 ); 70 70 } 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 71 126 } -
trunk/tests/phpunit/tests/html-api/wpHtmlTagProcessorModifiableText.php
r61754 r61796 645 645 * @ticket 64609 646 646 */ 647 public function test_modifiable_text_special_textarea() {647 public function test_modifiable_text_special_textarea() { 648 648 $processor = new WP_HTML_Tag_Processor( '<textarea></textarea>' ); 649 649 $processor->next_token(); … … 665 665 ); 666 666 } 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 667 723 }
Note: See TracChangeset
for help on using the changeset viewer.