From 0f27af6b461c3aaaa21c0ecc32ac8269e77b8cb1 Mon Sep 17 00:00:00 2001 From: Bruce B Date: Mon, 31 Jan 2022 03:57:05 -0800 Subject: [PATCH] fix(curriculum): rwd beta update doctype tests (#44829) --- .../step-001.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/step-001.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/step-001.md index 1cdf25502b..eb462d349d 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/step-001.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/step-001.md @@ -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*(\r?\n)+<\s*html\s*>/gi)); +assert(__helpers.removeHtmlComments(code).match(/^\s*/i)); ``` You should have an opening `head` tag.