<?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>133371</bug_id>
          
          <creation_ts>2014-05-29 00:47:59 -0700</creation_ts>
          <short_desc>Element.isContentEditable should return true in hidden elements</short_desc>
          <delta_ts>2014-06-06 14:03:47 -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>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Piotrek Koszuliński (Reinmar)">pkoszulinski</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aleksander</cc>
    
    <cc>ap</cc>
    
    <cc>enrica</cc>
    
    <cc>kling</cc>
    
    <cc>koivisto</cc>
    
    <cc>man.zhong</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1012368</commentid>
    <comment_count>0</comment_count>
    <who name="Piotrek Koszuliński (Reinmar)">pkoszulinski</who>
    <bug_when>2014-05-29 00:47:59 -0700</bug_when>
    <thetext>Identical issue was reported for Blink: https://code.google.com/p/chromium/issues/detail?id=313082
It was confirmed after Anne van Kesteren commented that spec does not suggest that isContentEditable depends on synchronous style resolution.

&gt; Example URL:
&gt; http://jsfiddle.net/kNNzK/5/
&gt; 
&gt; Steps to reproduce the problem:
&gt; 1. Create a hidden element
&gt; 2. Add a child element with contenteditable=&quot;true&quot;
&gt; 3. Query child element isContentEditable
&gt; 
&gt; What is the expected behavior?
&gt; Return true
&gt; 
&gt; What went wrong?
&gt; Returned false

Reproduced it on Safari 7.0.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1012369</commentid>
    <comment_count>1</comment_count>
    <who name="Piotrek Koszuliński (Reinmar)">pkoszulinski</who>
    <bug_when>2014-05-29 00:48:25 -0700</bug_when>
    <thetext>This issue causes CKEditor to initialize in read only mode if initialization happened in hidden container. This is a common case for SPAs.

Of course it can be workaround by getAttribute(&apos;contenteditable&apos;) and DOM traversing, but it&apos;s hard to control whether editor is visible when reading isContentEditable. And switching to deoptimised version is not good option, because we use this check very often.

Related ticket: http://dev.ckeditor.com/ticket/9814</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013308</commentid>
    <comment_count>2</comment_count>
    <who name="cyndi">man.zhong</who>
    <bug_when>2014-06-04 07:34:23 -0700</bug_when>
    <thetext>checked on WebKit-EFL, can&apos;t repro this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013767</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2014-06-06 02:22:16 -0700</bug_when>
    <thetext>Doesn&apos;t reproduce on the latest nightly builds of WebKit either. It&apos;s probably fixed by http://trac.webkit.org/changeset/160966.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013820</commentid>
    <comment_count>4</comment_count>
    <who name="Piotrek Koszuliński (Reinmar)">pkoszulinski</who>
    <bug_when>2014-06-06 11:13:43 -0700</bug_when>
    <thetext>In which version of Safari that commit will be included? I can still reproduce this issue on Safari 7.0.4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013829</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-06-06 11:40:36 -0700</bug_when>
    <thetext>Please test with a nightly build from &lt;http://nightly.webkit.org&gt;. We never discuss future Apple releases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013845</commentid>
    <comment_count>6</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2014-06-06 14:03:47 -0700</bug_when>
    <thetext>Confirmed that this bug has been fixed by r160966.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>