Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-424

Invalid usage of rel="_blank" in HTML5 links

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 7.4
    • Syntax - html/5.0
    • None

    Description

      In the XWiki Syntax guide, there is:

      rel: An optional parameter that allows to open link target in new window. Example: rel="__blank"

      So if you do, in XWiki Enterprise:

      [[Blog>>Blog.WebHome||rel="__blank"]]}}
      

      the HTML5 generated code is

      <a rel="__blank" href="/xwiki/bin/view/Blog/">Blog</a>
      

      This code is invalid because "__blank" is not an authorized value for the attribute "rel" in HTML5 (contrary to XHTML 1.0).

      In HTML5, target="_blank" is perfectly valid, so there is no reason to use the "rel" workaround anymore.

      Attachments

        Issue Links

          Activity

            People

              gdelhumeau Guillaume Delhumeau
              gdelhumeau Guillaume Delhumeau
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: