Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add serializable attribute to shadow roots, and prep for setHTML [1/2]
This CL adds a `serializable` bool to ShadowRoot, and makes it available to set via `attachShadow()` plus read/write via an IDL attribute. This also adds a content attribute `serializable` on `HTMLTemplateElement` and a corresponding reflection. The `serializable` state will be tested as part of the next CL which implements `getHTML()` and uses `serializable`. This CL also takes the opportunity to do a few other things to prepare for `getHTML()`: 1. Add a feature flag `ElementGetHTML` which will gate the new function and which also gates the `serializable` changes above. 2. Add a feature flag `ElementGetInnerHTML` which is default-"stable" and will gate the getInnerHTML() function (mostly in the next CL). 3. Rename `IncludeShadowRoots` as used in *set* methods to `ParseDeclarativeShadowRoots` to better represent what it means, and also to disambiguate it from some of the `getInnerHTML` parameters, which are unrelated. These names refer to Chromium C++ internal naming, and nothing web-exposed. This work falls under these two chromestatus entries: https://chromestatus.com/feature/5081733588582400 https://chromestatus.com/feature/5102952270528512 and these two blink-dev threads: https://groups.google.com/a/chromium.org/g/blink-dev/c/PE4VwMjLVTo https://groups.google.com/a/chromium.org/g/blink-dev/c/it0X7BOimKw Bug: 1519972, 1517959 Change-Id: Ia57ad71553f162ddc9c304402ac9e7d356940946 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5218429 Commit-Queue: David Baron <[email protected]> Reviewed-by: David Baron <[email protected]> Cr-Commit-Position: refs/heads/main@{#1251428}
- Loading branch information