Class: Fortitude::Doctypes::Html4Transitional

Inherits:
Html4
  • Object
show all
Defined in:
lib/fortitude/doctypes/html4_transitional.rb

Direct Known Subclasses

Html4Frameset

Instance Attribute Summary

Attributes inherited from Base

#name

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Html4

#allows_bare_attributes?, #close_void_tags_must_be, #default_javascript_tag_attributes, #needs_cdata_in_javascript_tag?

Methods inherited from Base

#close_void_tags_must_be, #declare!, #tags, #to_s

Methods included from Tags::TagStore

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

Constructor Details

#initialize(name = nil, dtd = nil) ⇒ Html4Transitional

Returns a new instance of Html4Transitional.



8
9
10
# File 'lib/fortitude/doctypes/html4_transitional.rb', line 8

def initialize(name = nil, dtd = nil)
  super(name || :html4_transitional, dtd || 'HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"')
end

Class Method Details

.delegate_tag_storesObject



13
14
15
# File 'lib/fortitude/doctypes/html4_transitional.rb', line 13

def delegate_tag_stores
  [ Fortitude::Doctypes::Html4TagsTransitional ]
end