Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Object.keys called on non-object #2

Open
thib3113 opened this issue May 18, 2015 · 1 comment
Open

TypeError: Object.keys called on non-object #2

thib3113 opened this issue May 18, 2015 · 1 comment

Comments

@thib3113
Copy link

I make this :

parser = new Parser(body);
result = parser.parse({
    element: { 
        selector: ".DataGrid ul",
        multiple: true,
        remove: ".data_head"
    }
});

body, is valid HTML.

But I have this error :

TypeError: Object.keys called on non-object
    at Function.keys (native)
    at Parser.parse (/home/thib3113/Documents/node_test/script_upload/node_modules/jq-html-parser/lib/Parser.js:15:19)
@thib3113
Copy link
Author

I found the problem :
in your readme, some example are bad :

var parser = new Parser(html);
var result = parser.parse({
  myElement: { selector: "h1", multiple: true }
});

but, you have reverte html and config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant