Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
128 views
in Technique[技术] by (71.8m points)

javascript - getAttributeNode() and getAttributeNodeNS() warnings

My page opens properly but in FF I'm continuously getting warning

[10:44:54.904] Use of getAttributeNode() is deprecated. Use getAttribute() instead. @ http://localhost/admin/?page=add#
[10:46:23.828] Use of getAttributeNodeNS() is deprecated. Use getAttributeNS() instead. @ http://localhost/admin/?page=add

Btw i'm using CKeditor. What does mean that warning? and how to fix it? enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Those two methods are deprecated in Firefox 7 because they have been removed in DOM4, the current version of the DOM spec. It is likely that eventually they will be removed from Firefox and possibly other browsers.

If the warnings are coming from CKEditor code, I'm sure the CKEditor team will be aware of this and release an update at some point that does not use these methods. However, I couldn't find any use of this method in CKEditor's source code, so it's more likely to be coming from something else you're including on your page. Possibly CKFinder, which does seem to use that method?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...