Bug 83970 - HTML object tag codebase attribute is not used as a base one for data URL
Summary: HTML object tag codebase attribute is not used as a base one for data URL
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 82705 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-13 20:08 PDT by dizaipeter
Modified: 2012-04-20 10:04 PDT (History)
4 users (show)

See Also:


Attachments
test case (638 bytes, application/xhtml+xml)
2012-04-16 09:30 PDT, Alexey Proskuryakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dizaipeter 2012-04-13 20:08:30 PDT
HTML object tag  codebase attribute can not be rendered.

I must clarify that the picture is exist, you can directly use the 

   URL http://testfest.openmobilealliance.org/XHTML_Suite_3/Content/Flower_120x160.gif to access.
Comment 1 dizaipeter 2012-04-13 20:09:24 PDT
*** Bug 82705 has been marked as a duplicate of this bug. ***
Comment 2 dizaipeter 2012-04-13 20:12:02 PDT
also I the opera can render this feature as normal.
Comment 3 Alexey Proskuryakov 2012-04-16 09:30:25 PDT
Created attachment 137353 [details]
test case

Attaching test case from duplicate.
Comment 4 Alexey Proskuryakov 2012-04-16 09:34:31 PDT
Does this cause issues on any real web site? This is a very unusual way to draw an image.
Comment 5 dizaipeter 2012-04-17 04:57:28 PDT

(In reply to comment #4)
> Does this cause issues on any real web site? This is a very unusual way to draw an image.

yes this website is from the open mobile alliance. 

you can test it  through these steps. 

1. access  http://testfest.openmobilealliance.org/  
2. access  3c. XHTML TS 3 (TFP 2009/07/31)
3. access  •object_Data with Codebase
Comment 6 dizaipeter 2012-04-17 04:59:55 PDT
IE , and Chrome can not render, but firefox and opera can render
Comment 7 Alexey Proskuryakov 2012-04-17 09:29:27 PDT
This is a test case, not an actual site users would go to.

As long as we're compatible with IE, the vast majority of browsers have interoperable behavior, so a very strong reason would be needed for us to change. I doubt that such an argument can exist in this case - using codebase argument value as base URL just seems like a bug in Firefox. I see no reason why location of code would be related to location of data.
Comment 8 dizaipeter 2012-04-19 04:12:30 PDT
(In reply to comment #7)
> This is a test case, not an actual site users would go to.
> 
> As long as we're compatible with IE, the vast majority of browsers have interoperable behavior, so a very strong reason would be needed for us to change. I doubt that such an argument can exist in this case - using codebase argument value as base URL just seems like a bug in Firefox. I see no reason why location of code would be related to location of data.


Why codebase should replace base value ,you can refer W3C specification
Comment 9 Alexey Proskuryakov 2012-04-19 08:07:19 PDT
I checked the specification, and don't see anything like this. The specification is at <http://dev.w3.org/html5/spec/single-page.html>.
Comment 10 Ian 'Hixie' Hickson 2012-04-19 12:38:48 PDT
According to the HTML standard (http://whatwg.org/html) the codebase attribute does nothing, as far as I can tell. Its only effect is on the .codeBase IDL attribute, which just reflects the codebase="" content attribute, that's it.
Comment 11 dizaipeter 2012-04-20 05:43:28 PDT
http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html


I have read the specification on this URL page .
You can see this section:

Attribute definitions

classid = uri [CT] 
This attribute may be used to specify the location of an object's implementation via a URI. It may be used together with, or as an alternative to the data attribute, depending on the type of object involved. 
codebase = uri [CT] 
This attribute specifies the base path used to resolve relative URIs specified by the classid, data, and archive attributes. When absent, its default value is the base URI of the current document. 
codetype = content-type [CI] 
This attribute specifies the content type of data expected when downloading the object specified by classid. This attribute is optional but recommended when classid is specified since it allows the user agent to avoid loading information for unsupported content types. When absent, it defaults to the value of the type attribute. 
data = uri [CT] 
This attribute may be used to specify the location of the object's data, for instance image data for objects defining images, or more generally, a serialized form of an object which can be used to recreate it. If given as a relative URI, it should be interpreted relative to the codebase attribute. 
type = content-type [CI] 
This attribute specifies the content type for the data specified by data. This attribute is optional but recommended when data is specified since it allows the user agent to avoid loading information for unsupported content types. If the value of this attribute differs from the HTTP Content-Type returned by the server when the object is retrieved, the HTTP Content-Type takes precedence. 
archive = uri-list [CT] 
This attribute may be used to specify a space-separated list of URIs for archives containing resources relevant to the object, which may include the resources specified by the classid and data attributes. Preloading archives will generally result in reduced load times for objects. Archives specified as relative URIs should be interpreted relative to the codebase attribute. 
declare [CI] 
When present, this boolean attribute makes the current OBJECT definition a declaration only. The object must be instantiated by a subsequent OBJECT definition referring to this declaration. 
standby = text [CS] 
This attribute specifies a message that a user agent may render while loading the object's implementation and data. 


As far as I know, webkit, can support htlm4.01, and partial HTML5 is suported
Comment 12 dizaipeter 2012-04-20 05:50:30 PDT
I think the webkit should support html4.01 specfication . And if need develop HTML5 fearture further, it should also compatible with HTML4.01
Comment 13 dizaipeter 2012-04-20 05:59:23 PDT
As many pages are writed based on HTML4.01, Does webkit can not support HTML4.01 but only support HTML5 ??????????????
Comment 14 Alexey Proskuryakov 2012-04-20 08:46:32 PDT
HTML5 supersedes all previous versions.

If you think that this is a mistake in HTML5, please get HTML5 changed (this is very doable when you provide strong reasons), and re-open the bug once it specifies the proposed behavior. Otherwise, it's just a bug in Firefox.

Please also note that WebKit does not support XHTML mobile profiles (I'm saying that because the test case has xhtml-mobile DTD). That should not be of importance in this particular case, because the difference is observable with DTD removed, too.
Comment 15 dizaipeter 2012-04-20 10:04:03 PDT
First I have not say that it is a mistake in HTML5 . And I say that webkit should compatible with html4.01.  If webkit can not render codebase ,why it is write codebase relative code in it?  
You just think it is a mistake in firefox, I feel a little pity .

I am just a reporter, have no right to tell you what to do. How to deal with this bug ,depend on your organization.  And I really hope webkit organization can fix this bug.