Skip to content

Output ambiguity  #12

Open
Open
@diervo

Description

@diervo

@inikulin An interesting though:

Input:

    <input value={foo}/>
    <input value="{foo}/">

    <div title={x}></div>
    <div title="{x}"></div>

Output:

    <input value="{foo}/">
    <input value="{foo}/">

    <div title="{x}"></div>
    <div title="{x}"></div>

Although the transformation is correct from a spec perspective, it generates a little bit of ambiguity from a developer semantics perspective.

How do you feel about adding some metadata to the AttributeNode (which we collect already as we generate tokens) such as for this example valueState: single-quotes|double-quotes|unquoted

I think via location you could potentially figure out, but is not really straight forward tough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions