View Full Version : Has the div SRC attribute been legalized yet?

02-18-2004, 11:00 PM
Well, has it?


Paul Jr
02-18-2004, 11:09 PM
I've never even heard of it... ever...


02-18-2004, 11:15 PM
Why don't you go have a look?

(No, it definitely hasn't, and never will. There are tags made specifically for that purpose.)

02-18-2004, 11:25 PM
Okay, thanks. I wasn't sure if that stuff was outdated.

Paul Jr
02-19-2004, 12:06 AM
Originally posted by liorean
Why don't you go have a look?

(No, it definitely hasn't, and never will. There are tags made specifically for that purpose.)
Well now I know it exists, lol, but sadly I wasn't able to find anything about it in the link you gave. :(

02-19-2004, 01:43 AM
You can't find it because it's never been even in discussion about including it in the HTML standard. And now it's too late.

02-19-2004, 02:16 AM
It may not be legalised, but I think it's been decriminalised in some European countries. Even in the UK, they generally let you off now.

Paul Jr
02-19-2004, 03:42 AM

02-19-2004, 10:17 AM
Here in Amsterdam, you can freely use the src attribute in every Internet cafť, even the police are looking the other way... :D

02-19-2004, 01:49 PM
There was a big argument recently lately when it was decided that in the UK it should be dropped from a class B to a class C (but it's still illegal!)

02-19-2004, 02:09 PM
What the hell where we talking about again? My short term memory fades quickly sometimes....;)

02-19-2004, 02:11 PM
<div src="whatever">, Cannabis and Amsterdam.

02-19-2004, 03:01 PM
ahh, theres no place like CF.

02-19-2004, 04:02 PM
Originally posted by liorean
There are tags made specifically for that purpose.
... object?

Roy Sinclair
02-19-2004, 04:16 PM
Yep, object. It seems that tag is intended to replace all sorts of other tags, IMG, IFRAME, APPLET...

02-19-2004, 04:27 PM
Yes. The object element is intended to replace all other external content elements. However, there are other ways of embedding external content in a document. CSS3 generated content, XFrames, XLink and using namespaces to include elements from other XML languages.

02-19-2004, 04:30 PM
here in the US, opposition to the SRC attribute by crazy fundamentalists is still strong as ever. their "War on SRC" is sapping our coffers and brain cells.

this is an aside, but honestly, how the hell did a country founded by puritanical rejects become the world's biggest superpower.. yeesh..

02-19-2004, 10:14 PM
Okay, was somebody suggesting about 40 replies back up this string that Object was a cleaner alternative to Iframes?

02-19-2004, 10:16 PM
also, i'm curious about the implications that <object> would eventually replace <img> as well..

02-19-2004, 10:24 PM
Object has no SRC element either, according to W3Schools.

Do you use DATA?

02-19-2004, 10:38 PM
Yes, use the data attribute:

<object data="myimage.png" type="image/png">
This is the alt text


<object data="frame.html" type="text/html">
Your browser doesn't properly support HTML. Loser.

02-19-2004, 10:54 PM
Okay, the first one only retrieves blankness but the second one works. Is there some bad syntax here?

<div id="page1" class="page"><object data="C:\Documents and Settings\jcapra\Desktop\CDCI Web\about1.html" type="text/html"></object></div>

<div id="page2" class="page"><iframe width="627" height="419" src="C:\Documents and Settings\jcapra\Desktop\CDCI Web\about1.htm" scrolling="no"></iframe></div>

02-19-2004, 11:10 PM
<object data="frame.html" type="text/html">
is this possible:
<object data="text.txt" type="text/text">a

and wh is it better then the img tag?

02-20-2004, 01:20 AM
i dunno about your syntax, but a random thing that confuses me:

i have been told that iframes are IE only, but they are not, so what's the real deal?

07-09-2007, 05:16 AM
I guess I'm rejuvenating a really old thread, but there's much wisdom on these forums so I hope someone can help me.

I need a DIV tag to pull external content. The reason is not important, I just have to do it for a business reason of bandwidth as I host my help forum externally but would like to be able to show content from there while maintaining only the header of my site. [Yes, it would be great if the site in question -- Google Groups -- allowed me to customize the header right there, but it doesn't].

So, my first design had frames. The header on top had links back to my site with "target=_top" stuff. The frame below showed the content from the external forums.

But now I covet "1.0 Strict" validation, so frames are out. In this thread I found the very useful "object data=" tags, but turns out that text/html objects function very much like the old frames, and any link outside of the OBJECT tag on the same page still needs a target of "_top" or some equivalent otherwise it loads up in the area outside the object tag but on the SAME page!

So, what's the alternative? I could open links through JS, but for people who have turned off JS, I don't want it to be an ugly experience of loading up links in a small header area.

Would appreciate any thoughts!!


07-09-2007, 06:15 AM
Maybe use ajax? http://www.dynamicdrive.com/dynamicindex17/ajaxincludes.htm
Or don't use a strict doctype? I would use JS to implement the target attribute though some may disagree with me. People browsing around with JS disabled generally know that their may be some issues with page display.

This thread has the debate about whether or not the target attribute should be setup using JS.


07-09-2007, 06:24 AM
Thanks. Yes, I thought about huge JS stuff like the modal window stuff that looks appealing for 5 minutes but then the reality hits you -- why should users have to download several JS includes (and you pay bandwidth costs) just to validate the document to 1.0 Strict. I guess I'll stay with 1.0 Transitional then. Many thanks for clearing this up for me.

07-09-2007, 06:35 AM
Btw, any idea why "object data=text/html" stuff doesnt work in IE?

07-09-2007, 06:35 AM
Btw, any idea why "object data=text/html" stuff doesnt work in IE?

07-09-2007, 10:32 AM
Because it must read <object data="filename.htm" type="text/html">. However, support in IE is limited anyway. There are those scrollbars that you canít get rid of. If you donít care about that then itís fine.

12-05-2007, 12:12 AM
Because it must read <object data="filename.htm" type="text/html">. However, support in IE is limited anyway. There are those scrollbars that you can’t get rid of. If you don’t care about that then it’s fine.

Could you not use CSS linked to the external HTML file to change the scrollbars -- like you would with an iframe or div, or is that something that the <object> tag blocks for some reason?

12-05-2007, 12:03 PM
Thereís no problem with scrollbars in any browser but IE. You can add/change/remove the scrollbars as you can with an iframe. Only IE wonít behave or it would only under certain conditions.

There are several discussions about this on the web. here are two interesting links:


12-05-2007, 05:27 PM
The src attribute is planned to be added to any element in the XHTML 2.0 specification (along with href), from what I last heard. Take a look (http://www.ibm.com/developerworks/xml/library/x-futhtml2.html).