Skip to content

Unstable HTML format #8626

@fisker

Description

@fisker

Prettier 2.0.5
Playground link

--parser html

Input:

<object data="horse.wav"><param name="autoplay" value="true"
><param name="autoplay" value="true"
></object>1

Output:

<object data="horse.wav"
  ><param name="autoplay" value="true" /><param
    name="autoplay"
    value="true" /></object

>1

Second Output:

<object data="horse.wav"
  ><param name="autoplay" value="true" /><param
    name="autoplay"
    value="true" /></object
>1

Expected behavior:

AS Second Output

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:htmlIssues affecting HTML (and SVG but not JSX)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions