Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything called WebSomething or Web Something feels extra hard to pick a short name for, but in this case I think we should go with:
Web because it's a web version of a thing that exists outside the web and I've never seen the feature called just "Bluetooth". And capitalized Bluetooth because https://en.wikipedia.org/wiki/Bluetooth does that consistently, so I guess Bluetooth is a proper noun.
I think the identifier should be
web-bluetooth
, matchingweb-animations
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No strong opinion from me on the ID for the feature. I thought we had a guideline against adding unnecessary prefixes like web, css, etc. though. Also, many of the web APIs start with "Web". So, we might end up with a lot of
web-*.yaml
file.That said, people do refer to it as Web Bluetooth, not just Bluetooth.
@Elchi3 what do you think? I need another perspective on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no strong feelings but it irked me before that when looking up things alphabetically you basically need to check B for Bluetooth and then again W for Web Bluetooth to find it. This problem becomes quite obvious when you look at https://developer.mozilla.org/en-US/docs/Web/API for example.
Also, we have
webusb
, should that beweb-usb
?Ultimately, I would think, that no one has thought this through from a broader perspective. So I guess we have two paths going forward:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I share your feelings here.
This sounds appealing. We've always said that web-features should match how developers think about things. On the one hand, we have an opportunity of making web-features a shared language between browser makers and web developers, by coming up with unique IDs that everyone use to talk about the web. So it would feel good to get this right. But on the other hand, I don't see how we'd land on better names than the ones that have appeared organically and have been used for years in the ecosystem already.
So, I'm leaning towards adding the
web-
prefix.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree this should have the
web-
prefix and have said all I have to say about the topic in #548 (comment) :)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Elchi3 I filed #694 for the sorting problem, which is a problem I'm sensitive to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I never imagined "name" would be the only name field, just the "conventional" (to web developers) one. I'd love to see—when relevant—
short_name
(e.g., "Bluetooth", as here) orlong_name
(e.g., "CSS Grid").