-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
使用 href
替换 xlink:href
#13513
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
Comments
这一替换估计会倒下一小片插件和代码片段😁。 |
主题和代码片段应该不影响,选择器选不中。有什么插件会需要用这个吗? |
嗯呢,主题不受影响 有什么插件,不清楚,猜的,应该有一小部分用到吧,一般不多,我记得你有个js代码片段就有用到这个,我也用过这个做过一些判断。 不过如果按楼上说的做下兼容就没影响了。 |
用这个可以了,那就不动了:https://ld246.com/article/1734427196426/comment/1734486397365#comments @namespace xlink 'http://www.w3.org/1999/xlink';
.protyle-breadcrumb__item:has(use[xlink|href*=iconListItem]) .protyle-breadcrumb__text {
display: none;
} |
被弃用了,早晚得改,且加一个属性的事,而且对旧版本没影响,又支持新版本,何乐而不为呢 |
这个应该会有冲突,要改的话得直接换 |
好吧,没研究过 |
尝试 https://ld246.com/article/1734427196426 的时候发现选择器选不到 [xlink:href="#iconListItem"] 的元素,然后查到 xlink:href 已弃用:https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href
The text was updated successfully, but these errors were encountered: