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
What is a "valid feature descriptor" #860
Comments
We touched on this in #791 |
Issue is that at the moment, the parsing isn't defined as far as I can tell. I'm not sure how one goes from |
Isn't https://immersive-web.github.io/webxr/#feature-descriptor enough? Are you looking prose like the Permissions spec uses? |
Not literally like the permissions spec because this is very different but a prose that converts the input to something usable because it's not done by WebIDL. |
That is what I meant: have very precise prose like in the permissions spec to convert from |
It will need to check the |
We can and should make this check more algorithmic because it's easier to follow that way. The text linked by Rik in #860 (comment) does imply the intended behavior, though, so making it more explicit should not be a compatibility breaking change. |
@toji, I don't think it does. Which of the following literal JS values would be considered "valid feature descriptors" based on that text and why?
All of those would convert to the This really does need to be defined and ideally before we end up with incompatible implementations shipping. |
Probably the right way to approach this is to define this using a Web IDL union, not |
Was it here: #791 (comment) |
I was just told this by a third party; I don't know the history here. |
It was indeed suggested during a call: https://www.w3.org/2019/08/13-immersive-web-minutes.html#item01 Maybe a good case where what was said during the call should have been summarised in the issue. |
I was the third party.. This is the one :-) |
Does #1003 fix this as well? |
I think #1003 fixes this, please reopen if there's something missing. |
Given that the type is "any", some more details may be required in order to describe what a "valid" feature descriptor is. I'm not sure how this can be written so I can't give more guidance. In the case of Permissions, we had to specify the operations to go from Object to the base dictionary and there is a step that converts the dictionary to the specialised one depending on the name. It's possible that the spec will have to iterate through all the known types.
The text was updated successfully, but these errors were encountered: