Drive-by API design comments: Was this run past the TAG? Did they ask this is not adding a way to return a stream? And was there a discussion of a setter API that supports streams? It would be disappointing if we added new surface of this sort without resolving the core data type issues.
Best, Alex On Thu, Apr 4, 2024, 3:54 PM Mason Freed <[email protected]> wrote: > Contact [email protected] > > Explainer > https://github.com/whatwg/html/issues/8867#issuecomment-1856696628 > > Specificationhttps://html.spec.whatwg.org/#dom-element-gethtml > > Summary > > The prototype implementation (which was shipped in 2020 and then > shape-changed in 2023) contained a method called `getInnerHTML()` that > could be used to serialize DOM trees containing shadow roots. That part of > the prototype was not standardized with the rest of declarative shadow dom, > and only recently has it reached spec consensus ( > https://github.com/whatwg/html/issues/8867). As part of that consensus, > the shape of the getInnerHTML API changed. This feature represents the > desire to ship the new, agreed-upon shape, which is: - > getHTML({serializableShadowRoots:bool, shadowRoots:[roots]}). > > > Blink componentBlink>DOM>ShadowDOM > <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EDOM%3EShadowDOM> > > Search tagsgetHTML <https://chromestatus.com/features#tags:getHTML>, > declarative > shadow dom > <https://chromestatus.com/features#tags:declarative%20shadow%20dom> > > TAG reviewNone > > TAG review statusPending > > Risks > > > Interoperability and Compatibility > > This is a new feature, so there should be no compat risks. And the spec > PRs got comments and support from multiple implementers, so I would expect > support coming soon from other browsers. > > > *Gecko*: Positive ( > https://github.com/whatwg/html/pull/10139#pullrequestreview-1966263347) > > *WebKit*: Neutral (https://github.com/whatwg/html/pull/10139) General > comments from annevk@ seem supportive, but no LGTM directly. > > *Web developers*: No signals > > *Other signals*: > > WebView application risks > > Does this intent deprecate or change behavior of existing APIs, such that > it has potentially high risk for Android WebView-based applications? > > None > > > Debuggability > > None > > > Will this feature be supported on all six Blink platforms (Windows, Mac, > Linux, ChromeOS, Android, and Android WebView)?Yes > > Is this feature fully tested by web-platform-tests > <https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md> > ?Yes > > > https://wpt.fyi/results/shadow-dom/declarative?label=master&label=experimental&aligned&q=gethtml > > > Flag name on chrome://flagsElementGetHTML > > Finch feature nameElementGetHTML > > Requires code in //chrome?False > > Tracking bughttps://crbug.com/41490936 > > Estimated milestones > DevTrial on desktop 125 > DevTrial on Android 125 > > Anticipated spec changes > > Open questions about a feature may be a source of future web compat or > interop issues. Please list open issues (e.g. links to known github issues > in the project for the feature specification) whose resolution may > introduce web compat/interop risk (e.g., changing to naming or structure of > the API in a non-backward-compatible way). > None > > Link to entry on the Chrome Platform Status > https://chromestatus.com/feature/5102952270528512?gate=5177496192679936 > > Links to previous Intent discussionsIntent to prototype: > https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM%3DNeDjRLRyHkgo%3DwTF76uj5rA46xafYsEmh4G_m%2BAcXTUev%3Dw%40mail.gmail.com > > This intent message was generated by Chrome Platform Status > <https://chromestatus.com/>. > > -- > You received this message because you are subscribed to the Google Groups > "blink-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM%3DNeDgOWWoodXvvk7qYTNFMFhsbDxebc%3Dw%3D50nuq6y5jNhNag%40mail.gmail.com > <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM%3DNeDgOWWoodXvvk7qYTNFMFhsbDxebc%3Dw%3D50nuq6y5jNhNag%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAA44PQhAFrmEyEigcgsnybxFK0o1V0NuKKt29UmaniJRgKJnBw%40mail.gmail.com.
