<?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>88043</bug_id>
          
          <creation_ts>2012-05-31 21:33:21 -0700</creation_ts>
          <short_desc>Author Shadow DOM should be disabled in contenteditable temporarily.</short_desc>
          <delta_ts>2012-06-21 10:33:30 -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>WONTFIX</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="Shinya Kawanaka">shinyak</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>dominicc</cc>
    
    <cc>hayato</cc>
    
    <cc>morrita</cc>
    
    <cc>rniwa</cc>
    
    <cc>tasak</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>638956</commentid>
    <comment_count>0</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-05-31 21:33:21 -0700</bug_when>
    <thetext>When Shadow DOM is attached in contenteditable, it causes a lot of crashes while editing.

To make Shadow DOM go further, we should consider disabling Author Shadow DOM temporarily.
Adding User Agent Shadow DOM, which is used for &lt;input&gt;, &lt;textarea&gt;, &lt;meter&gt;, etc, should be OK though.

Note that we should be able to enable Author Shadow DOM for debugging in DRT!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>638958</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-05-31 21:42:30 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; When Shadow DOM is attached in contenteditable, it causes a lot of crashes while editing.

I don&apos;t think that&apos;s an acceptable solution. We can&apos;t disable a bunch of features that don&apos;t work well inside shadow DOM arbitrarily. We need to fix editing code to work well with shadow DOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>638968</commentid>
    <comment_count>2</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-05-31 22:03:33 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; When Shadow DOM is attached in contenteditable, it causes a lot of crashes while editing.
&gt; 
&gt; I don&apos;t think that&apos;s an acceptable solution. We can&apos;t disable a bunch of features that don&apos;t work well inside shadow DOM arbitrarily. We need to fix editing code to work well with shadow DOM.

I understand it, but...

We&apos;re just thinking a kind of alternative plan.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>639445</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2012-06-01 09:33:26 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; (In reply to comment #0)
&gt; &gt; &gt; When Shadow DOM is attached in contenteditable, it causes a lot of crashes while editing.
&gt; &gt; 
&gt; &gt; I don&apos;t think that&apos;s an acceptable solution. We can&apos;t disable a bunch of features that don&apos;t work well inside shadow DOM arbitrarily. We need to fix editing code to work well with shadow DOM.
&gt; 
&gt; I understand it, but...
&gt; 
&gt; We&apos;re just thinking a kind of alternative plan.

I think we should discuss this idea first. I am kind of ambivalent about what&apos;s the right thing to do here. We did this with disabling author shadows on inputs, and now we nearly trained the few peeps who experiment with shadow DOM that inputs are not usable with shadow DOM, which seems like a bad thing.  On the other hand, we don&apos;t want to be crashing like drunk monkeys in ferraris.

Let&apos;s put it this way: I am confident in your abilities to climb HTML editing learning curve and identify the root issues (I am sure there are only a few of those) and fix this in a reasonable timeframe :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>639532</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-06-01 11:15:35 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; I think we should discuss this idea first. I am kind of ambivalent about what&apos;s the right thing to do here. We did this with disabling author shadows on inputs, and now we nearly trained the few peeps who experiment with shadow DOM that inputs are not usable with shadow DOM, which seems like a bad thing.  On the other hand, we don&apos;t want to be crashing like drunk monkeys in ferraris.

Right, this is not a desirable solution if we want a good consistent API for the Web and want other browser vendors to implement it :)  For example, why would Microsoft or Mozilla should disable contenteditable in their shadow DOM if their editing code was much more sound than ours?

&gt; Let&apos;s put it this way: I am confident in your abilities to climb HTML editing learning curve and identify the root issues (I am sure there are only a few of those) and fix this in a reasonable timeframe :)

I&apos;m more than happy to look at those crashes if you guys can send a list of crashes with stack trace &amp; reduction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>654670</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-06-21 10:33:30 -0700</bug_when>
    <thetext>Probably not.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>