Skip to content

node.getAttribute is not a function #6

@Veve2

Description

@Veve2

Hello,

Using your plugin, I frequently had this error on line 215:
if (node.getAttribute("sorttable_customkey") != null) {

I've fixed it by adding node.nodeType == 1:
if (node.nodeType == 1 && node.getAttribute("sorttable_customkey") != null) {

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