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
Hi, I really like your library and use it quite frequently. So I think I found a bug:
(-> "<td><div>hello</div><h1>hi</h1></td>" html/html-snippet (html/select [:div]))
({:tag :div, :attrs nil, :content ("hello")}) I was expecting the h1 tag to be returned too since it's also content of the td tag.
Greetings
The text was updated successfully, but these errors were encountered:
I am having similar issues:
(def input-html "<div><h1><p>A title</p></h1><h2><p>A subtitle</p></h2></div>") (let [parsed-html (html/html-snippet input-html)] (html/select parsed-html [:h1]))
Returns only ({:tag :h1, :attrs nil, :content nil}) and then, when I look into the node:
({:tag :h1, :attrs nil, :content nil})
(let [parsed-html (html/html-snippet input-html)] parsed-html) ;; Returns ({:tag :div, :attrs nil, :content ({:tag :h1, :attrs nil, :content nil} {:tag :p, :attrs nil, :content ("A title")} {:tag :h2, :attrs nil, :content nil} {:tag :p, :attrs nil, :content ("A subtitle")})})
I would expect to have the p tags inside the header sections.
p
Sorry, something went wrong.
No branches or pull requests
Hi,
I really like your library and use it quite frequently. So I think I found a bug:
(-> "<td><div>hello</div><h1>hi</h1></td>" html/html-snippet (html/select [:div]))
({:tag :div, :attrs nil, :content ("hello")})
I was expecting the h1 tag to be returned too since it's also content of the td tag.
Greetings
The text was updated successfully, but these errors were encountered: