The Jedi Academy. THE Place for Jedi training.
Forums
Content
The Academy
Learn
Communicate
Personal


Forums | General Discussion
HTML validation
Dec 10 2005 06:03pm

JavaGuy
 - Student
JavaGuy
Conundrum: Page won't validate if I use the bogus "allowtransparency" attribute for an Iframe. If I don't use it, IE renders the frame wrong. The person who's going to sign the check for this one likes IE. ;) The client hasn't asked for "strict" validation, but it's nice to have and may prevent headaches later. Has anybody ever gotten a transparent Iframe to work in IE without using non-compliant attributes?

_______________
My signature is only one line. You're welcome.

  Login and add your comment!  
Comments
Dec 14 2005 03:49pm

JamesF1
 - Student
 JamesF1

Just thought of something, with XHTML standards as they are now (not sure if this is the type of thing you're talking about, as I used scrolling divs instaed of iframes, usually, unless an iframe is entirely necessary), you can't do this (example):

<hr noshade>

But you must do

<hr noshade="noshade" />

So maybe if you applied the same to the iframe attribute (you simply repeat the attribute name as the value), then you'll get somewhere. Obviously you won't be needing to close the iframe tag as /> because you have a </iframe> :)
_______________
Website

Dec 13 2005 06:13am

Ian Jandos
 - Student
 Ian Jandos

Just as reference, www.sitepoint.com is a good forum for web type questions ;)

-Ian
_______________
Member #7625 | Since 7.6.04 The Archives

Dec 13 2005 12:08am

Bubu
 - Hubbub
 Bubu

Death to IE!
_______________
make install -not war

Dec 11 2005 03:01pm

JavaGuy
 - Student
 JavaGuy

It still didn't work, but I'll keep that in mind.

I never use regular frames--don't like them at all--but IFrame is very useful.

The problem is that "allowtransparency" is a bogus tag in the first place. IFrames are supposed to allow transparency unless you explicitly tell the frame to have an opaque background. Other browsers render it like that, but IE makes the background opaque unless you explicitly specify IE's proprietary allowtransparency tag. It works okay but breaks validation--not a big deal, but kinda annoying when I go to check my work.


_______________
My signature is only one line. You're welcome.

Dec 11 2005 09:15am

JamesF1
 - Student
 JamesF1

What doctype are you using? If you're using frames, generally, you should be using neither the Transitional nor the Strict doctypes, but the Frameset doctype. You shouldn't have any problems then. If you are, well... I never use frames anyway (even iframes) :P
_______________
Website

Dec 10 2005 09:45pm

Flash
 - Student
 Flash

The only part I understood was IE.:D

Dec 10 2005 06:15pm

AvaloN
 - Student
 AvaloN

:eek:

Boy is my knowledge of computer stuff crappy or what, no idea what u are talking about m8.

This comment was edited by AvaloN on Dec 10 2005 06:15pm.

  Login and add your comment!