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
I try to find a way to silent those messages but could not locate the code in loofah or nokogiri.
Any idea where does it come from? libxml?
> Loofah.document("<i id=a></i><i id=a></i>").to_text element i: validity error : ID a already defined
The text was updated successfully, but these errors were encountered:
I found it related by the #dup method here.
https://github.com/flavorjones/loofah/blob/master/lib/loofah/instance_methods.rb#L116
self.dup.scrub!(:newline_block_elements).text(options)
Demo:
irb(main):032:0> d.text => "" irb(main):033:0> d.dup.text element i: validity error : ID a already defined => ""
Sorry, something went wrong.
I can confirm the same behavior on Nokogiri.
Nokogiri::HTML("<i id=a></i><i id=a></i>").dup.text element i: validity error : ID a already defined => ""
validity error
Closing, as you've opened a Nokogiri bug to track this issue.
This will be fixed in Nokogiri 1.6.5, out soon.
No branches or pull requests
I try to find a way to silent those messages but could not locate the code in loofah or nokogiri.
Any idea where does it come from? libxml?
The text was updated successfully, but these errors were encountered: