Bug 16841

Summary: Display Error: empty object renders with a space in Safari, different in FF
Product: WebKit Reporter: Cameo Wood <cameowood>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: 01-reg, anantha, aroben, ian, jddcef, jon, mitz, mrowe, webkit
Priority: P2 Keywords: HasReduction, InRadar
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
URL: http://youthoughtwewouldntnotice.com/blog3/?p=647
Attachments:
Description Flags
Minimal test case none

Description Cameo Wood 2008-01-11 10:42:27 PST
data:text/html,<p align="center"><object height="350" width="425"></object></p>

I'm not sure which behaviour is correct, but I thought I'd send this along to you guys to look into at mrowe's recommendation.
Comment 1 Dave Hyatt 2008-01-11 10:49:07 PST
It's almost like Firefox is doing <object> fallback for empty object elements (so they turn into spans effectively and then the width/height is ignored).  It's not clear to me if that should be done or not, since technically there is nothing to fall back to.



Comment 2 Ian 'Hixie' Hickson 2008-01-14 18:42:08 PST
I'd say the following two tests should be handled the same:
   data:text/html,<p><object height="350" width="425"></object></p>
   data:text/html,<p><object height="350" width="425">X</object></p>

I don't think we should change fallback behaviour just because the element is empty.
Comment 3 Eric Seidel (no email) 2008-02-06 16:24:11 PST
This is related and possibly a dupe of 15205.
Comment 4 Robert Blaut 2008-02-07 05:41:20 PST
Created attachment 18982 [details]
Minimal test case
Comment 5 Robert Blaut 2008-02-07 05:43:36 PST
*** Bug 15205 has been marked as a duplicate of this bug. ***
Comment 6 Robert Blaut 2008-02-07 05:51:37 PST
*** Bug 10622 has been marked as a duplicate of this bug. ***
Comment 7 Eric Seidel (no email) 2008-05-05 10:11:19 PDT
Hyatt, Hixie: if you two disagree with FF's behavior, it would be great if you could file a bug with them.  It seems real world websites depend on this (given the dupes we've seen reported).
Comment 8 Eric Seidel (no email) 2008-05-05 10:12:19 PDT
Oh, and BTW, this is not just FF which we're differing from.  FF is just matching IE's behavior here.  IE collapses empty <object> tags as well.
Comment 9 Mark Rowe (bdash) 2008-10-08 14:17:39 PDT
*** Bug 21482 has been marked as a duplicate of this bug. ***
Comment 10 Mark Rowe (bdash) 2008-10-08 14:24:02 PDT
<rdar://problem/6279163>