<?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>25473</bug_id>
          
          <creation_ts>2009-04-29 17:56:20 -0700</creation_ts>
          <short_desc>Outdent outdents too much</short_desc>
          <delta_ts>2009-07-13 19:00:25 -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>PC</rep_platform>
          <op_sys>OS X 10.5</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="Julie Parent">jparent</reporter>
          <assigned_to name="Julie Parent">jparent</assigned_to>
          <cc>justin.garcia</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119411</commentid>
    <comment_count>0</comment_count>
    <who name="Julie Parent">jparent</who>
    <bug_when>2009-04-29 17:56:20 -0700</bug_when>
    <thetext>If an indent blockquote contains multiple blocks, and the cursor is in the first block, outdent will outdent the entire blockquote, rather than just the first block.  This happens for content like &lt;div&gt;one&lt;/div&gt;&lt;div&gt;two&lt;/div&gt;, not one&lt;br&gt;two.

Example of issue: http://www.plexode.com/cgi-bin/eval3.py#ht=%3Cdiv%20contentEditable%20id%3D&apos;ce&apos;%3E%3Cblockquote%20class%3D%22webkit-indent-blockquote%22%20style%3D%22margin%3A%200%200%200%2040px%3B%20border%3A%20none%3B%20padding%3A%200px%3B%22%3E%3Cdiv%3Eone%3C%2Fdiv%3E%3Cdiv%3Etwo%3C%2Fdiv%3E%3C%2Fblockquote%3E%3C%2Fdiv%3E&amp;ohh=1&amp;ohj=0&amp;jt=var%20ce%20%3D%20gebi(&apos;ce&apos;)%3B%0Avar%20sel%20%3D%20window.getSelection()%3B%0Asel.setPosition(ce.firstChild.firstChild%2C%200)%3B%0Adocument.execCommand(&apos;outdent&apos;%2C%20false%2C%20null)%3B%0A%0Ace.innerHTML&amp;ojh=0&amp;ojj=0&amp;ms=100&amp;oth=0&amp;otj=0&amp;cex=1

Compare to: http://www.plexode.com/cgi-bin/eval3.py#ht=%3Cdiv%20contentEditable%20id%3D&apos;ce&apos;%3E%3Cblockquote%20class%3D%22webkit-indent-blockquote%22%20style%3D%22margin%3A%200%200%200%2040px%3B%20border%3A%20none%3B%20padding%3A%200px%3B%22%3Eone%3Cbr%3Etwo%3C%2Fblockquote%3E%3C%2Fdiv%3E&amp;ohh=1&amp;ohj=0&amp;jt=var%20ce%20%3D%20gebi(&apos;ce&apos;)%3B%0Avar%20sel%20%3D%20window.getSelection()%3B%0Asel.setPosition(ce.firstChild.firstChild%2C%200)%3B%0A%0Adocument.execCommand(&apos;outdent&apos;%2C%20false%2C%20null)%3B%0A%0Ace.innerHTML&amp;ojh=0&amp;ojj=0&amp;ms=100&amp;oth=0&amp;otj=0&amp;cex=1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>130786</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2009-07-09 17:45:18 -0700</bug_when>
    <thetext>This bug does not reproduce anymore.  Assume it has been resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>131470</commentid>
    <comment_count>2</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2009-07-13 19:00:25 -0700</bug_when>
    <thetext>Ya this looks fixed, closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>