mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-14 07:00:51 -04:00
fix(curriculum): refine editable regions in iframe video display work (#65285)
Co-authored-by: Jeevankumar-S <jeevenkumar2003@email.com>
This commit is contained in:
@@ -40,7 +40,7 @@ assert.equal(document.querySelector('h1')?.textContent.trim(), 'iframe Video Dis
|
||||
</head>
|
||||
<body>
|
||||
--fcc-editable-region--
|
||||
|
||||
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -38,7 +38,7 @@ assert.equal(document.querySelector('iframe')?.innerHTML.trim(), '')
|
||||
<body>
|
||||
<h1>iframe Video Display</h1>
|
||||
--fcc-editable-region--
|
||||
|
||||
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -41,11 +41,14 @@ assert.equal(iframeEl?.getAttribute('height'), '315')
|
||||
</head>
|
||||
<body>
|
||||
<h1>iframe Video Display</h1>
|
||||
|
||||
<iframe
|
||||
--fcc-editable-region--
|
||||
<iframe>
|
||||
|
||||
--fcc-editable-region--
|
||||
>
|
||||
|
||||
</iframe>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -36,15 +36,15 @@ assert.equal(iframeEl?.getAttribute('src'), 'https://www.youtube.com/embed/I0_95
|
||||
</head>
|
||||
<body>
|
||||
<h1>iframe Video Display</h1>
|
||||
--fcc-editable-region--
|
||||
<iframe
|
||||
width="560"
|
||||
height="315"
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
>
|
||||
|
||||
</iframe>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -61,16 +61,16 @@ assert.match(iframeElAllowAttr, /clipboard-write/)
|
||||
</head>
|
||||
<body>
|
||||
<h1>iframe Video Display</h1>
|
||||
--fcc-editable-region--
|
||||
<iframe
|
||||
width="560"
|
||||
height="315"
|
||||
src="https://www.youtube.com/embed/I0_951_MPE0"
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
>
|
||||
|
||||
</iframe>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -51,16 +51,16 @@ assert.match(iframeElAllowAttr, /web-share/)
|
||||
</head>
|
||||
<body>
|
||||
<h1>iframe Video Display</h1>
|
||||
--fcc-editable-region--
|
||||
<iframe
|
||||
width="560"
|
||||
height="315"
|
||||
src="https://www.youtube.com/embed/I0_951_MPE0"
|
||||
--fcc-editable-region--
|
||||
allow="accelerometer autoplay clipboard-write"
|
||||
--fcc-editable-region--
|
||||
>
|
||||
|
||||
</iframe>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -34,16 +34,17 @@ assert.equal(iframeEl?.getAttribute('referrerpolicy'), 'strict-origin-when-cross
|
||||
</head>
|
||||
<body>
|
||||
<h1>iframe Video Display</h1>
|
||||
--fcc-editable-region--
|
||||
<iframe
|
||||
width="560"
|
||||
height="315"
|
||||
src="https://www.youtube.com/embed/I0_951_MPE0"
|
||||
allow="accelerometer autoplay clipboard-write encrypted-media gyroscope web-share"
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
>
|
||||
|
||||
</iframe>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -34,18 +34,18 @@ assert.exists(iframeEl?.getAttribute('allowfullscreen'))
|
||||
</head>
|
||||
<body>
|
||||
<h1>iframe Video Display</h1>
|
||||
--fcc-editable-region--
|
||||
<iframe
|
||||
width="560"
|
||||
height="315"
|
||||
src="https://www.youtube.com/embed/I0_951_MPE0"
|
||||
allow="accelerometer autoplay clipboard-write encrypted-media gyroscope web-share"
|
||||
referrerpolicy="strict-origin-when-cross-origin"
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
>
|
||||
|
||||
</iframe>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user