We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sel <- '<body> <select name="b" id="a"> <option value="x">x</option> <option>y</option> </select> </body>' read_html(sel) %>% html_node('select') %>% rvest:::parse_select()
gives
Error in vapply(x, .subset2, i, FUN.VALUE = type) : values must be length 1, but FUN(X[[1]]) result is length 0
But
sel <- '<body> <select name="b" id="a"> <option value="x">x</option> <option value="y">y</option> </select> </body>' read_html(sel) %>% html_node('select') %>% rvest:::parse_select()
works fine:
$name [1] "b" $value character(0) $options x y "x" "y" attr(,"class") [1] "select"
value attribute is not mandatory, is it?
value
The text was updated successfully, but these errors were encountered:
How about this change?
https://github.com/gokceneraslan/rvest/commit/a75e32c463af5ed46bc13e2c0198b57e65dd703c
Sorry, something went wrong.
21066f2
That change just plasters over the problem instead of fixing it - I used some of the new xml2 functions to do better.
Thanks!
No branches or pull requests
gives
But
works fine:
value
attribute is not mandatory, is it?The text was updated successfully, but these errors were encountered: