<?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>16629</bug_id>
          
          <creation_ts>2012-04-04 10:04:10 +0000</creation_ts>
          <short_desc>[AAPI]: a (no href attribrute) MSAA: ROLE_SYSTEM_ TEXT why?</short_desc>
          <delta_ts>2016-02-01 21:05:27 +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>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/wai-xtech/2012Apr/0007.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="steve faulkner">faulkner.steve</reporter>
          <assigned_to name="Cynthia Shelly">cyns</assigned_to>
          <cc>hans.hillen</cc>
    
    <cc>jason</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>surkov.alexander</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>66412</commentid>
    <comment_count>0</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2012-04-04 10:04:10 +0000</bug_when>
    <thetext>alex wrote:
 a (no href attribrute) MSAA: ROLE_SYSTEM_ TEXT
Firefox exposes &lt;a&gt; as ROLE_SYSTEM_LINK always. If no @href then no
STATE_LINKED. Any particular reason to expose it as SYSTEM_TEXT?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84893</commentid>
    <comment_count>1</comment_count>
    <who name="Jason Kiss">jason</who>
    <bug_when>2013-03-24 01:16:52 +0000</bug_when>
    <thetext>I don&apos;t know the reasoning behind Internet Explorer exposing &lt;a&gt; elements as ROLE_SYSTEM_TEXT instead of ROLE_SYSTEM_LINK, but it doesn&apos;t seem necessarily inappropriate or inconsistent based on the definition of ROLE_SYSTEM_LINK: &quot;The object represents a link to something else. This object might look like text or a graphic, but it acts like a button.&quot; [1]

However, IE also sets STATE_SYSTEM_LINKED whether or not the &lt;a&gt; element has an @href, which doesn&apos;t make sense to me based on the definition of STATE_SYSTEM_LINKED: &quot;Indicates that the object is formatted as a hyperlink. The object&apos;s role will usually be ROLE_SYSTEM_TEXT.&quot; [2]

I agree that ROLE_SYSTEM_LINK seems to make more sense where there is an @href, but not when there is no @href since the object doesn&apos;t &quot;represent a link to something else.&quot; What is Firefox&apos;s argument for keeping ROLE_SYSTEM_LINK when there is no @href?

The use of STATE_SYSTEM_LINKED on &lt;a&gt; elements without an @href also doesn&apos;t follow for me: Simple named anchors with no @href are not normally formatted, nor do they act, as hyperlinks.

Note that &lt;area&gt; elements in IE use ROLE_SYSTEM_LINK. They also have STATE_SYSTEM_LINKED, again whether or not they have an @href. Related bug: &lt;a href=&quot;show_bug.cgi?id=16761&quot;&gt;Bug&amp;nbsp;16761&lt;/a&gt;.

I&apos;d suggest the folllowing mappings:

&lt;a&gt; with @href exposed as ROLE_SYSTEM_LINK with STATE_SYSTEM_LINKED.
&lt;a&gt; and &lt;area&gt; (with no @href) exposed as ROLE_SYSTEM_TEXT.


[1] http://msdn.microsoft.com/en-us/library/windows/desktop/dd373608%28v=vs.85%29.aspx#ROLE_SYSTEM_LINK 
[2] http://msdn.microsoft.com/en-us/library/windows/desktop/dd373609%28v=vs.85%29.aspx#STATE_SYSTEM_LINKED</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84894</commentid>
    <comment_count>2</comment_count>
    <who name="Jason Kiss">jason</who>
    <bug_when>2013-03-24 01:20:05 +0000</bug_when>
    <thetext>Apologies for the HTML link tags. Meant to reference related bug 16761.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85000</commentid>
    <comment_count>3</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2013-03-26 06:23:47 +0000</bug_when>
    <thetext>It sounds reasonable. If IE does it then it should be safe for Firefox do the same. I filed FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=854796</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85590</commentid>
    <comment_count>4</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2013-04-05 06:59:57 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; It sounds reasonable. If IE does it then it should be safe for Firefox do
&gt; the same. I filed FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=854796

SYSTEM_TEXT doesn&apos;t work well because that means system_text accessible can be nested which is not expected by AT (see Jamie&apos;s answer in Firefox bug above).

Example, 

&lt;a&gt;text leaf&lt;/a&gt; will result into

system_text - html:a
  system_text - text node

Note, since html:a can contain anything then it means system_text can contain anything. Firefox uses IA2_ROLE_TEXT_FRAME for text containers, SYSTEM_TEXT for text leafs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92192</commentid>
    <comment_count>5</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2013-08-16 19:16:55 +0000</bug_when>
    <thetext>IA2 was addressed in bug 12703: IA2_ROLE_TEXT_FRAME</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124801</commentid>
    <comment_count>6</comment_count>
    <who name="Cynthia Shelly">cyns</who>
    <bug_when>2016-02-01 21:05:27 +0000</bug_when>
    <thetext>overcome by events. not an issue with UIA mapping.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>