Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

element.openOrClosedShadowRoot property always returns null

  • 1 trả lời
  • 0 gặp vấn đề này
  • 11 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

Hello, I'm trying to use https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/dom/openOrClosedShadowRoot functionality in an extension but the element.openOrClosedShadowRoot always returns null.

Also is there a place in Firefox Devtools console (similar to the Chrome Devtools dropdown) to switch the context from the user console to the extension console so we can try extension only APIs?

Thanks.

Hello, I'm trying to use https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/dom/openOrClosedShadowRoot functionality in an extension but the element.openOrClosedShadowRoot always returns null. Also is there a place in Firefox Devtools console (similar to the Chrome Devtools dropdown) to switch the context from the user console to the extension console so we can try extension only APIs? Thanks.

Tất cả các câu trả lời (1)

more options

Open about:debugging and go to "This Firefox" and click the Inspect button next to the extension.