Help wanted for Mozilla splash page: How to include fallback content in iframe

From object to iframe(iframes in detail)” says:

you can include fallback content between the opening and closing <iframe></iframe> tags

However, if I actually try to do that, W3C HTML Validator says:

Text not allowed in element iframe in this context.

I haven’t found how to include fallback content without such a error. How can I achieve that?

Good observation, @user-p.

The iframe article and the specifications say that no content is allowed. So it seems it’s not possible anymore to build a valid HTML document with iframe fallback content. This makes kind of sense because even older versions of Internet Explorer support iframes. There aren’t any browsers left that need a fallback.

You could open an issue on the MDN GitHub for this error in the article.

Have a nice day,
Michael

1 Like

I appreciate checking the article, your explanation, and showing me the example what I can do; I wasn’t too sure about what I should/can do after finding such a problem.

1 Like