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

【KISSY 6.2.1】版本的html()函数在IE8下的兼容性问题 #3

Open
hellfiresong opened this issue Sep 30, 2015 · 1 comment
Open

Comments

@hellfiresong
Copy link

场景:针对的是script标签的这个dom节点。
在IE8下html()函数可以读取内容,不能写入内容,比如html("abc")也是不行的。

@hellfiresong
Copy link
Author

可以考虑这种思路:
创建一个script标签,然后设置 text,最后使用replaceWith()将之前的script标签替换掉。
注意原来script节点上的attribut不要丢掉哦~

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