为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Bug copying dom node detail while selected css

  • 4 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

FirefoxDeveloperEdition 59.0b5 (64-bit) on Mac.

In inspector select some ccs in the rules tab of the right and leave it selected, now select something in the html, like a class name, then copy. What you have copied is the selected css not the class name in the html.

Don't know if this happens in other OS of FF versions.

FirefoxDeveloperEdition 59.0b5 (64-bit) on Mac. In inspector select some ccs in the rules tab of the right and leave it selected, now select something in the html, like a class name, then copy. What you have copied is the selected css not the class name in the html. Don't know if this happens in other OS of FF versions.

被采纳的解决方案

Your screenshot shows the context menu of the right pane and not the context menu you would normally see in the left markup pane.

In Firefox 58 I see the selection in the right pane removed when I click in the left pane. In DE 59 the selection in the right pane stays, but I do get the normal context menu of the left pane with Edit as HTML and the extended Copy menu, so it seems that this is either working differently on Mac or you may have an extension interfering on Mac if that is possible with a WebExtension. Otherwise this might be a bug on Mac.

Start Firefox in Safe Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration is causing the problem.

  • switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Appearance
  • do NOT click the "Refresh Firefox" button on the Safe Mode start window
定位到答案原位置 👍 1

所有回复 (4)

more options

Image attached

more options

选择的解决方案

Your screenshot shows the context menu of the right pane and not the context menu you would normally see in the left markup pane.

In Firefox 58 I see the selection in the right pane removed when I click in the left pane. In DE 59 the selection in the right pane stays, but I do get the normal context menu of the left pane with Edit as HTML and the extended Copy menu, so it seems that this is either working differently on Mac or you may have an extension interfering on Mac if that is possible with a WebExtension. Otherwise this might be a bug on Mac.

Start Firefox in Safe Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration is causing the problem.

  • switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Appearance
  • do NOT click the "Refresh Firefox" button on the Safe Mode start window
more options

Thanks, it seems is a plugin I have that is causing this issue, when I start in safe mode no longer happens.

Thanks.

more options

If it works in Safe Mode and in normal mode with all extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) disabled then try to find which extension is causing the problem by enabling one extension at a time until the problem reappears.

Close and restart Firefox after each change via one of these:

  • "3-bar" menu button -> Exit (Power button)
  • Windows: File -> Exit
  • Mac: Firefox -> Quit Firefox
  • Linux: File -> Quit