Skip to content

"Failed to execute 'selectNodeContents'" on 'Range': parameter 1 is not of type 'Node' #222

@Lomacar

Description

@Lomacar

Expected Behavior

Snuggsi should work and not die with an error when trying to run examples directly from the readme.

Current Behavior

I get an error

"Failed to execute 'selectNodeContents'" on 'Range': parameter 1 is not of type 'Node'

Possible Solution

No idea

Steps to Reprod(uce)

Well I have been trying all sorts of things. Running it on Codepen, creating a local file, running on a local server, downloading the snuggsi js. I was having issues getting it to work without saying "Template is not defined". But I got that sorted out, but I cannot get rid of this other error. Here is an example on Codepen which doesn't directly follow the readme examples, but gives the same error: https://codepen.io/lomacar/pen/rNwGYbN

Context

Just trying to use Snuggsi.

Your Environment

Any environment.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions