-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<embed> should support loading random HTML documents, like <object> #513
Comments
I would like to work on it, as in the embed element specifying where it is written for "typically non HTML" content or any suggestion for particular changes that should be done? |
The processing model for |
@bzbarsky yes got your point. Working on it |
Fascinating, Chrome at least treats text/asdf as text/html, whereas it treats application/asdf as "unsupported plugin". (Related to #3876) |
That's a value of the "type" attribute, or an HTTP header value? What Firefox is implementing here is that if the The determination of whether it's a type we know about is identical to the one that
Again, the basic determination is the same one that |
Hmm, that's very different from the current spec's architecture; in particular the current spec always does the request (if a src="" attribute is present). Not sure how much work to bite off here; I'm coming from #3876 which looked like a really small change (see #3900 / https://whatpr.org/html/3900/iframe-embed-object.html#the-embed-element-setup-steps for my current draft). I was hoping we could just expand the image/svg+xml case. |
Yes, this is what Firefox was doing until recently. We changed just a bit ago due to some issues with that setup. We could keep doing the request, but we wouldn't want to actually render it.... |
Yup, that's what I did. Now we just render nothing though, where it sounds like we should at least show a "Unsupported Format" box. |
Long story short, everyone except Gecko seems to support this:
(even without the
.html
extension) already, even though that doesn't follow the current HTML spec. @qdot is adding support in Gecko because of people who are changing their YouTube embeds from Flash to HTML video by just changing the URL and hence loading HTML in<embed>
. The spec should just be updated to acknowledge this reality.See https://bugzilla.mozilla.org/show_bug.cgi?id=1237963 for a slightly more rambly discussion with concrete examples of YouTube embeds.
The text was updated successfully, but these errors were encountered: