Skip to content

iframe TagRef not behaving like equivalent html tag.Β #401

@quimt

Description

@quimt

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 πŸ–Ό

Image Image
  • HappyX 4.7.4
  • SPA
  • Nim 2.2.6
  • Observed using Chrome Version 141.0.7390.54 (Official Build) (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions