Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-8028

Heading anchors should wrap headings instead of preceding them

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Confluence places anchors to page headings before the heading element rather than wrapping the heading element.

      Current behaviour:

      <h2><a name="anchor-name"></a>A heading</h2>

      Desired behaviour:

      <a name="anchor-name"><h2>A heading</h2></a>

            [CONFSERVER-8028] Heading anchors should wrap headings instead of preceding them

            I'm marking this as "Won't Fix" because the suggested behaviour detailed at EDITLIVE-2 causes problems, mainly:

            1) You can no longer hyperlink text inside the heading
            2) The heading text would be affected by any CSS selecting anchor elements

            We've decided to use an ID instead as detailed at CONF-8032 which sidesteps this problem.

            Christopher Owen [Atlassian] added a comment - I'm marking this as "Won't Fix" because the suggested behaviour detailed at EDITLIVE-2 causes problems, mainly: 1) You can no longer hyperlink text inside the heading 2) The heading text would be affected by any CSS selecting anchor elements We've decided to use an ID instead as detailed at CONF-8032 which sidesteps this problem.

            Just as an aside, it would be nicer if we just did away with anchors and used ids

            e.g.

            <h2 id="anchor-name">A heading</h2>

            Christopher Owen [Atlassian] added a comment - Just as an aside, it would be nicer if we just did away with anchors and used ids e.g. <h2 id="anchor-name">A heading</h2>

            Christopher Owen [Atlassian] added a comment - This was first raised at http://developer.atlassian.com/jira/browse/EDITLIVE-2

              christopher.owen@atlassian.com Christopher Owen [Atlassian]
              christopher.owen@atlassian.com Christopher Owen [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: