W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

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

From: <bugzilla@jessica.w3.org>
Date: Sun, 27 Jan 2013 22:11:01 +0000
To: public-webapps@w3.org
Message-ID: <bug-20788-2927@http.www.w3.org/Bugs/Public/>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:57 GMT