JS FS BC W6
Random notes. Unorganized thoughts. Not an article.
replaceWith() method might not be supported, lookup parent and use replaceChild() method instead.
NodeList
inline, on-event, then modern addEventListener
“To manipulate an element inside the DOM, you first need to select it and store a reference to it inside a variable.”
Shortcut for Emojis for Mac on CodePen
Control + Command + Space
<input type=”text” name=”username” pattern=”[a-zA-Z]{8}”>
“The main selling point for using tel
over text
is on mobile, where the device can choose to show a numeric keyboard.”
“As with the other form tags, the name
attribute determines the name in the data sent to the server:”
on focus …
history.pushState(state, '', '/anotherPage')
“The second parameter is currently unused by major browsers, so you generally pass an empty string.”
“$0 always refers to the last node that you selected. $1 refers to the node you selected before that. And then $2, and $3, etc.”
Playing around with an example from discord week 6 example and realized this when I tried to log all the child nodes… really cool community.
“Text nodes (including comments and so on) are child nodes.”
“always avoid adding sensitive information to cookies”
“MDN says “The order of keys is user-agent defined, so you should not rely on it”.”