Sha256: 73e8081906ac7f5ae0ed96948f56df8a8114fd589cd00a6b623d7ec6acce6fe2

Contents?: true

Size: 605 Bytes

Versions: 29

Compression:

Stored size: 605 Bytes

Contents

require 'set'

module Loofah
  module Elements
    # Block elements in HTML4
    STRICT_BLOCK_LEVEL = Set.new %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 = Set.new %w[dd dt frameset li tbody td tfoot th thead tr]

    BLOCK_LEVEL = STRICT_BLOCK_LEVEL + LOOSE_BLOCK_LEVEL
  end

  ::Loofah::MetaHelpers.add_downcased_set_members_to_all_set_constants ::Loofah::Elements
end

Version data entries

29 entries across 29 versions & 9 rubygems

Version Path
loofah-2.1.1 lib/loofah/elements.rb
loofah-2.1.0 lib/loofah/elements.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/loofah-2.0.3/lib/loofah/elements.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/loofah-2.0.3/lib/loofah/elements.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/loofah-2.0.3/lib/loofah/elements.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/loofah-2.0.3/lib/loofah/elements.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/loofah-2.0.3/lib/loofah/elements.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/loofah-2.0.3/lib/loofah/elements.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/loofah-2.0.3/lib/loofah/elements.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/loofah-2.0.3/lib/loofah/elements.rb
abaci-0.3.0 vendor/bundle/gems/loofah-2.0.3/lib/loofah/elements.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/loofah-2.0.3/lib/loofah/elements.rb
loofah-2.1.0.rc2 lib/loofah/elements.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/loofah-2.0.3/lib/loofah/elements.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/loofah-2.0.3/lib/loofah/elements.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/loofah-2.0.3/lib/loofah/elements.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/loofah-2.0.3/lib/loofah/elements.rb
loofah-2.1.0.rc1 lib/loofah/elements.rb
loofah-2.0.3 lib/loofah/elements.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/loofah-2.0.2/lib/loofah/elements.rb