Skip to content
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

$region.html() returns empty result #9

Open
TheBnl opened this issue Jan 27, 2017 · 1 comment
Open

$region.html() returns empty result #9

TheBnl opened this issue Jan 27, 2017 · 1 comment

Comments

@TheBnl
Copy link

TheBnl commented Jan 27, 2017

In the replaceRegion method (base.js:127), the $region.html() results returns an empty result. Using the unparsed given html in the return works for me.

// empties the region and pastes null
$foundRegion.empty().append($region.html());

// the unparsed html given from the server works fine, also the ajax bindings work fine
$foundRegion.empty().append(html);

I'm not sure this is an issue or an jQuery version difference related problem. The jQuery version i'm currently using is 2.2.4

@bummzack
Copy link
Contributor

I've had the same problem, but not an empty result, but that the first dom-node gets stripped away. I could imagine you get an empty result when your html only contains one node?
I opened a PR: #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants