web.dev's mobile nav menu sets an attribute of open
without a value
<web-navigation-drawer type="standard" animating="" open="">
How can I achieve this?
something.attr('open')
something.attr('open', '')
Both produce open="open"
.prop()
doesn't seem to work either.
Any thoughts on how they're doing this?
(Note: open="open"
is perfectly fine, I just think open
is cleaner - and clearly so do Google)
Thanks in advance, Mr J.