Daniel
Daniel

Reputation:

xHTML 1.0 strict - Validate iFrames

Is it possible to validate iFrames in xhtml 1.0 strict? Preferably without any use of javascript to inject the iframe into the page.

I know there is no point in validating just for the sake of validation, but lets just say that I like the green validation message on w3c ;) (I am forced by factors beyond my control to use iframes)

Or maybe there is something very similar I can use in xHTML to get iframe-like behavior without losing compatibility across different browsers? (object?)

Perhaps there is a way to add a second doctype containing iframe rules?

Upvotes: 7

Views: 3895

Answers (2)

Quentin
Quentin

Reputation: 944555

If you need iframes, use Transitional instead of Strict. The point of it is for when you need to use legacy features like iframes.

Upvotes: 0

SpliFF
SpliFF

Reputation: 39014

i'm not sure but I think you can include another page with object as you suggest.

<object data="/another.html" type="text/html"></object>

Upvotes: 5

Related Questions