<?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>20788</bug_id>
          
          <creation_ts>2013-01-27 22:11:01 +0000</creation_ts>
          <short_desc>myExecCommand(&apos;indent&apos;) on LI results in a tree with incorrect nesting</short_desc>
          <delta_ts>2013-02-01 12:54:16 +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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Zbynek Winkler">zbynek.winkler</reporter>
          <assigned_to name="Aryeh Gregor">ayg</assigned_to>
          <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>82219</commentid>
    <comment_count>0</comment_count>
    <who name="Zbynek Winkler">zbynek.winkler</who>
    <bug_when>2013-01-27 22:11:01 +0000</bug_when>
    <thetext>On a test case

&lt;ul&gt;
  &lt;li&gt;first&lt;/li&gt;
  &lt;li&gt;second[]&lt;/li&gt;
&lt;/ul&gt;

calling myExecCommand(&apos;indent&apos;) in the js testing implementation results in

&lt;ul&gt;
  &lt;li&gt;first&lt;/li&gt;
  &lt;ul&gt;
    &lt;li&gt;second[]&lt;/li&gt;
  &lt;/ul&gt;
&lt;/ul&gt;

while I would expect

&lt;ul&gt;
  &lt;li&gt;first
    &lt;ul&gt;
      &lt;li&gt;second[]&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

Most browsers follow the suit as do the editors built using the api except wysiwym and ckeditor that reimplement the indent commad to create the tree with the nesting according to my expectations.

I am not that fluent with debugging specs so it is hard for me to tell if the problem is only in the myExecCommand implementation or in the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82474</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2013-02-01 12:54:16 +0000</bug_when>
    <thetext>Yes, the editing spec currently makes lists direct children of other lists without &lt;li&gt; in between.  IIRC, this matches browsers, despite being invalid according to HTML.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>