[Bug] homepage demo on macOS Safari results in "undefined" copied to clipboard

This issue has been tracked since 2022-07-28.

Safari on macOS Monterey, when I use the demo on this project's homepage and click the "Copy" button, the result is "undefined" showing up in my clipboard instead of any innertext as expected.

rozek wrote this answer on 2022-07-29

(disclaimer: I'm a complete _hyperscript newbie and may therefore be terribly wrong)

It seems that there is no HTML element with the id 'snippet' which is why there is also no innerText - actually, the example demonstrates the "null safety" (and its potential drawbacks) quite well.

Just changing #snippet to #sample should "repair" the example (as it has the id "sample" itself)

rozek wrote this answer on 2022-07-29

I've just fixed the documentation source (and created a pull request) - but right now, I don't know how to build the docs.

We will thus have to wait for the author to finally fix this problem.

More Details About Repo
Owner Name bigskysoftware
Repo Name _hyperscript
Full Name bigskysoftware/_hyperscript
Language JavaScript
Created Date 2020-05-27
Updated Date 2022-11-25
Star Count 1265
Watcher Count 18
Fork Count 75
Issue Count 86

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date