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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>117442</bug_id>
          
          <creation_ts>2013-06-10 16:41:22 -0700</creation_ts>
          <short_desc>label element should send key and focus events if it has contenteditable attribute</short_desc>
          <delta_ts>2013-06-10 16:41:22 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>enrica</cc>
    
    <cc>jonlee</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>898825</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-06-10 16:41:22 -0700</bug_when>
    <thetext>Consider merging https://src.chromium.org/viewvc/blink?revision=149973&amp;view=revision

HTMLLabelElement should be focusable if it passes the test isContentEditable(). As a result, the proper events would be sent.
Both Opera and Firefox support this behavior.

and

https://chromium.googlesource.com/chromium/blink/+/3a0c29a759041db45ac8bc7b1724f1009a6d576e
A contenteditable label breaks tab focus cycling

This is a regression from https://src.chromium.org/viewvc/blink?view=rev&amp;revision=149973
When using tab to navigate the focusable elements in a page, a contenteditable label claims to be focusable, but label.focus() was not doing anything.
The behavior with this patch is the same as in Opera 12.15, but different than in Firefox, because in Firefox label.focus() still does not do anything.
IE 10 behaves the same as Opera, and allows label.focus() on contenteditable labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>