site.fabricate.prototype.html Namespace

Namespace for creating HTML forms using Hiccup data structures and for verifying their structural correctness using malli schemas. The schemas in this namespace implement a non-interactive subset of the MDN HTML spec.


Functions


element-flat-explainer
Description
Arguments
    ns-kw
    Description
    Arguments
    • [ns kw]
    • [kw]
    atomic-element?
    Description
    Arguments
      flow?
      Description
      Arguments
        explain-element
        Description
        Arguments
          palpable?
          Description
          Arguments
          • [c]
          element?
          Description
          Arguments
            parse-element-flat
            Description
            Arguments
              parse-element
              Description
              Arguments
                validate-element
                Description
                Arguments
                • [elem]
                heading?
                Description
                Arguments
                  permitted-contents
                  Description
                  Gets the permitted contents of the given tag
                  Arguments
                  • [tag]
                  phrasing?
                  Description
                  Arguments


                    Constants


                    atomic-element
                    Description
                    Type
                    clojure.lang.PersistentVector
                    external-link-pattern
                    Description
                    Type
                    java.util.regex.Pattern
                    element-explainers
                    Description
                    Type
                    clojure.lang.PersistentHashMap
                    element-validators
                    Description
                    Type
                    clojure.lang.PersistentHashMap
                    html
                    Description
                    Malli schema for a subset of HTML. Will fail to validate on elements that do not respect the hierarchy of flow and phrasing content.
                    Type
                    :malli.core/schema
                    inline-tags
                    Description
                    MDN list of inline HTML element tags
                    Type
                    clojure.lang.PersistentHashSet
                    element
                    Description
                    Type
                    :malli.core/schema
                    flow-tags
                    Description
                    MDN list of flow content element tags
                    Type
                    clojure.lang.PersistentHashSet
                    element-flat
                    Description
                    Type
                    :malli.core/schema
                    element-parsers
                    Description
                    Type
                    clojure.lang.PersistentHashMap
                    metadata-tags
                    Description
                    MDN list of metadata content element tags
                    Type
                    clojure.lang.PersistentHashSet
                    phrasing-tags
                    Description
                    MDN list of phrasing content element tags
                    Type
                    clojure.lang.PersistentHashSet
                    heading-tags
                    Description
                    MDN list of heading content element tags
                    Type
                    clojure.lang.PersistentHashSet
                    embedded-tags
                    Description
                    MDN list of embedded content element tags
                    Type
                    clojure.lang.PersistentHashSet
                    tag-contents
                    Description
                    Type
                    clojure.lang.PersistentHashMap
                    phrasing-subtags
                    Description
                    MDN list of tags that are phrasing content when they contain only phrasing content.
                    Type
                    clojure.lang.PersistentHashSet
                    transparent-tags
                    Description
                    MDN list of transparent content tags
                    Type
                    clojure.lang.PersistentHashSet
                    global-attributes
                    Description
                    MDN list of global HTML attributes as malli schema
                    Type
                    :malli.core/schema
                    block-level-tags
                    Description
                    MDN list of block-level HTML element tags
                    Type
                    clojure.lang.PersistentHashSet
                    sectioning-tags
                    Description
                    MDN list of sectioning content element tags
                    Type
                    clojure.lang.PersistentHashSet
                    internal-link-pattern
                    Description
                    Type
                    java.util.regex.Pattern
                    url
                    Description
                    Type
                    clojure.lang.PersistentVector
                    interactive-tags
                    Description
                    MDN list of interactive content element tags
                    Type
                    clojure.lang.PersistentHashSet