<?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>44918</bug_id>
          
          <creation_ts>2010-08-30 18:19:03 -0700</creation_ts>
          <short_desc>Cannot make lists quoted on gmail</short_desc>
          <delta_ts>2017-07-18 08:29:33 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>GoogleBug</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>19795</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>enrica</cc>
    
    <cc>jparent</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>mjs</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>271835</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-08-30 18:19:03 -0700</bug_when>
    <thetext>Reproductions steps:
1. Goto gmail, and compose.
2. Type in nested lists
3. Quote the entire nested lists by clicking &quot;(quote)

Expected results:
Lists are quoted

Actual results:
Spacing between lists are modified weirdly but lists are not quoted properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275646</commentid>
    <comment_count>1</comment_count>
    <who name="Julie Parent">jparent</who>
    <bug_when>2010-09-07 23:57:29 -0700</bug_when>
    <thetext>This is a bug in Gmail&apos;s text editor (TrogEdit), not WebKit.

If you look at the generated HTML, the blockquotes are there, they just do not have the classname on them for the special quoted style.

My guess is that it is an issue in the TrogEdit code that is trying to work around https://bugs.webkit.org/show_bug.cgi?id=19795.

Can you file a bug against TrogEdit instead?  http://code.google.com/p/closure-library/issues/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275650</commentid>
    <comment_count>2</comment_count>
      <attachid>66852</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-09-08 00:05:47 -0700</bug_when>
    <thetext>Created attachment 66852
demo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275652</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-09-08 00:09:13 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; If you look at the generated HTML, the blockquotes are there, they just do not have the classname on them for the special quoted style.

Sure, blockquotes are there but they aren&apos;t at the places I&apos;d expect it to be.  For example, if I called formatBlock on:
&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;

I&apos;d expect to get:
&lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;

but instead, I get:
&lt;ul&gt;&lt;li&gt;&lt;blockquote&gt;hello&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;&lt;blockquote&gt;world&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;

&gt; My guess is that it is an issue in the TrogEdit code that is trying to work around https://bugs.webkit.org/show_bug.cgi?id=19795.
&gt; 
&gt; Can you file a bug against TrogEdit instead?  http://code.google.com/p/closure-library/issues/

It&apos;s possible that TrogEdit&apos;s doing something wrong as well but I think we should fix this bug in WebKit first.  It&apos;s quite unreasonable for me to ask TrogEdit and other editing tools to work-around this problem.  I&apos;m surprised that this has never been a problem in Mail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275654</commentid>
    <comment_count>4</comment_count>
    <who name="Julie Parent">jparent</who>
    <bug_when>2010-09-08 00:11:00 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #1)
&gt; &gt; If you look at the generated HTML, the blockquotes are there, they just do not have the classname on them for the special quoted style.
&gt; 
&gt; Sure, blockquotes are there but they aren&apos;t at the places I&apos;d expect it to be.  For example, if I called formatBlock on:
&gt; &lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;
&gt; 
&gt; I&apos;d expect to get:
&gt; &lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;hello&lt;/li&gt;&lt;li&gt;world&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;
&gt; 
&gt; but instead, I get:
&gt; &lt;ul&gt;&lt;li&gt;&lt;blockquote&gt;hello&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;&lt;blockquote&gt;world&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;

Right.  That behavior is the other bug I referenced, https://bugs.webkit.org/show_bug.cgi?id=19795.

&gt; 
&gt; &gt; My guess is that it is an issue in the TrogEdit code that is trying to work around https://bugs.webkit.org/show_bug.cgi?id=19795.
&gt; &gt; 
&gt; &gt; Can you file a bug against TrogEdit instead?  http://code.google.com/p/closure-library/issues/
&gt; 
&gt; It&apos;s possible that TrogEdit&apos;s doing something wrong as well but I think we should fix this bug in WebKit first.  It&apos;s quite unreasonable for me to ask TrogEdit and other editing tools to work-around this problem.  I&apos;m surprised that this has never been a problem in Mail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>318296</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-12-07 10:28:10 -0800</bug_when>
    <thetext>This almost works now.  The problem we have now is that we split lists when formatting by a block.  For example, if we had:
&lt;ol&gt;
&lt;li&gt;hello&lt;/li&gt;
&lt;li&gt;world&lt;/li&gt;
&lt;/ol&gt;

and formatted the entire list, then we&apos;ll end up with
&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;hello&lt;/li&gt;
&lt;/ol&gt;
&lt;ol&gt;
&lt;li&gt;world&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

Merging lists don&apos;t work because if we had:
&lt;ol&gt;
&lt;li&gt;hello&lt;ol&gt;&lt;li&gt;abc&lt;/li&gt;&lt;li&gt;def&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;
&lt;li&gt;world&lt;/li&gt;
&lt;/ol&gt;
then we also need to merge li.  But we can&apos;t always merge li&apos;s either.  It turns out that once we split nodes, it becomes ambiguous whether or not we should merge nodes.

So what we should do instead is NOT to split.  Instead of moving each paragraph separately, we need to move all them at once when the entire block is selected.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>66852</attachid>
            <date>2010-09-08 00:05:47 -0700</date>
            <delta_ts>2010-09-08 00:05:47 -0700</delta_ts>
            <desc>demo</desc>
            <filename>blockformat-test.html</filename>
            <type>text/html</type>
            <size>298</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">PGh0bWw+CjxkaXYgaWQ9InRlc3QiIGNvbnRlbnRlZGl0YWJsZT48dWw+PGxpPmhlbGxvPC9saT48
bGk+d29ybGQ8L2xpPjwvdWw+PC9kaXY+CjxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4K
CndpbmRvdy5nZXRTZWxlY3Rpb24oKS5zZWxlY3RBbGxDaGlsZHJlbih0ZXN0KTsKZG9jdW1lbnQu
ZXhlY0NvbW1hbmQoJ2Zvcm1hdEJsb2NrJywgZmFsc2UsICdibG9ja3F1b3RlJyk7CmRvY3VtZW50
LmJvZHkuYXBwZW5kQ2hpbGQoZG9jdW1lbnQuY3JlYXRlVGV4dE5vZGUodGVzdC5pbm5lckhUTUwp
KTsKCjwvc2NyaXB0Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>