Bug 16841 - Display Error: empty object renders with a space in Safari, different in FF
Summary: Display Error: empty object renders with a space in Safari, different in FF
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL: http://youthoughtwewouldntnotice.com/...
Keywords: HasReduction, InRadar
: 10622 15205 21482 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-11 10:42 PST by Cameo Wood
Modified: 2010-02-25 04:10 PST (History)
9 users (show)

See Also:


Attachments
Minimal test case (268 bytes, text/html)
2008-02-07 05:41 PST, Robert Blaut
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>