-
-
Notifications
You must be signed in to change notification settings - Fork 22
iframe TagRef not behaving like equivalent html tag.Β #401
Description
Describe the bug π
Youtube iframe embedding is now broken in components where it was previously working.
To Reproduce π¨βπ¬
`
proc ytFrame*(query, width, height: string): TagRef =
buildHtml:
iframe(
src = "https://www.youtube.com/embed/" & query,
title = "YouTube video player",
width = width,
height = height,
)
`
Then in SPA:
tDiv: ytFrame("WHyOHQ_GkNo","400","400") tDiv: {$ytFrame("WHyOHQ_GkNo","400","400")}
The component renders with error 153 configuration error by YouTube, but the exact html of the tag works correctly in any webpage not using happyx.
Expected behavior π€
We would expect the string output of the proc to do the same thing in webpages that the component does. However, in this case there is a difference that Youtube is recognizing and which results in a congiguration error in happyx, but no error outside of the framework.
Screenshots πΌ
- HappyX 4.7.4
- SPA
- Nim 2.2.6
- Observed using Chrome Version 141.0.7390.54 (Official Build) (64-bit)