You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: curriculum/challenges/english/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md
+20-15Lines changed: 20 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,45 +21,50 @@ Here's an example:
21
21
22
22
Camper Cat's Mortal Kombat survey results are in! Wrap a `time` tag around the text `Thursday, September 15<sup>th</sup>` and add a `datetime` attribute to it set to `2016-09-15`.
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.
27
43
28
44
```js
29
-
assert.exists(timeElement);
45
+
assert.exists(getTimeElement());
30
46
```
31
47
32
48
Your added `time` tags should wrap around the text `Thursday, September 15<sup>th</sup>`.
33
49
34
50
```js
35
-
assert.strictEqual(timeElement?.innerHTML?.trim(), 'Thursday, September 15<sup>th</sup>');
51
+
assert.strictEqual(getTimeElement()?.innerHTML?.trim(), 'Thursday, September 15<sup>th</sup>');
36
52
```
37
53
38
54
Your added `time` tag should have a `datetime` attribute that is not empty.
39
55
40
56
```js
41
-
assert(datetimeAttr?.length!=0);
57
+
assert(getDatetimeAttr()?.length != 0);
42
58
```
43
59
44
60
Your added `datetime` attribute should be set to a value of `2016-09-15`.
0 commit comments