Skip to content

Commit d692e1c

Browse files
committed
Fix data URIs
1 parent f2f9fc2 commit d692e1c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/benchmarks/benchmarks/html-api/WpHtmlTagProcessorBench.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ public function set_up_html_full_parser( array $params ): void {
170170
}
171171

172172
public static function provide_html(): iterable {
173-
yield 'Empty string' => array( 'data://text/html,' );
174-
yield 'Short doc' => array( 'data://text/html,<h1>Hello, world!</h1>' );
173+
yield 'Empty string' => array( 'data:text/html,' );
174+
yield 'Short doc' => array( 'data:text/html,' . rawurlencode( '<h1>Hello, world!</h1>' ) );
175175
yield 'HTML Standard' => array( 'file://' . DIR_BENCHMARKDATA . '/html-standard.html' );
176176
}
177177
}

0 commit comments

Comments
 (0)