Class: Fortitude::Doctypes::Xhtml11
- Inherits:
-
Base
- Object
- Base
- Fortitude::Doctypes::Xhtml11
show all
- Defined in:
- lib/fortitude/doctypes/xhtml11.rb
Instance Attribute Summary
Attributes inherited from Base
#name
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#declare!, #tags, #to_s
#delegate_tag_stores, #modify_tag, #tag, #tag_names, #tags, #tags_added!, #tags_changed!
Constructor Details
Returns a new instance of Xhtml11.
7
8
9
|
# File 'lib/fortitude/doctypes/xhtml11.rb', line 7
def initialize
super(:xhtml11, 'html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"')
end
|
Class Method Details
.delegate_tag_stores ⇒ Object
Instance Method Details
#allows_bare_attributes? ⇒ Boolean
19
20
21
|
# File 'lib/fortitude/doctypes/xhtml11.rb', line 19
def allows_bare_attributes?
false
end
|
23
24
25
|
# File 'lib/fortitude/doctypes/xhtml11.rb', line 23
def close_void_tags_must_be
true
end
|
#default_javascript_tag_attributes ⇒ Object
11
12
13
|
# File 'lib/fortitude/doctypes/xhtml11.rb', line 11
def default_javascript_tag_attributes
{ :type => 'text/javascript'.freeze }.freeze
end
|
#needs_cdata_in_javascript_tag? ⇒ Boolean
15
16
17
|
# File 'lib/fortitude/doctypes/xhtml11.rb', line 15
def needs_cdata_in_javascript_tag?
true
end
|