feat: add support for DOM elements going over the context bridge (#26776)
* feat: add support for DOM elements going over the context bridge * Update context-bridge.md
This commit is contained in:
parent
51db2a6b34
commit
b9c9e7fc06
3 changed files with 42 additions and 3 deletions
|
@ -106,6 +106,7 @@ has been included below for completeness:
|
|||
| `Promise` | Complex | ✅ | ✅ | Promises are only proxied if they are the return value or exact parameter. Promises nested in arrays or objects will be dropped. |
|
||||
| `Function` | Complex | ✅ | ✅ | Prototype modifications are dropped. Sending classes or constructors will not work. |
|
||||
| [Cloneable Types](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm) | Simple | ✅ | ✅ | See the linked document on cloneable types |
|
||||
| `Element` | Complex | ✅ | ✅ | Prototype modifications are dropped. Sending custom elements will not work. |
|
||||
| `Symbol` | N/A | ❌ | ❌ | Symbols cannot be copied across contexts so they are dropped |
|
||||
|
||||
If the type you care about is not in the above table, it is probably not supported.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue