Not sure if it’s okay to post non-questions here but I noticed once I added the “name” attribute with the “username” value and ran the code, my LastPass browser extension populated the option to try auto-filling the text field. Guess that means one way they determine which fields might need to be filled is by looking for certain values under the “name” attribute? Pretty neat!
I must be missing out on something, but what I don’t understand in this exercise is why you have to determine the value in the editor when it’s a form :
If I write another name than Davie in the editor, it comes out on the textfield alright, but shouldn’t it be the other way round, writing a different name on the webpage and seeing the value on the editor adapt to the change (for example) ?
I’m really confused about this, if anybody could enlighten me, it would be great
The web page is raw text. Each time it loads it starts out the same way. The document served out is always the same. The only change made is in the DOM.
Thanks for such a quick answer !
I didn’t make myself clear : what if you have several users ? Isn’t there like a to-and-fro between the webpage and the DOM when it’s a form ?