Skip to content

Server rendering a tag attribute with no value #11705

@stephen-last

Description

@stephen-last

Do you want to request a feature or report a bug?
Bug?

What is the current behavior?

When I server render this: <script src='https://www.googletagmanager.com/gtag/js?id=XXX' async />

The HTML has async="" instead of just async.

Using React 16.1.1 and node 8.9.1.

Is there a way to render <script src='...' async /> rather than <script src='...' async="" />..?

Not sure if browsers treat async="" as true or false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions