RESOLVED FIXED6302
Problem with incorrectly nested HTML tags
https://bugs.webkit.org/show_bug.cgi?id=6302
Summary Problem with incorrectly nested HTML tags
Markus Dehmann
Reported 2005-12-30 05:01:29 PST
If a "bold" 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): <html><body> <div><p>plain<b>bold</p></div> <div><p></b>plain</p></div> </body></html> The second "plain" 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 "plain" 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&comments=on).
Attachments
Testcase (59 bytes, text/html)
2006-02-07 14:35 PST, Joost de Valk (AlthA)
no flags
Joost de Valk (AlthA)
Comment 1 2006-02-07 14:34:46 PST
Confirmed. Adding testcase in a sec.
Joost de Valk (AlthA)
Comment 2 2006-02-07 14:35:04 PST
Created attachment 6336 [details] Testcase
David Kilzer (:ddkilzer)
Comment 3 2006-02-07 15:07:20 PST
Duplicate of Bug 6854 or vice-versa?
Joost de Valk (AlthA)
Comment 4 2006-02-08 01:41:28 PST
*** Bug 6854 has been marked as a duplicate of this bug. ***
Alexey Proskuryakov
Comment 5 2007-11-22 12:33:13 PST
Note You need to log in before you can comment on or make changes to this bug.