Files
Naomi Carrigan 16e7cdedb1 feat: migrate filenames to IDs (#45146)
* feat: migrate filenames to IDs

* feat: migrate balance sheet file names

* revert: no id name for cert projects

* fix: i swear i know what i'm doing
2022-03-02 09:06:00 -06:00

1.1 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
60f027c87bc98f050395c139 Step 3 0 step-3

--description--

Next, add opening and closing head and body tags within the html element.

--hints--

You should have an opening head tag.

assert(code.match(/<head\s*>/i));

You should have a closing head tag.

assert(code.match(/<\/head\s*>/i));

You should have an opening body tag.

assert(code.match(/<body\s*>/i));

You should have a closing body tag.

assert(code.match(/<\/body\s*>/i));

The head and body elements should be siblings.

assert(document.querySelector('head')?.nextElementSibling.localName === 'body');

The head element should be within the html element.

assert([...document.querySelector('html')?.children].some(x => x?.localName === 'head'));

The body element should be within the html element.

assert([...document.querySelector('html')?.children].some(x => x?.localName === 'body'));

--seed--

--seed-contents--

--fcc-editable-region--
<!DOCTYPE html>
<html>

</html>
--fcc-editable-region--