-
-
Notifications
You must be signed in to change notification settings - Fork 903
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
odd number of arguments #35
Comments
I'm unable to reproduce this. Can you post a gist of an example test case? Also please include the output of
Thank you! |
Hi, just checking in. Can you please provide a sample case to reproduce this, along with the version information above? Thanks! |
Hi, sorry for the late reply. |
PS: Here's the version information |
I still don't understand how to reproduce this issue. Can you please gist a test case which demonstrates this behavior? Thanks so much! |
Never mind. I've figured it out. http://gist.github.com/109879 |
fixing FragmentHandler to not blow up if there are attributes without values. closed by 557dc5c. |
Please note that this fix only makes Nokogiri not blow up when it encounters attributes without values in before/after/inner_html= calls. Libxml does not handle attributes without values very well, dropping all attributes declared after the single attribute. To prevent this, you should properly declare your attributes with values, e.g. "allowtransparency=true". |
There seems to be a problem with parsing if the html tags are irregular.
For example, in an iframe tag, if the 'height' attribute is present but
no value is written for it, then an error occurs saying that "odd number
of arguments for hash".
Please suggest a solution for this problem.
The text was updated successfully, but these errors were encountered: