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

Extra div tags added to CDATA content #15

Open
topunix opened this issue Dec 3, 2011 · 0 comments
Open

Extra div tags added to CDATA content #15

topunix opened this issue Dec 3, 2011 · 0 comments

Comments

@topunix
Copy link

topunix commented Dec 3, 2011

Hi,
This is a weird bug. It only occurs if the content of the CDATA tag is generated like this:

<replaceContent select='#main'>

<![CDATA[
    howdy
     ]]>

</replaceContent>

The DOM element with id "main" will now contain another div with "howdy" inside of it. This is very annoying!

How do I get rid of that extra div? I want to use CDATA because I need to. I am using it for data more complex than one word "howdy". But I don't want that extra div! Please help.

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

1 participant