You mean you use querySelector()?
Nope. I have a css file like this: #IV { } #IV img { } #IV .title { } I want these selectors to be applied to the new elements
You can't have multiple elements with the same ID in one document
I don't have such a thing. I just append a container to the body when the page is being loaded. But the appended elements don't get selected by css selectors
Only ONE element can have that per page
I know that. You think I have multiple id="IV"? No I don't
If you don't this should work fine
Hmmm... Maybe I've forgotten something ... !
Yes, but it doesn't error or not append for those reasons; browser decides to make it work anyway
Обсуждают сегодня