I want to create Shadow Dom of a HTMLelement in python
div = bs4.BeautifulSoup("<div></div>","html.parser")
what's the next step?
In javascript, I can create Shadow Dom by the method attachShadow
const Host = document.createElement("div");
const root = Host.attachShadow({mode:"open"});
how to do it in python?