-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
.prop('outerHTML') returns undefined #944
Comments
Any updates on this? |
I made the fix & PR back in November but it hasn't been pulled yet. you could point to a forked repo: |
bump |
This remains to be an issue. |
$(this).prop('outerHTML') return undefined also |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cheerio:
require('cheerio').load('<div></div>')('div').prop('outerHTML') // undefined
jQuery:
$('<div></div>').prop('outerHTML') // '<div></div>'
i have implemented a fix which adds a switch case for 'outerHTML' in the exports.prop function within lib/attributes.js which uses the following implementation:
this.clone().wrap('<container />').parent().html()
I will make a pull request, please let me know your thoughts.
The text was updated successfully, but these errors were encountered: