Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-11312

Anchor in ezxml headers

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.10.0
    • 3.9.3
    • None
    • Operating System:
      PHP Version: (please be specific, like '4.4.3' or '5.1.5'): 4.4.4
      Database and version: mysql 5
      Browser (and version):

    Description

      Anchors made at the left side of an header-text using OE are not present in the resulting xhtml-code, and will therefore not work.

      Example ezxml-code, anchor a1 where made at left side of header-text, while anchor a2 where made at right side of header-text. Only a2 works:

      <link href="#a1">This is a link to anchor called a1</link>
      
      <link href="#a2">This is a link to anchor called a2</link>
      
      <header anchor_name="a1" level="1">Heading a1</header>
      brødtekst1 brødtekst1
      
      <header level="1">Heading a2<anchor name="a2" /></header>
      brødtekst2 brødtekst2
      

      And here is the xhtml result code:

      <p>
      <a href="#a1" target="_self">This is a link to anchor called a1</a>
      </p>
      
      <p>
      <a href="#a2" target="_self">This is a link to anchor called a2</a>
      </p>
      
      <a name="eztoc405366_1" id="eztoc405366_1"></a><h2>Heading a1</h2>
      <p>
      normal text 1, normal text 1
      </p>
      
      <a name="eztoc405366_2" id="eztoc405366_2"></a><h2>Heading a2
      <a name='a2'></a></h2>
      <p>
      normal text 2, normal text 2
      </p>
      

      Attachments

        Activity

          People

            ks ks
            j0nnybe j0nnybe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: