Bug 13712 - Avoid creating empty inlines when handling parsing errors
Summary: Avoid creating empty inlines when handling parsing errors
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-14 08:23 PDT by mitz
Modified: 2010-09-20 00:45 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2007-05-14 08:23:30 PDT
[This is a follow up on the fix for bug 13603]

It would be nice to refrain from creating additional empty residual style tags when recovering from parsing errors, for example <i><div></i></div> parses into <i></i><div><i></i></div>, and with n block-level tags in between you get n extra empty <i>s. Note, however, that this behavior conforms to the HTML5 spec.
Comment 1 Ian 'Hixie' Hickson 2007-08-23 19:56:41 PDT
Maybe the spec should change on this (if you think so, please send mail if you haven't already).
Comment 2 mitz 2007-08-24 04:01:35 PDT
Bug 15056 is about eliminating the innermost empty inline (which even by the current spec shouldn't exist).
Comment 3 Adam Barth 2010-09-20 00:45:15 PDT
We're matching the HTML5 spec here.  If the spec changes, we can consider this change.