<?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>22970</bug_id>
          
          <creation_ts>2013-08-15 15:28:05 +0000</creation_ts>
          <short_desc>style AT API constants in IA2/ATK columns</short_desc>
          <delta_ts>2013-08-23 15:45:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML a11y APIs (editor: Steve Faulkner, Cynthia Shelly)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></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="alexander surkov">surkov.alexander</reporter>
          <assigned_to name="alexander surkov">surkov.alexander</assigned_to>
          <cc>jason</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-bugzilla</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML a11y API spec bugbot">sideshowbarker+html-a11y-api</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>92093</commentid>
    <comment_count>0</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2013-08-15 15:28:05 +0000</bug_when>
    <thetext>What is the current style? &lt;em&gt;constant&lt;/em&gt;, correct?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92127</commentid>
    <comment_count>1</comment_count>
    <who name="Jason Kiss">jason</who>
    <bug_when>2013-08-16 01:59:38 +0000</bug_when>
    <thetext>I&apos;m not sure I follow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92131</commentid>
    <comment_count>2</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2013-08-16 02:20:15 +0000</bug_when>
    <thetext>I meant to have a proper styling for constants like the text

IA2_RELATION_LABEL_FOR to form control element pointed by for attribute

can be styled like

&lt;span class=&quot;constant&quot;&gt;IA2_RELATION_LABEL_FOR&lt;/span&gt; to form control element pointed by &lt;span class=&quot;attr&quot;&gt;for&lt;/span&gt; attribute

instead of spans we could use &lt;code&gt;, &lt;em&gt; or whatever else that fits</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92343</commentid>
    <comment_count>3</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2013-08-20 15:41:34 +0000</bug_when>
    <thetext>Jason, ping?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92399</commentid>
    <comment_count>4</comment_count>
    <who name="Jason Kiss">jason</who>
    <bug_when>2013-08-21 05:08:36 +0000</bug_when>
    <thetext>We&apos;ve been using &lt;code&gt; to wrap element and attribute names. The ARIA UAIG uses &lt;code&gt; for constants. I suggest we do the same. I don&apos;t think we need @class, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92417</commentid>
    <comment_count>5</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2013-08-21 12:18:44 +0000</bug_when>
    <thetext>I noticed some constants/references are links (in attributes area). So if we do all of them links then probably it&apos;s good idea to have a links map and generate links by js like

//js

var referencesMap = {
  &quot;ia2:rel:labelled_by&quot;: url
};

var links = document.querySelector(&quot;a[rel]&quot;);
for (var i = 0; i &lt; links.lenght; i++)
  links[i].setAttribute(&quot;href&quot;, referencesMap[links[i].getAttribute(&quot;rel&quot;));
}

// html

&lt;a rel=&quot;ia2:rel:labelled_by&quot;&gt;IA2_RELATION_LABELLEDBY&lt;/a&gt;

// css

a[rel] {
  font-style: monospace;
}

it allows us to keep code nicer and lesser (less chance for mistakes) and change the url in one place if the URL is changed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92445</commentid>
    <comment_count>6</comment_count>
    <who name="Jason Kiss">jason</who>
    <bug_when>2013-08-22 01:37:14 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; I noticed some constants/references are links (in attributes area). 

I don&apos;t think we should link the constants. Makes it a little too noisy, IMO. 

The table column headers each link to the relevant API documentation and from there it should be easy enough for a user to find the constant they are looking to know more about.

The table column header links should be updated/corrected in a few cases.

We can also add clear links to the APIs (with separate links to role and state constants, etc.) in the introduction section.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92511</commentid>
    <comment_count>7</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2013-08-23 15:45:38 +0000</bug_when>
    <thetext>different types of constants can be selected:
1) HTML elements/attrs that don&apos;t need a reference like &quot;when the &lt;code&gt;label&lt;/code&gt; element has for attribute&quot; in label element description
2) WAI ARIA roles, props, etc
3) AT API constants like RELATION_LABEL_FOR or STATE_LINKED
4) string constants like action &quot;open&quot;/&quot;close&quot; or &quot;font-style&quot; text attribute (may be considered as part of 3d item
5) interfaces names like IAccessibleHyperText2 (might be part of 3d item).
6) AT API methods/arguments name like IAccessible::name

Is it ok if:
1st item is red colored code
2-5 items are just ordinal code
6 is either ordinal code or link</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>