mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): Use innerText for anchor text test (#53081)
This commit is contained in:
parent
d3ed959319
commit
8591d46443
@ -97,7 +97,7 @@ assert(document.querySelector('div')?.querySelector('p')?.firstElementChild?.get
|
||||
Your `a` element should surround the text `freeCodeCamp`.
|
||||
|
||||
```js
|
||||
assert(document.querySelector('div')?.querySelector('p')?.firstElementChild?.textContent === 'freeCodeCamp');
|
||||
assert(document.querySelector('div')?.querySelector('p')?.firstElementChild?.innerText === 'freeCodeCamp');
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user