Why <amp-sidebar>HAVE to be a direct descendant of the body?
I am in a situation where, in terms of code structure, it would be much easier to include <amp-sidebar>in <div>. I want it to behave exactly the same as <amp-sidebar>, but I just don't have an easy way to place an element as a direct child <body>.
I was particularly confused when I saw that this amp-by-example page does not pass the AMP validator.
Can someone please light me up? I was thinking about opening a problem on github, but I'm not sure if there is an error.
source
share