Hey all, here's a small PR that implements a part I was missing from shadowrootcustomelementregistry attribute implementation. PTAL, thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code looks good, just a naming question.
Also red bots, but I think those are from the upstream CL.
void SetKeepCustomElementRegistryNull(bool flag) {Unless this corresponds to a spec concept, I don't really like the name. This seems more like "WaitingForCustomizedRegistry" or something? The "Keep" doesn't tell me what it means. Keep it null forever? Until what? Why?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Unless this corresponds to a spec concept, I don't really like the name. This seems more like "WaitingForCustomizedRegistry" or something? The "Keep" doesn't tell me what it means. Keep it null forever? Until what? Why?
It is indeed associated with a [spec concept](https://dom.spec.whatwg.org/#shadowroot-keep-custom-element-registry-null). I can add a comment to clarify the usage of it. The idea is that the registry of the shadow root should not be restored during adoption and should be kept null, unless it's explicitly initialized by the user.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
void SetKeepCustomElementRegistryNull(bool flag) {Jayson ChenUnless this corresponds to a spec concept, I don't really like the name. This seems more like "WaitingForCustomizedRegistry" or something? The "Keep" doesn't tell me what it means. Keep it null forever? Until what? Why?
It is indeed associated with a [spec concept](https://dom.spec.whatwg.org/#shadowroot-keep-custom-element-registry-null). I can add a comment to clarify the usage of it. The idea is that the registry of the shadow root should not be restored during adoption and should be kept null, unless it's explicitly initialized by the user.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
void SetKeepCustomElementRegistryNull(bool flag) {Jayson ChenUnless this corresponds to a spec concept, I don't really like the name. This seems more like "WaitingForCustomizedRegistry" or something? The "Keep" doesn't tell me what it means. Keep it null forever? Until what? Why?
Joey ArharIt is indeed associated with a [spec concept](https://dom.spec.whatwg.org/#shadowroot-keep-custom-element-registry-null). I can add a comment to clarify the usage of it. The idea is that the registry of the shadow root should not be restored during adoption and should be kept null, unless it's explicitly initialized by the user.
want to add a link to the spec in that new comment?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |