question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recommend <!DOCTYPE html> to avoid quirks mode.

https://developer.mozilla.org/en-US/docs/Glossary/Doctype

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
brendankennycommented, May 15, 2018

if there’s a document.doctype, looks like you probably also want to check that document.doctype.name is 'html'?

For this you’re going to need a gatherer and an audit. Generally the gatherer will collect the information on the doctype from the browser and the audit will do the actual correctness testing. hreflang is a pretty complicated audit compared to this 😃 so a better example might be the meta-description audit.

The PR for that audit (#3227) lays out pretty well how to get a gatherer and audit to work together, how to add to them to a config, unit tests needed, etc (though most of the SEO category stuff won’t be necessary…it would just go into Best Practices in the default config).

Let us know how things go!

1reaction
midzercommented, May 18, 2018

@schalkneethling I have not implemented an audit for lighthouse yet, just a minor contribution. Would have to dig deep into this one as well, you’ve been first to answer this open issue.

I think thats more a question to regular contributors/maintainers if they assist you in a WIP PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Page lacks the HTML doctype, thus triggering quirks mode
Specifying a doctype prevents the browser from switching to quirks mode, which can cause your page to render in unexpected ways.
Read more >
Technology – Audit Documentation April 2020 - IFAC
AUDIT DOCUMENTATION WHEN USING AUTOMATED TOOLS AND TECHNIQUES ... results of the analysis to a format or document type (e.g., a spreadsheet or...
Read more >
Document Library | Audit Reports
Date Document Title Type Report Number 03/30/1998 Kansas City Fulfillment Services Center Audit Reports RG‑MA‑98‑001 09/24/1998 Distribution of Celebrate the Century Ballots Audit Reports RG‑MA‑98‑006 09/30/1998...
Read more >
Audit Processes and Procedures - NYSE
The NYSE Market Data Administration team conducts audits of NYSE market data subscribers (customers). The ... each document type and the templates used....
Read more >
Remote Auditing Instructions for Auditors - CTSU
Documents uploaded to the SDP for remote auditing are assigned a document type based upon the categories within the patient case review component...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found