Skip to content

Diagram.addTo() doesn't find the right <script> tag for <script type=module> #108

@RossPatterson

Description

@RossPatterson

When using the Diagram.addTo() method in railroad.js without specifying a target element, the method cannot determine the correct <script> tag if the tag has type=module coded. This is because ES Module scripts, even in-line ones, are forced to be <script defer>, causing them to be run out of order, making the code that locates the <script> tag locate the wrong one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions