Commit 6b574b3
committed
html JME function: only try to set data-interactive on element nodes
In particular, a plot produced by webR returns a list of nodes including
comments and text nodes, which have no `setAttribute` method.
This changes the `html` function so that it only tries to call
`setAttribute` on element nodes.1 parent e83728e commit 6b574b3
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
346 | 350 | | |
347 | 351 | | |
348 | 352 | | |
| |||
0 commit comments