I'm working on the link preload feature and as part of that want to align it to the spec from an IDL perspective. The `as` attribute is defined <https://html.spec.whatwg.org/#attr-link-as> as an "enumerated attribute", which reflects only a finite set of known values. That is important for feature detection purposes, so that developers can know which `as` values are supported by the implementation.
In Blink this is done using `ReflectOnly <https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md#ReflectOnly_list_a>` (pending CL <https://codereview.chromium.org/2903653005/>), and I'm wondering what is the WebKit equivalent to implement attributes that are limited to known values <https://html.spec.whatwg.org/#limited-to-only-known-values> . Thanks! :) Yoav
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev