[webkit-dev] "ReflectOnly" IDL equivalent

Yoav Weiss yoav at yoav.ws
Thu Jun 1 22:57:04 PDT 2017

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
(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! :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20170602/d67611b3/attachment.html>

More information about the webkit-dev mailing list