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

Issue with nodenames starting with an underscore #77

Closed
MartijnR opened this issue Jul 17, 2020 · 7 comments
Closed

Issue with nodenames starting with an underscore #77

MartijnR opened this issue Jul 17, 2020 · 7 comments
Assignees
Milestone

Comments

@MartijnR
Copy link
Member

SyntaxError: 'data>allergies>_thead>note1' is not a valid selector

See 'Form upload issue' email by @pbowen-oc on 07/17/2020.

Allergies.pab.min.underscore.xml.txt

@MartijnR
Copy link
Member Author

MartijnR commented Jul 24, 2020

Looks like a bug in JSDOM => jsdom/jsdom#3015

Fixing this here by going back to the old JS XPath evaluator removes performance improvements made in ccc1761

However, when we switch to the new XPath evaluator we should move from JSDOM to puppeteer anyway (which will fix this issue). May be best to move to puppeteer now.

MartijnR added a commit to enketo/enketo-core that referenced this issue Jul 29, 2020
MartijnR added a commit to enketo/enketo-core that referenced this issue Jul 30, 2020
@MartijnR
Copy link
Member Author

MartijnR commented Jul 30, 2020

remaining:

MartijnR added a commit that referenced this issue Jul 31, 2020
fixed: failure when nodenames contain underscore,

#77
MartijnR added a commit to enketo/enketo-core that referenced this issue Aug 3, 2020
MartijnR added a commit to enketo/enketo-core that referenced this issue Aug 3, 2020
@pbowen-oc
Copy link

@MartijnR - We're seeing the same syntax error in this case as before.

@pbowen-oc pbowen-oc reopened this Nov 6, 2020
@pbowen-oc pbowen-oc added this to the Next milestone Nov 6, 2020
@MartijnR
Copy link
Member Author

MartijnR commented Nov 6, 2020

But not here, right? https://validate.enketo.org/oc/

@MartijnR
Copy link
Member Author

MartijnR commented Nov 6, 2020

Just in case, this is the command to check for any globally install npm packages (maybe an old enketo-validate version):

npm list -g --depth 0

This should not list enketo-validate because you've started installing it from git locally instead now I believe.

@pbowen-oc
Copy link

@MartijnR - We have an old version installed, so I'll retest once we update it.

@pbowen-oc
Copy link

Looks good in testing.

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

2 participants