Skip to content

Feature request: when more than one attribute with the same name applies to a single element, throw an exception instead of just using the last one #13

@Dretch

Description

@Dretch

Consider Thymesheet files with duplicate attributes, like:

a {
  th-class: "firstClass";
  th-class: "secondClass";
}

or, even something like:

a {
  th-class: "firstClass";
}
* {
  th-class: "secondClass";
}

More than once I have seen people expect this sort of thing to work (by expecting ThymeLeaf/Sheet to combine the attributes), but instead only the last attribute that applies to an element will be used, and the others ignored.

I think both of the above cases should result in exceptions (and they will probably require different bits of code to be changed to implement each of them). Do you agree?

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