最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Can a user drop a HTML Shadow DOM into a blog post?

programmeradmin5浏览0评论

Is it possible for a user to drop a HTML Shadow DOM into a blog post? What is needed for that?

EDIT: Maybe I should have written "... drop a definition of a custom element (script+style) + the custom element with a light DOM, all which the user can get as one file, built for drop in on a web page".

Is that more clear to anyone here?


EDIT 2: Can someone perhaps tell if there is another forum on the internet where people might be able to answer this?

Is it possible for a user to drop a HTML Shadow DOM into a blog post? What is needed for that?

EDIT: Maybe I should have written "... drop a definition of a custom element (script+style) + the custom element with a light DOM, all which the user can get as one file, built for drop in on a web page".

Is that more clear to anyone here?


EDIT 2: Can someone perhaps tell if there is another forum on the internet where people might be able to answer this?

Share Improve this question edited Feb 17, 2020 at 21:52 Leo asked Feb 17, 2020 at 10:23 LeoLeo 1511 silver badge9 bronze badges 5
  • 1 Can you give a specific example of what you're trying to do? – Jacob Peattie Commented Feb 17, 2020 at 10:34
  • @JacobPeattie Thanks. Can you please tell me in what way the question is unclear to you? – Leo Commented Feb 17, 2020 at 10:42
  • 1 Shadow DOM isn't something that gets "dropped into" a post. It's an API that a custom element or script can use. Are you trying to add a custom element to a post? – Jacob Peattie Commented Feb 17, 2020 at 10:50
  • @JacobPeattie Ah, I see. Yes, I want a user to be able add a custom element to a post. A custom element with a light DOM and the script+style for the setup of the custom element (I thought it would be more clear if I wrote Shadow DOM...) – Leo Commented Feb 17, 2020 at 11:04
  • @JacobPeattie Is that you downvoting? Then please tell that you do so. Otherwise I have no idea if someone thinks the question is bad for some other reason (relevant or not!). – Leo Commented Feb 17, 2020 at 11:11
Add a comment  | 

1 Answer 1

Reset to default 0

It looks like this plugin may make it possible:

Code Embed – WordPress plugin | WordPress https://wordpress/plugins/simple-embed-code/

However I don't use WordPress any more. Is there someone here that can confirm it will work?

发布评论

评论列表(0)

  1. 暂无评论