diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md index 1ac6725309..d9318d50f7 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md @@ -26,22 +26,22 @@ Camper Cat's Mortal Kombat survey results are in! Wrap a `time` tag around the t Your code should have a `p` element which includes the text `Thank you to everyone for responding to Master Camper Cat's survey.` and include a `time` element. ```js -assert(timeElement.length); +assert(timeElement); ``` Your added `time` tags should wrap around the text `Thursday, September 15th`. ```js assert( - timeElement.length && - $(timeElement).html().trim() === 'Thursday, September 15th' + timeElement && + timeElement?.innerHTML?.trim() === 'Thursday, September 15th' ); ``` Your added `time` tag should have a `datetime` attribute that is not empty. ```js -assert(datetimeAttr && datetimeAttr.length); +assert(datetimeAttr && datetimeAttr?.length); ``` Your added `datetime` attribute should be set to a value of `2016-09-15`. @@ -56,10 +56,10 @@ assert(datetimeAttr === '2016-09-15'); ```html ```