-
Notifications
You must be signed in to change notification settings - Fork 668
Update find
and findAll
to be more robust
#681
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,8 @@ | |
"vue-template-compiler": "^2.x" | ||
}, | ||
"dependencies": { | ||
"lodash": "^4.17.4" | ||
"html-tags": "^2.0.0", | ||
"lodash": "^4.17.4", | ||
"svg-elements": "^1.0.2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. both libs are just json lists. an alternative would be just copy paste the json lists into the project There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMHO, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, I agree. Just going to grab the list from vuejs/vue repo. |
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite ugly but needed to cover all existing test cases:
find("#id")
find(".class")
find("div")
html elementfind("text")
svg elementfind("p:first-of-type")