mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-10 21:12:01 +03:00
[project @ 2003-06-06 03:12:28 by jmb]
Begin to munge <embed>s into <object>s svn path=/import/netsurf/; revision=171
This commit is contained in:
parent
3623d1f46f
commit
3f21e7a40e
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* $Id: box.c,v 1.48 2003/06/06 02:08:56 jmb Exp $
|
||||
* $Id: box.c,v 1.49 2003/06/06 03:12:28 jmb Exp $
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
@ -1505,7 +1505,7 @@ struct box* box_embed(xmlNode *n, struct content *content,
|
||||
/* embed src */
|
||||
if ((s = (char *) xmlGetProp(n, (const xmlChar *) "src"))) {
|
||||
|
||||
po->src = strdup(s);
|
||||
po->data = strdup(s);
|
||||
url = url_join(strdup(s), content->url);
|
||||
LOG(("embed '%s'", url));
|
||||
xmlFree(s);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* $Id: plugin.c,v 1.5 2003/06/06 02:30:00 jmb Exp $
|
||||
* $Id: plugin.c,v 1.6 2003/06/06 03:12:28 jmb Exp $
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
@ -69,9 +69,9 @@ void plugin_decode(struct content* content, char* url, struct box* box,
|
||||
|
||||
/* no data so try using classid instead */
|
||||
|
||||
po->data = strdup(po->classid);
|
||||
if (po->classid != NULL) {
|
||||
|
||||
if (po->data != NULL) {
|
||||
po->data = strdup(po->classid);
|
||||
|
||||
if (strnicmp(po->data,"clsid:",6) == 0) {
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* $Id: plugin.h,v 1.2 2003/06/06 02:08:56 jmb Exp $
|
||||
* $Id: plugin.h,v 1.3 2003/06/06 03:12:28 jmb Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NETSURF_RISCOS_PLUGIN_H_
|
||||
@ -8,7 +8,6 @@
|
||||
struct plugin_object {
|
||||
|
||||
char* data;
|
||||
char* src;
|
||||
char* type;
|
||||
char* codetype;
|
||||
char* codebase;
|
||||
|
Loading…
Reference in New Issue
Block a user