Skip to content

core(doctype): fix mistaken text saying name must be lowercase #13888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 25, 2022

Conversation

connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Apr 21, 2022

The standard specifies that this property is normalized to a lowercased string. https://html.spec.whatwg.org/#doctype-name-state

image

@connorjclark connorjclark requested a review from a team as a code owner April 21, 2022 01:13
@connorjclark connorjclark requested review from adamraine and removed request for a team April 21, 2022 01:13
@@ -56,7 +56,7 @@ class Doctype extends Audit {
}

// only set constants once we know there is a doctype
const doctypeName = artifacts.Doctype.name.trim();
const doctypeName = artifacts.Doctype.name;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also trimming isn't necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants