<?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>13893</bug_id>
          
          <creation_ts>2011-08-24 19:55:36 +0000</creation_ts>
          <short_desc>Only HTML elements should be editable</short_desc>
          <delta_ts>2011-11-08 19:24:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - HTML Editing APIs</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Aryeh Gregor">ayg</assigned_to>
          <cc>annevk</cc>
    
    <cc>ehsan</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact name="HTML Editing APIs spec bugbot">sideshowbarker+html-editing-api</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55771</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-24 19:55:36 +0000</bug_when>
    <thetext>Ehsan pointed out that it doesn&apos;t make any sense to let the user edit SVG or MathML unless the browser has a special editor for them.  We should make only HTML elements editable/editing hosts for now.  Embedded SVG/MathML should be treated as opaque, like an &lt;img&gt;.  This probably means the root node of the foreign content does need to be editable, so we know we can delete it, but we don&apos;t want to touch any of its descendants.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55787</commentid>
    <comment_count>1</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2011-08-25 02:50:51 +0000</bug_when>
    <thetext>Also, I think we should specify that a bunch of things should work for those subtrees, such as resizing, and copying to the clipboard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55934</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-28 16:00:17 +0000</bug_when>
    <thetext>I&apos;ll want to define some category of content that includes img, video, audio, svg, math, maybe a few other things (hr?), and specify all of them to be draggable/resizable/etc.  Currently I treat some of these specially in some cases but not in others -- I should do some unification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56029</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-08-30 07:22:49 +0000</bug_when>
    <thetext>HTML nested inside SVG should still be editable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56047</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-30 16:54:39 +0000</bug_when>
    <thetext>We talked about that.  In theory maybe yes, but it might be complicated.  At any rate, as far as the spec is concerned, adding the contenteditable attribute to HTML-in-SVG-in-HTML can still be allowed, but I don&apos;t think it should inherit the editability of an HTML ancestor automatically.  &lt;svg&gt; should be treated similarly to &lt;object&gt; or &lt;img src=foo.svg&gt; by default, which means the whole thing is one big image.  Allowing parts to be editable would be a bit of a UI problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56057</commentid>
    <comment_count>5</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2011-08-30 19:09:56 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; We talked about that.  In theory maybe yes, but it might be complicated.  At
&gt; any rate, as far as the spec is concerned, adding the contenteditable attribute
&gt; to HTML-in-SVG-in-HTML can still be allowed, but I don&apos;t think it should
&gt; inherit the editability of an HTML ancestor automatically.  &lt;svg&gt; should be
&gt; treated similarly to &lt;object&gt; or &lt;img src=foo.svg&gt; by default, which means the
&gt; whole thing is one big image.  Allowing parts to be editable would be a bit of
&gt; a UI problem.

Yes.  To elaborate, I think we should treat SVG and MathML content as contentEditable=&quot;false&quot; by default.  Therefore, any HTML content inside such elements should be treated as non-editable by default.  But of course the author might specify the contentEditable attribute on such elements explicitly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59756</commentid>
    <comment_count>6</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-11-08 19:24:21 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/editing/rev/f4f95c3f51d6

I&apos;m not actually testing this requirement anywhere for the time being, since it&apos;s a bit niche.  There&apos;s no way to actually create &lt;svg&gt; or &lt;math&gt; right now using the editing APIs anyway.  But the requirement is now there.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>