Skip to content

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

// 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