Skip to content

Bug: HTML snippet with spans is rendered vastly different in React than in plain HTML #21543

@mindreframer

Description

@mindreframer

A list of span elements in combination with Tailwind.css styles (any version, CDN / NPM / etc) is rendered very differently in plain HTML vs. React.js code.

Links to code examples:

The current behavior

There are no spaces, the word-wrapping is broken and selecting + copying text results in mangeled text in the clipboard.

The expected behavior

It should behave similarly to the plain HTML version: have spaces, render without strange word-wraps and be properly selectable.

Screenshot:
Screenshot-span-react-bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions