Function: dom--html-boolean-attribute-p

dom--html-boolean-attribute-p is a byte-compiled function defined in dom.el.gz.

Signature

(dom--html-boolean-attribute-p ATTR)

Documentation

Return non-nil if ATTR is an HTML boolean attribute.

Source Code

;; Defined in /usr/src/emacs/lisp/dom.el.gz
(define-inline dom--html-boolean-attribute-p (attr)
  "Return non-nil if ATTR is an HTML boolean attribute."
  (inline-quote
   (memq ,attr
         ;; Extracted from the HTML Living Standard list of attributes
         ;; at <https://html.spec.whatwg.org/#attributes-3>.
         '( allowfullscreen alpha async autofocus autoplay checked
            controls default defer disabled formnovalidate inert ismap
            itemscope loop multiple muted nomodule novalidate open
            playsinline readonly required reversed selected
            shadowrootclonable shadowrootdelegatesfocus
            shadowrootserializable))))