You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
excludeCredentials, of type sequence<PublicKeyCredentialDescriptor>, defaulting to None
I'm new to the fine details of WebIDL and Bikeshed, but if I understand the specs correctly, [] is a valid default value and should probably be rendered as simply "[]". In that case, the root cause of the issue seems to be here:
which does not account for that construct.default.value will be None if the default value is [] or {}, in which case the object will have ._open and ._close set instead of .value.
Changing it to this seems to fix the issue, but it doesn't seem like the right solution:
value = escapeAttr("{0}".format(construct.default.value if construct.default.value else (construct.default._open.symbol + construct.default._close.symbol)))
I'd be happy to contribute a fix if I can get a confirmation that my understanding seems correct, and perhaps some pointers to what might be a better solution. 🙂
The text was updated successfully, but these errors were encountered:
For example, see https://www.w3.org/TR/2019/WD-webauthn-2-20191126/#dom-publickeycredentialcreationoptions-excludecredentials, where this markup:
is rendered as:
I'm new to the fine details of WebIDL and Bikeshed, but if I understand the specs correctly,
[]
is a valid default value and should probably be rendered as simply "[]". In that case, the root cause of the issue seems to be here:https://github.com/tabatkins/bikeshed/blob/2a881f0ee698433d75c6a1555514334adb37d8c7/bikeshed/idl.py#L158-L160
which does not account for that
construct.default.value
will beNone
if the default value is[]
or{}
, in which case the object will have._open
and._close
set instead of.value
.Changing it to this seems to fix the issue, but it doesn't seem like the right solution:
I'd be happy to contribute a fix if I can get a confirmation that my understanding seems correct, and perhaps some pointers to what might be a better solution. 🙂
The text was updated successfully, but these errors were encountered: