<?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>4959</bug_id>
          
          <creation_ts>2005-09-12 16:37:51 -0700</creation_ts>
          <short_desc>inline style not terminated properly after &lt;form&gt;</short_desc>
          <delta_ts>2006-02-01 22:43:38 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://etuovi.com/</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="Antti Koivisto">koivisto</reporter>
          <assigned_to name="Timothy Hatcher">timothy</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19544</commentid>
    <comment_count>0</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2005-09-12 16:37:51 -0700</bug_when>
    <thetext>In http://etuovi.com/ the content of the box under headline &quot;pikahaku&quot; is missing. This is because in a 
following kind of construct

&lt;span style=&quot;display:none&quot;&gt;&lt;form&gt;&lt;/span&gt;this stuff should be visible but is not

the style specified in inline element does not terminate on close tag, but continues to be a applied to 
following elements

Works on IE/Gecko</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19545</commentid>
    <comment_count>1</comment_count>
      <attachid>3882</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2005-09-12 16:39:24 -0700</bug_when>
    <thetext>Created attachment 3882
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19547</commentid>
    <comment_count>2</comment_count>
      <attachid>3883</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2005-09-12 17:56:48 -0700</bug_when>
    <thetext>Created attachment 3883
add span as a residual style tag and form as an affected tag

add &lt;span&gt; as residual style tag
add &lt;form&gt; as tag affected by residual style

Actually the second one is enough to fix the page refferred in the bug report
(it uses &lt;font&gt;) but the first one is needed to fix the linked test case. The
first one causes changes in the results of some regression tests (but those may
be harmless as the cases are still visually correct):
editing/deleting/delete-image-003	
editing/undo/redo-typing-001	
editing/undo/undo-typing-001
fast/block/float/031</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21585</commentid>
    <comment_count>3</comment_count>
      <attachid>3883</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-10-08 11:13:36 -0700</bug_when>
    <thetext>Comment on attachment 3883
add span as a residual style tag and form as an affected tag

I&apos;m pretty sure this is not exactly right, because there are many other tags
besides spans that can result in an inline element, for example any custom
non-HTML tag will create an element with the same behavior as the one created
by a span.

But Dave Hyatt is the expert in this area, so waiting for input from him.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21653</commentid>
    <comment_count>4</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2005-10-09 20:07:08 -0700</bug_when>
    <thetext>Agreed, it is probably not right. However the whole mechanism of special casing some html tags for 
different treatment looks rather suspicious to me. At least based on this test case &lt;span&gt; and &lt;b&gt; 
shouln&apos;t be treated any differently, as they are now. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21659</commentid>
    <comment_count>5</comment_count>
      <attachid>3883</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2005-10-09 20:52:06 -0700</bug_when>
    <thetext>Comment on attachment 3883
add span as a residual style tag and form as an affected tag

r=me, but performance tests will need to be run for this one, since it will
probably result in the creation of more elements in our page load tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29509</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-01-22 18:55:28 -0800</bug_when>
    <thetext>I asked Tim to land a couple patches that have been here for a long time, and he agreed to do it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30827</commentid>
    <comment_count>7</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2006-01-31 17:17:32 -0800</bug_when>
    <thetext>Performance tests not affected. Landed in r12508.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31032</commentid>
    <comment_count>8</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-02-01 22:29:42 -0800</bug_when>
    <thetext>fast/block/float/031.html fails right now with actual visual differences in rendering.

Given that this is one of the tests listed as being supposedly unaffected visually, I&apos;m highly suspicious. :)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31033</commentid>
    <comment_count>9</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-02-01 22:33:21 -0800</bug_when>
    <thetext>Yes, &lt;span&gt; cannot be reopened due to residual style.  I verified that this fix broke fast/block/float/031.html, and that the rendering of fast/block/float/031.html is correct without this fix.

I am going to back out only the &lt;span&gt; portion of this bug fix, since as the reporter described, it was not needed for this bug anyway.

(The snippet in fast/block/float/031.html with its crazy mismatched span/a nonsense came from a real-world Web site.)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31034</commentid>
    <comment_count>10</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-02-01 22:43:38 -0800</bug_when>
    <thetext>I backed out the &lt;span&gt; portion of this fix.
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3882</attachid>
            <date>2005-09-12 16:39:24 -0700</date>
            <delta_ts>2005-09-12 16:39:24 -0700</delta_ts>
            <desc>test case</desc>
            <filename>etuovi.html</filename>
            <type>text/html</type>
            <size>72</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5Pgo8c3BhbiBzdHlsZT0iY29sb3I6cmVkIj48Zm9ybT48L3NwYW4+dGhpcyBz
aG91bGQgYmUgYmxhY2sK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>3883</attachid>
            <date>2005-09-12 17:56:48 -0700</date>
            <delta_ts>2005-10-09 20:52:06 -0700</delta_ts>
            <desc>add span as a residual style tag and form as an affected tag</desc>
            <filename>residual-style.patch</filename>
            <type>text/plain</type>
            <size>1153</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">SW5kZXg6IHNyYy9XZWJDb3JlL2todG1sL2h0bWwvaHRtbHBhcnNlci5jcHAKPT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpS
Q1MgZmlsZTogL2N2cy9yb290L1dlYkNvcmUva2h0bWwvaHRtbC9odG1scGFyc2VyLmNwcCx2CnJl
dHJpZXZpbmcgcmV2aXNpb24gMS4xMTEKZGlmZiAtcCAtdSAtcjEuMTExIHNyYy9XZWJDb3JlL2to
dG1sL2h0bWwvaHRtbHBhcnNlci5jcHAKLS0tIHNyYy9XZWJDb3JlL2todG1sL2h0bWwvaHRtbHBh
cnNlci5jcHAJMTAgU2VwIDIwMDUgMjE6MDM6NDQgLTAwMDAJMS4xMTEKKysrIHNyYy9XZWJDb3Jl
L2todG1sL2h0bWwvaHRtbHBhcnNlci5jcHAJMTMgU2VwIDIwMDUgMDA6NDg6NDggLTAwMDAKQEAg
LTkzMyw2ICs5MzMsNyBAQCBib29sIEhUTUxQYXJzZXI6OmlzUmVzaWR1YWxTdHlsZVRhZyhjb25z
CiAgICAgICAgIHJlc2lkdWFsU3R5bGVUYWdzLmluc2VydCh2YXJUYWcubG9jYWxOYW1lKCkuaW1w
bCgpKTsKICAgICAgICAgcmVzaWR1YWxTdHlsZVRhZ3MuaW5zZXJ0KG5vYnJUYWcubG9jYWxOYW1l
KCkuaW1wbCgpKTsKICAgICAgICAgcmVzaWR1YWxTdHlsZVRhZ3MuaW5zZXJ0KHdiclRhZy5sb2Nh
bE5hbWUoKS5pbXBsKCkpOworICAgICAgICByZXNpZHVhbFN0eWxlVGFncy5pbnNlcnQoc3BhblRh
Zy5sb2NhbE5hbWUoKS5pbXBsKCkpOwogICAgIH0KICAgICAKICAgICByZXR1cm4gcmVzaWR1YWxT
dHlsZVRhZ3MuY29udGFpbnModGFnTmFtZS5pbXBsKCkpOwpAQCAtOTYzLDYgKzk2NCw3IEBAIGJv
b2wgSFRNTFBhcnNlcjo6aXNBZmZlY3RlZEJ5UmVzaWR1YWxTdHkKICAgICAgICAgYWZmZWN0ZWRC
bG9ja1RhZ3MuaW5zZXJ0KGR0VGFnLmxvY2FsTmFtZSgpLmltcGwoKSk7CiAgICAgICAgIGFmZmVj
dGVkQmxvY2tUYWdzLmluc2VydChkZFRhZy5sb2NhbE5hbWUoKS5pbXBsKCkpOwogICAgICAgICBh
ZmZlY3RlZEJsb2NrVGFncy5pbnNlcnQocHJlVGFnLmxvY2FsTmFtZSgpLmltcGwoKSk7CisgICAg
ICAgIGFmZmVjdGVkQmxvY2tUYWdzLmluc2VydChmb3JtVGFnLmxvY2FsTmFtZSgpLmltcGwoKSk7
CiAgICAgfQogICAgIAogICAgIHJldHVybiBhZmZlY3RlZEJsb2NrVGFncy5jb250YWlucyh0YWdO
YW1lLmltcGwoKSk7Cg==
</data>
<flag name="review"
          id="696"
          type_id="1"
          status="+"
          setter="hyatt"
    />
          </attachment>
      

    </bug>

</bugzilla>