kotlinx.html icon indicating copy to clipboard operation
kotlinx.html copied to clipboard

<a> tag is missing 'name' attribute

Open jaredsburrows opened this issue 6 years ago • 3 comments

The tag should have a 'name' attribute: https://www.w3schools.com/tags/att_a_name.asp

@HtmlTagMarker
fun FlowOrInteractiveOrPhrasingContent.a(
  href: String? = null,
  target: String? = null,
  classes: String? = null,
  name: String? = null,
  block: A.() -> Unit = {}
): Unit = A(attributesMapOf(
  "href", href,
  "target", target,
  "class", classes,
  "name", name), consumer)
  .visit(block)

jaredsburrows avatar Mar 14 '19 06:03 jaredsburrows

@cy6erGn0m Are you accepting PRs?

jaredsburrows avatar Mar 15 '19 02:03 jaredsburrows

Any update on this?

jaredsburrows avatar Mar 01 '20 22:03 jaredsburrows

@e5l The name attribute has been deprecated, so this issue should be closed.

severn-everett avatar Mar 25 '24 17:03 severn-everett