Skip to content

Older browser compatibility issue (Firefox 3.5.9) #17

Description

@canihavesomecoffee

Hello,

I'm implementing this lovely piece of code into a new project, and I have some users that are stuck (corporate policy) to Firefox 3.5.9. Complete.ly won't launch on this firefox version due to line 34:

var txtHint = txtInput.cloneNode();

Stating that there is an argument missing:

error

The fix for this is quite simple:

var txtHint = txtInput.cloneNode(true);

Assuming the behaviour you intended is a deep clone and not a shallow one (According to the MDN (https://developer.mozilla.org/en-US/docs/Web/API/Node.cloneNode) the default assumption between FF 13-28 was true, starting from 29 it is false. They recommend adding the argument always).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions