Skip to content

Support attribute aliases for @Dtd annotation #255

Description

@raner

This is similar to #232, but for attributes.

Examples:

  • <meta>: http-equivequivalent
  • <script>: srcsource
  • <a>: hrefreference
  • <img>: srcsource
  • <textarea>: colscolumns

Given that most HTML elements nowadays use global attributes (with most element-specific attributes being deprecated) and the few remaining element-specific attributes either share the same name (src, type, href, placeholder) or are entirely unique (http-equiv, crossorigin, autoplay), it makes sense to implement this feature at a globally scoped level, similar to the existing @Dtd(aliases=...).

This will address the primary use case (HTML), and further element-specific refinements can be introduced as separate tickets.

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

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions