Skip to content

Anchor duplication - block-level anchor issue? #167

Closed
@jacksonp

Description

@jacksonp

Input:

<!DOCTYPE html>
<title>Test</title>
<a id="Section" href="#Section"><h1>Section</h1></a>

Output of tidy5 -indent:

<!DOCTYPE html>

<html>
<head>
  <meta name="generator" content=
  "HTML Tidy for HTML5 for Linux version 4.9.17">

  <title>Test</title>
</head>

<body>
  <a id="Section" href="#Section">
  <h1><a id="Section" href="#Section">Section</a></h1></a>
</body>
</html>

Note the two anchor tags with id "Section" in the output.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions