Skip to content

Optional css class argument of elements below body #6

Description

@benjamin-dreux

After Distinct case for css classes, I understand that my proposition doesn't quite fit with this project. And I respect this desire to protect what is a important idea of this project.

Still I feel that attrClass is too long for something that probably the most used html attribute.

So, what I propose for all element that are only make sens bellow body is to add an argument that would only be a short and for calling attrClass

    .div("first-class second-class")
    .__()

Which doesn't mean that the current form should be retired.

.div()
   .attrClass("first-class second-class)
.__()

I think both should add content to the same attribute
So with the following

.div("first-class")
    .attrClass("second-class")
.__()

should produce the following output

<div class="first-class second-class"></div>

In the hope to help enhance this already pretty nice project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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