fix(curriculum): rwd beta update doctype tests (#44829)
This commit is contained in:
@ -51,10 +51,10 @@ Your `html` element should have a closing tag.
|
||||
assert(code.match(/<\/html\s*>/));
|
||||
```
|
||||
|
||||
Your `html` element should be below the `DOCTYPE` declaration.
|
||||
Your `DOCTYPE` declaration should be at the beginning of your HTML.
|
||||
|
||||
```js
|
||||
assert(code.match(/\s*<!DOCTYPE\s+html\s*>(\r?\n)+<\s*html\s*>/gi));
|
||||
assert(__helpers.removeHtmlComments(code).match(/^\s*<!DOCTYPE\s+html\s*>/i));
|
||||
```
|
||||
|
||||
You should have an opening `head` tag.
|
||||
|
Reference in New Issue
Block a user