Sha256: c21342efd594dd1b86adeb063628467313a790ca53663395b4b4c8e064d2cb20

Contents?: true

Size: 703 Bytes

Versions: 18

Compression:

Stored size: 703 Bytes

Contents

require 'fortitude/doctypes'
require 'fortitude/doctypes/base'

module Fortitude
  module Doctypes
    class Xhtml11 < Base
      def initialize
        super(:xhtml11, 'html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"')
      end

      def default_javascript_tag_attributes
        { :type => 'text/javascript'.freeze }.freeze
      end

      def needs_cdata_in_javascript_tag?
        true
      end

      def allows_bare_attributes?
        false
      end

      def close_void_tags_must_be
        true
      end

      class << self
        def delegate_tag_stores
          [ Fortitude::Doctypes::Html4TagsStrict ]
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fortitude-0.9.6-java lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.6 lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.5-java lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.5 lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.4-java lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.4 lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.3-java lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.3 lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.2-java lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.2 lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.1-java lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.1 lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.0-java lib/fortitude/doctypes/xhtml11.rb
fortitude-0.9.0 lib/fortitude/doctypes/xhtml11.rb
fortitude-0.0.10-java lib/fortitude/doctypes/xhtml11.rb
fortitude-0.0.10 lib/fortitude/doctypes/xhtml11.rb
fortitude-0.0.9-java lib/fortitude/doctypes/xhtml11.rb
fortitude-0.0.9 lib/fortitude/doctypes/xhtml11.rb