-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
<dfn data-dfn-type=idl>
is incorrectly allowed without error
#3644
Comments
Thanks @tidoust for the complete list.
I think attribute is correct type, as they are just private properties not accessible by user-land code.
Probably not. If anything, we could add some accompanying metadata ("isSlot") if we need it later. |
One reason why |
Looks like Bikeshed exports them by default... for example: They are just "attributes". I've be inclined not to export them by default, but it might be too late as too many are exported now? @tabatkins, wdyt? |
Slightly unrelated: For WebRef data used by ReSpec, run the following query at https://respec.org/xref/filter/: |
Yes, I don't see a good reason not to export them; that just makes it harder to link them, and I don't see a reason to do that. (The only reason to not export something is just because it's not a very useful term to link to, and you don't want to potentially cause linking conflicts that need to be resolved between a useful term and your spec-internal non-useful term. IDL terms are always namespaced to their construct, tho, so that's not an issue, and we can and should safely default to exporting.) (Sorry for the delay in responding; between vacation and returning from vacation, I'm quite behind.) |
re exporting, the vision I've been working towards is that things that get exported are fine to interact with from other specs; this seems natural for many of the typed definition types (since they end up being exposed to developers, exposing them to spec writers make sense). Internal slots feel like they should be exposed on an explicit basis, as a way to keep monkey patching in check. |
Important info
Description of problem
What happened (e.g., it crashed)?: The
[[addressLine]]
slot definition is marked asdata-dfn-type=idl
, and no error shows up in the console.Expected behavior (e.g., it shouldn't crash): Error should be emitted, as that's not a valid definition type. (It's a linking supertype that encompasses all the IDL-related types.)
You can see this dfn show up in webref with the invalid type at https://github.com/w3c/webref/blob/master/tr/dfns/payment-request.json#L1992.
(This particular definition should actually be
type=attribute
, but the markup error isn't the significant issue here.)The text was updated successfully, but these errors were encountered: