@@ -96,7 +96,7 @@ public function getTags(): array
96
96
'script ' ,
97
97
['src ' => 'http://magento.com/static/some-script.js ' ],
98
98
null ,
99
- '<script src="http://magento.com/static/some-script.js"/ > ' ,
99
+ '<script src="http://magento.com/static/some-script.js"></script > ' ,
100
100
[new FetchPolicy ('script-src ' , false , ['http://magento.com ' ])]
101
101
],
102
102
'inline-script ' => [
@@ -209,7 +209,7 @@ public function getTags(): array
209
209
'iframe ' ,
210
210
['src ' => 'http://magento.com/some-page ' ],
211
211
null ,
212
- '<iframe src="http://magento.com/some-page"/ > ' ,
212
+ '<iframe src="http://magento.com/some-page"></iframe > ' ,
213
213
[new FetchPolicy ('frame-src ' , false , ['http://magento.com ' ])]
214
214
],
215
215
'remote-track ' => [
@@ -230,21 +230,21 @@ public function getTags(): array
230
230
'video ' ,
231
231
['src ' => 'https://magento.com/static/video.mp4 ' ],
232
232
null ,
233
- '<video src="https://magento.com/static/video.mp4"/ > ' ,
233
+ '<video src="https://magento.com/static/video.mp4"></video > ' ,
234
234
[new FetchPolicy ('media-src ' , false , ['https://magento.com ' ])]
235
235
],
236
236
'remote-audio ' => [
237
237
'audio ' ,
238
238
['src ' => 'https://magento.com/static/audio.mp3 ' ],
239
239
null ,
240
- '<audio src="https://magento.com/static/audio.mp3"/ > ' ,
240
+ '<audio src="https://magento.com/static/audio.mp3"></audio > ' ,
241
241
[new FetchPolicy ('media-src ' , false , ['https://magento.com ' ])]
242
242
],
243
243
'remote-object ' => [
244
244
'object ' ,
245
245
['data ' => 'http://magento.com/static/flash.swf ' ],
246
246
null ,
247
- '<object data="http://magento.com/static/flash.swf"/ > ' ,
247
+ '<object data="http://magento.com/static/flash.swf"></object > ' ,
248
248
[new FetchPolicy ('object-src ' , false , ['http://magento.com ' ])]
249
249
],
250
250
'remote-embed ' => [
@@ -259,7 +259,7 @@ public function getTags(): array
259
259
['code ' => 'SomeApplet.class ' , 'archive ' => 'https://magento.com/applet/my-applet.jar ' ],
260
260
null ,
261
261
'<applet code="SomeApplet.class" '
262
- . 'archive="https://magento.com/applet/my-applet.jar"/ > ' ,
262
+ . 'archive="https://magento.com/applet/my-applet.jar"></applet > ' ,
263
263
[new FetchPolicy ('object-src ' , false , ['https://magento.com ' ])]
264
264
]
265
265
];
@@ -294,7 +294,7 @@ public function testSecureHtmlRenderer(): void
294
294
$ eventListener = $ this ->secureHtmlRenderer ->renderEventListener ('onclick ' , 'alert() ' );
295
295
296
296
$ this ->assertEquals (
297
- '<script src="https://test.magento.com/static/script.js"/ > ' ,
297
+ '<script src="https://test.magento.com/static/script.js"></script > ' ,
298
298
$ scriptTag
299
299
);
300
300
$ this ->assertEquals (
0 commit comments