fix(curriculum): refine editable regions in iframe video display work (#65285)

Co-authored-by: Jeevankumar-S <jeevenkumar2003@email.com>
This commit is contained in:
Jeevankumar S
2026-01-20 14:16:10 +05:30
committed by GitHub
parent 0217956141
commit 5dc499d9c5
8 changed files with 21 additions and 17 deletions

View File

@@ -40,7 +40,7 @@ assert.equal(document.querySelector('h1')?.textContent.trim(), 'iframe Video Dis
</head>
<body>
--fcc-editable-region--
--fcc-editable-region--
</body>
</html>

View File

@@ -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>

View File

@@ -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>
```

View File

@@ -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>
```

View File

@@ -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>
```

View File

@@ -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>
```

View File

@@ -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>
```

View File

@@ -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>
```