lighthouse 12.8.2-dev.20251001 → 12.8.2-dev.20251002

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,12 @@ const MAX_LAYOUT_SHIFTS = 15;
35
35
  */
36
36
  /* c8 ignore start */
37
37
  function getNodeDetailsData() {
38
- const elem = this.nodeType === document.ELEMENT_NODE ? this : this.parentElement;
38
+ /** @type {Element|null} */
39
+ let elem = this.nodeType === document.ELEMENT_NODE ? this : this.parentElement;
40
+ if (!elem && this instanceof ShadowRoot) {
41
+ elem = this.host;
42
+ }
43
+
39
44
  let traceElement;
40
45
  if (elem) {
41
46
  // @ts-expect-error - getNodeDetails put into scope via stringification
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "12.8.2-dev.20251001",
4
+ "version": "12.8.2-dev.20251002",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {