[Bug 20788] New: myExecCommand('indent') on LI results in a tree with incorrect nesting

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20788

            Bug ID: 20788
           Summary: myExecCommand('indent') on LI results in a tree with
                    incorrect nesting
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML Editing APIs
          Assignee: ayg@aryeh.name
          Reporter: zbynek.winkler@gmail.com
        QA Contact: sideshowbarker+html-editing-api@gmail.com
                CC: mike@w3.org, public-webapps@w3.org

On a test case

<ul>
  <li>first</li>
  <li>second[]</li>
</ul>

calling myExecCommand('indent') in the js testing implementation results in

<ul>
  <li>first</li>
  <ul>
    <li>second[]</li>
  </ul>
</ul>

while I would expect

<ul>
  <li>first
    <ul>
      <li>second[]</li>
    </ul>
  </li>
</ul>

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Sunday, 27 January 2013 22:11:02 UTC