Class: Fortitude::Doctypes::Xhtml10

Inherits:
Base
  • Object
show all
Defined in:
lib/fortitude/doctypes/xhtml10.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#declare!, delegate_tag_stores, #initialize, #tags, #to_s

Methods included from Tags::TagStore

#delegate_tag_stores, #modify_tag, #tag, #tag_names, #tags, #tags_added!, #tags_changed!

Constructor Details

This class inherits a constructor from Fortitude::Doctypes::Base

Instance Method Details

#allows_bare_attributes?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/fortitude/doctypes/xhtml10.rb', line 15

def allows_bare_attributes?
  false
end

#close_void_tags_must_beObject



19
20
21
# File 'lib/fortitude/doctypes/xhtml10.rb', line 19

def close_void_tags_must_be
  true
end

#default_javascript_tag_attributesObject



7
8
9
# File 'lib/fortitude/doctypes/xhtml10.rb', line 7

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

#needs_cdata_in_javascript_tag?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/fortitude/doctypes/xhtml10.rb', line 11

def needs_cdata_in_javascript_tag?
  true
end