worker-dom icon indicating copy to clipboard operation
worker-dom copied to clipboard

Support `Document.head`

Open kristoferbaxter opened this issue 5 years ago • 1 comments

https://github.com/ampproject/worker-dom/pull/407#discussion_r271966063

Should we support this concept? What would the implementation look like for modifying document.head in a Worker reflected to the main thread? Are styles encapsulated?

Until we decide, should we make Document.documentElement = null?

kristoferbaxter avatar Apr 03 '19 23:04 kristoferbaxter

Possibly some confusion here. But is the document.head support and documentElement have to be related?

I think we can start with a document.head == null for a foreseeable future. But I think document vs document.documentElement case has to be resolved regardless. One is a node and the other one is an element and there are some important distinction that could be embedded into this in a user script.

dvoytenko avatar Apr 04 '19 06:04 dvoytenko