-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add information to DOMParser.parseFromString
page about the includeShadowRoots
option
#31501
Comments
Hey! Great idea :) We’re currently documenting Though I’m curious what’s the browser support for |
Thanks, I'll get started on that PR then!
I can try and take a look into that. Is it just a matter of getting an official response from each vendor a confirmation of what version that feature was added in? (Apologies, haven't worked with BCD myself). I found this blog post from Webkit about Declarative Shadow DOM which calls out |
With some help from the WCCG, I was pointed to the WPT which shows that And that is being shown in reports It's called out as "(includingShadowRoots is historical)" and It's not mentioned in the spec. Additionally this comment implies that the explanation for these then is that it's not going to be standardized. So I wonder then if the goal here with this particular content around
There is a tracking item for this content as well - mdn/mdn#459 |
I’m afraid this changes everything. Thank you so much for bringing this to our attention, filing the issue, and opening a draft PR. We really appreciate it! However, since the options param is not in the spec and hence why the WPT tests fail. It is also not a part of BCD. I’ll have to close it since we’re not documenting features that aren’t in the spec or the browsers, even for historical reasons. I’m sorry for confusing you earlier. |
Alrighty. Do you think there's any value on starting on mdn/mdn#459 at all, or is it too soon for that one? It's in WPT and the spec PR was merged but not sure around the sanitization efforts / parameters called out in that description. Either way, happy to support on this now or in the future when MDN is ready for it. 👍 |
@thescientist13 thank you! It seems like the |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString
What specific section or headline is this issue about?
Parameters
What information was incorrect, unhelpful, or incomplete?
Per the Chrome Developer docs, there is reference to a third parameter to
parseFromString
that handles parsing Declarative Shadow DOMWhat did you expect to see?
I would like to see the content expanded to include the third param and some details about the option and why it would be used. For example, the Chrome docs frame it as such:
Do you have any supporting links, references, or citations?
Here is a thread from WHATWG/dom GitHub discussion regarding its participation in the Declarative Shadow DOM spec
whatwg/dom#912 (comment)
Do you have anything more you want to share?
It seems like this might make a good companion to #29600 ?
Happy to help contribute to drafting this content if you would like. 👍
The text was updated successfully, but these errors were encountered: