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

Node insert doesn't execute scripts #1945

Open
kingback opened this Issue Aug 18, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@kingback
<body>
    <div class="container"></div>
    <script>
        YUI().use('node', function(Y) {
            Y.one('div').append('<p><script>alert(1);</' + 'script></p>');
        });
    </script>
</body>

there're 2 bugs here:

  1. html was appended to div.yui3-css-stamp, not div.container
  2. the contents in <script> tag doesn't execute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment