Skip to content

Behavior of the element's attributes changed after upgrading to 6 #1105

Description

@liram11

Hi, I noticed a strange difference in how haml treats attributes after upgrading from 5.2.2 to 6.0.7.

For example, this line:

%tagname{"data" => {"required" => "true"}, "data-required"=>nil} Contents

Will produce different results.

5.2.2:

<tagname>Contents</tagname>

6.0.7:

<tagname data-required="true">Contents</tagname>

I didn't find anything about that change in the changelog. Is it expected behavior?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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