-
Notifications
You must be signed in to change notification settings - Fork 823
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Transition back to nested source elements #429
Comments
Just want to note that a lot of good discussion on this topic is taking place in the previously closed issue #5 |
FYI. I was working on this last night. Hopefully have something finished in the next two days. Because I'm unfamiliar with the deprecation cycle for |
Does |
Excellent question @mrdoob . From the embedded content section of the HTML5 spec:
From the sounds of things, the attribute always takes precedence. Another interesting tidbit is this:
This suggests two important things:
From elsewhere in the spec, it also has this to say about
This is a very helpful simplification of the problem. Otherwise, we would have to create a |
I don't think we can do:
It's not valid HTML. It would need to be something like:
|
@mikkoh what aspect of it being not valid are you most concerned about? Personally I would like us to strive for enabling content authors to write the most valid HTML possible. Here are some of my thoughts on this topic: There are a lot of cases where child content might make semantic sense for a custom element, but is not explicitly allowed by the HTML spec. You could make a strong case that Perhaps more importantly, if you add a It is correct to say that an HTML validator will say that using |
I'm cool using |
@cdata This looks like a breaking change, yes? As such, should we prioritize it ahead of 1.0? |
I think this could be implemented in a transitional way so that it works in lieu of attributes but will use the attributes if available. The In other words: it would not necessarily need to be a breaking change. |
Another input point for this conversation. I think this thread shows why it's powerful to leverage |
We're not going to do this because it would only serve to make other file formats like USDZ have a more prominent place in our API. Instead, I'm looking at a vaguely similar-looking API which is instead for bringing multiple glTF models into the same scene (think arranging your couch and end tables). I think this will have much more value to our users. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
See thread in #5 for more information.
As @mikkoh points out,
<video>
is a good parallel with<model-viewer>
, and the precedent set on that tag is to allow a set of nested<source>
tags (with optional specification of mime types). Being in line with that allow us to avoid some overly specific names (like our currentios-src
), support additional types easily in the future, and be inline with other tags.Specifically, I believe we should:
<source>
elements, with requiredsrc
and optionaltype
attributesios-src
attribute (or deprecate it, moving towards a future removal)src
attribute as an easy fallback (this is in line with other elements)The text was updated successfully, but these errors were encountered: