Rocky_Mountain_Vending/.pnpm-store/v10/files/92/6b9e6c645fc613b7559743ad9cd903e98f46499bf838c38de93cf83a871361d272a224e1fa9ef34d44d1e23d2b612ed33c7447bae765e6f62b93c19f7392e4
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

45 lines
1.1 KiB
Text

/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import BaseGatherer from '../../base-gatherer.js';
/**
* Get and return `name`, `publicId`, `systemId` from
* `document.doctype`
* and `compatMode` from `document` to check `quirks-mode`
* @return {{name: string, publicId: string, systemId: string, documentCompatMode: string} | null}
*/
function getDoctype() {
// An example of this is warnerbros.com/archive/spacejam/movie/jam.htm
if (!document.doctype) {
return null;
}
const documentCompatMode = document.compatMode;
const {name, publicId, systemId} = document.doctype;
return {name, publicId, systemId, documentCompatMode};
}
class Doctype extends BaseGatherer {
/** @type {LH.Gatherer.GathererMeta} */
meta = {
supportedModes: ['snapshot', 'navigation'],
};
/**
* @param {LH.Gatherer.Context} passContext
* @return {Promise<LH.Artifacts['Doctype']>}
*/
getArtifact(passContext) {
const driver = passContext.driver;
return driver.executionContext.evaluate(getDoctype, {
args: [],
useIsolation: true,
});
}
}
export default Doctype;