Replies: 13 comments 3 replies
-
Just want to note that a lot of good discussion on this topic is taking place in the previously closed issue #5 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
See #452 for a sample of how we've renamed an attribute - although, that being said, the change to |
Beta Was this translation helpful? Give feedback.
-
Does |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
I don't think we can do:
It's not valid HTML. It would need to be something like:
|
Beta Was this translation helpful? Give feedback.
-
@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 |
Beta Was this translation helpful? Give feedback.
-
I'm cool using |
Beta Was this translation helpful? Give feedback.
-
@cdata This looks like a breaking change, yes? As such, should we prioritize it ahead of 1.0? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Another input point for this conversation. I think this thread shows why it's powerful to leverage |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
@elalish just to be clear are you thinking of using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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)Beta Was this translation helpful? Give feedback.
All reactions