gpt4 book ai didi

macos - OS X 10.5 SDK 已弃用 getAttributeNS;我应该使用什么?

转载 作者:行者123 更新时间:2023-12-04 16:56:46 27 4
gpt4 key购买 nike

我正在升级一个项目以使用 10.5 SDK。我收到这种形式的警告:

warning: 'getAttributeNS::' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/WebKit.framework/Headers/DOMElement.h:74)



...对于 getAttributeNS、hasAttributeNS、removeAttributeNS、replaceChild 和 getElementsByTagNameNS。

我查看了引用的标题,我发现它们确实通过一些宏魔术被标记为已弃用。我还在 Apple 的开发人员网站上找到了一些“文档”,但它只列出了接口(interface)。它没有就如何使用它们或使用什么提供任何指导。

因此,对于(a)如何确定要使用的内容以及(b)我应该实际使用的内容的任何建议,将不胜感激。

最佳答案

根据10.5 WebKit changes ,现在有名为 getAttributeNS:localName: 的方法等等,还有 replaceChild:oldChild: DOMNode 的方法。

关于macos - OS X 10.5 SDK 已弃用 getAttributeNS;我应该使用什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1291160/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com