We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a799101 commit c98f64dCopy full SHA for c98f64d
tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
@@ -2875,4 +2875,18 @@ public function insert_after( $new_html ) {
2875
'Should have properly applied the update from in front of the cursor.'
2876
);
2877
}
2878
+
2879
+ /**
2880
+ * Test an infinite loop bugfix in script tag processing.
2881
+ *
2882
+ * @small
2883
2884
+ * @ticket TBD
2885
+ */
2886
+ public function test_script_tag_processing_no_infinite_loop() {
2887
+ $processor = new WP_HTML_Tag_Processor( '<script type="data">-' );
2888
2889
+ $this->assertFalse( $processor->next_tag() );
2890
+ $this->assertTrue( $processor->paused_at_incomplete_token() );
2891
+ }
2892
0 commit comments