Sha256: 40aec4cddfcf64834941638a3ffcd0d78570a1517c03a23f05c3222daa231b52

Contents?: true

Size: 578 Bytes

Versions: 3

Compression:

Stored size: 578 Bytes

Contents

module Loofah
  module Elements
    # Block elements in HTML4
    STRICT_BLOCK_LEVEL = %w[address blockquote center dir div dl
      fieldset form h1 h2 h3 h4 h5 h6 hr isindex menu noframes
      noscript ol p pre table ul]

    # The following elements may also be considered block-level elements since they may contain block-level elements
    LOOSE_BLOCK_LEVEL = %w[dd dt frameset li tbody td tfoot th thead tr]

    BLOCK_LEVEL = STRICT_BLOCK_LEVEL + LOOSE_BLOCK_LEVEL
  end

  module HashedElements
    include Loofah::MetaHelpers::HashifiedConstants(Elements)
  end
end


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loofah-1.0.0 lib/loofah/elements.rb
loofah-1.0.0.beta.1 lib/loofah/elements.rb
loofah-0.4.7 lib/loofah/elements.rb