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

不支持insertAdjacentElement #1370

Closed
7fresh opened this issue Apr 29, 2022 · 2 comments
Closed

不支持insertAdjacentElement #1370

7fresh opened this issue Apr 29, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@7fresh
Copy link

7fresh commented Apr 29, 2022

使用的 Kraken 版本 | What version of kraken are you using

0.11.0

重现步骤 | Steps To Reproduce

重现代码 | Code example:

var div =  document.createElement('div');
div.style.width = '200px';
div.style.height = '200px';
div.style.backgroundColor = 'blue';
document.body.appendChild(div);
var div2 = document.createElement('div');
div2.style.width = '100px';
div2.style.height = '100px';
div2.style.backgroundColor = 'red';
div.insertAdjacentElement('afterend', div2);

预期结果 | Expected results:

显示两个div

实际结果 | Actual results:

显示了一个div

@7fresh 7fresh added the bug Something isn't working label Apr 29, 2022
@wssgcg1213
Copy link
Member

Related to #1252

@7fresh 7fresh closed this as completed Apr 29, 2022
@7fresh
Copy link
Author

7fresh commented Apr 29, 2022

不好意思,我刚刚搜索后也发现了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants