<?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>6302</bug_id>
          
          <creation_ts>2005-12-30 05:01:29 -0800</creation_ts>
          <short_desc>Problem with incorrectly nested HTML tags</short_desc>
          <delta_ts>2007-11-22 13:19:17 -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>DOM</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Markus Dehmann">markus.dehmann</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hyatt</cc>
    
    <cc>ian</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27236</commentid>
    <comment_count>0</comment_count>
    <who name="Markus Dehmann">markus.dehmann</who>
    <bug_when>2005-12-30 05:01:29 -0800</bug_when>
    <thetext>If a &quot;bold&quot; tag is not closed in the current nesting element, but in a later element, safari ignores it.  Here 
is a mini example (I hope bugzilla displays the HTML correctly):

&lt;html&gt;&lt;body&gt;
&lt;div&gt;&lt;p&gt;plain&lt;b&gt;bold&lt;/p&gt;&lt;/div&gt;
&lt;div&gt;&lt;p&gt;&lt;/b&gt;plain&lt;/p&gt;&lt;/div&gt;
&lt;/body&gt;&lt;/html&gt;

The second &quot;plain&quot; is plain in firefox and opera, as expexted, but safari makes it bold.  In safari, it is 
not possible to close the b tag after p and div have closed.

Of course, the HTML is invalid, but safari should deal with it.  Making the second &quot;plain&quot; plain and not 
bold would be the expected behavior.

The problem occurred in a web forum where one user used a b tag in his posting, but did not close it.  
The posting was automatically enclosed in p and div tags.  Now, all subsequent postings were in bold 
font (see http://wahnzeit.libsyn.com/index.php?post_id=38396&amp;comments=on).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31785</commentid>
    <comment_count>1</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-02-07 14:34:46 -0800</bug_when>
    <thetext>Confirmed. Adding testcase in a sec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31786</commentid>
    <comment_count>2</comment_count>
      <attachid>6336</attachid>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-02-07 14:35:04 -0800</bug_when>
    <thetext>Created attachment 6336
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31789</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-02-07 15:07:20 -0800</bug_when>
    <thetext>Duplicate of Bug 6854 or vice-versa?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31818</commentid>
    <comment_count>4</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-02-08 01:41:28 -0800</bug_when>
    <thetext>*** Bug 6854 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62009</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-11-22 12:33:13 -0800</bug_when>
    <thetext>Fixed by Mitz in &lt;http://trac.webkit.org/projects/webkit/changeset/21472&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>6336</attachid>
            <date>2006-02-07 14:35:04 -0800</date>
            <delta_ts>2006-02-07 14:35:04 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>unclosed-bold.html</filename>
            <type>text/html</type>
            <size>59</size>
            <attacher name="Joost de Valk (AlthA)">joost</attacher>
            
              <data encoding="base64">PGRpdj48cD5wbGFpbjxiPmJvbGQ8L3A+PC9kaXY+CjxkaXY+PHA+PC9iPnBsYWluPC9wPjwvZGl2
Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>