Skip to content

When <o characters in Playground HTML input causes entire JavaScript input to show up in HTML preview #1440

@scornork

Description

@scornork

What information was incorrect, unhelpful, or incomplete?

  1. Using the characters "<o" in the Playground's HTML input area, causes whatever is in the JavaScript input area to show up in the HTML preview.

  2. Behavior persists so long as the tag (intended to use <output> when I discovered this by accident) remains incomplete even if there are inputs that precede or succeed it.

  3. Can't tell if this is the result of a mishandling of some string interpolation, some quirk with the playground or if its an inherent problem with the HTML tag itself

  4. Not too sure if its isolated only to certain devices but am experiencing it on a Pixel 10 Pro Fold and a 2020 13" MacBook Pro.

  5. Also not sure if this is tantamount to using .innerText which might not be so worrying than of its an equivalent of innerHTML, for e.g., hence this issue...

  6. And a live example you can use as a reference if it occurs at all,

Image Image

otherwise please refer to the screenshots attached for more details.

What did you expect to see?

Nothing. Incomplete HTML tags either show up as they are typed or as nothing at all and nor expose another element's content.

Do you have any supporting links, references, or citations?

As provided:

  1. live example
  2. Image
  3. Image

Do you have anything more you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    p1We will address this soon and will provide capacity from our team for it in the next few releases.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions