Skip to content

Using ID and class selectors inside templates leads to conflicts when there are multiple instances of the same template in the scene #121

@jcarpenter

Description

@jcarpenter

When creating multiple instances of the same template, we hit an issue with selectors inside those templates conflicting. I discovered this while creating the the video, image and sky templates, which use <video> and <img> elements plus IDs / classes.

I had a bunch of image template instances. Each with a unique src image specified. But they were all showing the same image. Because each template instance contained an instance with the same id="image".

Solution would be to encapsulate selector scope to template? Or randomize template ID/classes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions