<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>23183</bug_id>
          
          <creation_ts>2013-09-08 07:40:33 +0000</creation_ts>
          <short_desc>html &lt;a&gt; tag component attribute &quot;rel&quot;, category not a registered keyword: invalid markup</short_desc>
          <delta_ts>2015-08-23 07:07:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>URL is on private network, I can move to a public server for validation if required</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matthew Darcy">matthew</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>lordnemedia</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93145</commentid>
    <comment_count>0</comment_count>
    <who name="Matthew Darcy">matthew</who>
    <bug_when>2013-09-08 07:40:33 +0000</bug_when>
    <thetext>While running a web page through the validator version 1.3 for a html5 document type I received the following validation failure.


    Error Line 147, Column 125: Bad value category for attribute rel on element a: The string category is not a registered keyword or absolute URL.

    …posts in Uncategorized&quot; rel=&quot;category&quot;&gt;Uncategorized&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;tag…

    Syntax of link type valid for &lt;a&gt; and &lt;area&gt;:
        A whitespace-separated list of link types, with no duplicate keywords in the list. Each link type must be listed as allowed on &lt;a&gt; and &lt;area&gt; in the HTML specification, or must be listed as allowed on &lt;a&gt; and &lt;area&gt; on the Microformats wiki, or must be an absolute URL. You can register link types on the Microformats wiki yourself. 




the full line being validated is.

[code]
&lt;div class=&quot;categories&quot;&gt;&lt;a href=&quot;http://testbox02/cms/?cat=1&quot; title=&quot;View all posts in Uncategorized&quot; rel=&quot;category&quot;&gt;Uncategorized&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;tags&quot;&gt;&lt;/div&gt; 
[/code]


From all the research I can do this appears to be valid html and as I investigate believe this should pass validation.

I&apos;m logging this bug to confirm I am wrong/correct and hopefully get the validator rules updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93222</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-09-10 23:30:33 +0000</bug_when>
    <thetext>Thanks for the report. I&apos;ve added &quot;category&quot; now to the set of rel values that the validator recognizes. But if it&apos;s not working as expected for you, feel free to re-open this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102791</commentid>
    <comment_count>2</comment_count>
    <who name="Jacopo">lordnemedia</who>
    <bug_when>2014-03-22 21:58:19 +0000</bug_when>
    <thetext>I was checking some code, and found that the bug still occurs.


Examples:
&lt;a rel=&quot;my-gallery&quot; href=&quot;image.png&quot; title=&quot;battle-report&quot;&gt;...&lt;/a&gt;
The value &quot;my-gallery&quot; is marked as an error
I tried also &quot;image&quot; and &quot;gallery&quot;, they were reported as errors too.

According to http://microformats.org/wiki/rel-tag, the rel attribute can have an arbitrary value.

Jacopo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102849</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-03-24 18:07:02 +0000</bug_when>
    <thetext>(In reply to Jacopo from comment #2)
&gt; I was checking some code, and found that the bug still occurs.
&gt; 
&gt; Examples:
&gt; &lt;a rel=&quot;my-gallery&quot; href=&quot;image.png&quot; title=&quot;battle-report&quot;&gt;...&lt;/a&gt;
&gt; The value &quot;my-gallery&quot; is marked as an error
&gt; I tried also &quot;image&quot; and &quot;gallery&quot;, they were reported as errors too.
&gt; 
&gt; According to http://microformats.org/wiki/rel-tag, the rel attribute can
&gt; have an arbitrary value.

That page doesn&apos;t say that.

Regardless, it doesn&apos;t matter what that page says. The HTML spec says the rel attribute can&apos;t have any arbitrary value:

http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#attr-link-rel

Instead it has a set of standard &quot;allowed keywords&quot; that the spec defines, and then some extensions to that set of keywords, registered at:

 http://microformats.org/wiki/existing-rel-values</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102902</commentid>
    <comment_count>4</comment_count>
    <who name="Jacopo">lordnemedia</who>
    <bug_when>2014-03-26 01:07:34 +0000</bug_when>
    <thetext>I am sorry, but that exactly what it says (my &quot;arbitrary&quot; was meant to indicate the tag value, not its use).

Anyway, thanks for pointing out the actual spec.

Jacopo</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>