HTML and CSS Reference
In-Depth Information
contextmenu is related to <menu> , <command> which are not
appearing in this topic (see the section “Features not covered
in this topic”).
Yo u c a n p a s s i n f o r m a t i o n t o s c r i p t s f r o m m a r k u p u s i n g t h e data-*
attribute. It can be any XML-compatible name. See Chapter 4 for
an explanation.
draggable indicates that the element can be dragged using the
drag-and-drop API (see Chapter 9).
This attribute is analogous to aria-hidden , which tells the
browser that the content of this element shouldn't be rendered
in any way. It doesn't only hide the content, but keeps it “in the
wings,” so that for instance you could use JavaScript later on to
remove the attribute and cause the element to “pop” into being.
Quoting the specifi cation (rather than attempting to paraphrase
it any further): “The hidden attribute must not be used to hide
content that could legitimately be shown in another presenta-
tion. For example, it is incorrect to use hidden to hide panels in
a tabbed dialog, because the tabbed interface is merely a kind
of overfl ow presentation—one could equally well just show all
the form controls in one big page with a scrollbar. It is similarly
incorrect to use this attribute to hide content just from one pre-
sentation—if something is marked hidden, it is hidden from all
presentations, including, for instance, screen readers.”
Even if you know that you'll be “unhiding” stuff later with some
scripting, you should treat hidden stuff as if it literally wasn't there.
So don't add links pointing to content that's hidden and don't tie
other elements to it with aria-describedby or aria-labelledby .
Search WWH ::

Custom Search