hyperlang 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.github/workflows/rake.yml +19 -0
- data/.github/workflows/release.yml +28 -0
- data/.gitignore +8 -0
- data/.rspec +3 -0
- data/.rubocop.yml +19 -0
- data/.rubocop_todo.yml +45 -0
- data/Gemfile +15 -0
- data/README.adoc +176 -0
- data/Rakefile +12 -0
- data/hyperlang.gemspec +36 -0
- data/lib/hyperlang/version.rb +5 -0
- data/lib/hyperlang/xhtml/a.rb +44 -0
- data/lib/hyperlang/xhtml/abbr.rb +22 -0
- data/lib/hyperlang/xhtml/acronym.rb +22 -0
- data/lib/hyperlang/xhtml/address.rb +26 -0
- data/lib/hyperlang/xhtml/applet.rb +42 -0
- data/lib/hyperlang/xhtml/area.rb +29 -0
- data/lib/hyperlang/xhtml/b.rb +22 -0
- data/lib/hyperlang/xhtml/base.rb +17 -0
- data/lib/hyperlang/xhtml/basefont.rb +21 -0
- data/lib/hyperlang/xhtml/bdo.rb +22 -0
- data/lib/hyperlang/xhtml/big.rb +22 -0
- data/lib/hyperlang/xhtml/blockquote.rb +44 -0
- data/lib/hyperlang/xhtml/body.rb +54 -0
- data/lib/hyperlang/xhtml/br.rb +12 -0
- data/lib/hyperlang/xhtml/button.rb +42 -0
- data/lib/hyperlang/xhtml/caption.rb +20 -0
- data/lib/hyperlang/xhtml/center.rb +48 -0
- data/lib/hyperlang/xhtml/cite.rb +20 -0
- data/lib/hyperlang/xhtml/code.rb +22 -0
- data/lib/hyperlang/xhtml/col.rb +29 -0
- data/lib/hyperlang/xhtml/colgroup.rb +31 -0
- data/lib/hyperlang/xhtml/dd.rb +40 -0
- data/lib/hyperlang/xhtml/del.rb +38 -0
- data/lib/hyperlang/xhtml/dfn.rb +20 -0
- data/lib/hyperlang/xhtml/dir.rb +21 -0
- data/lib/hyperlang/xhtml/div.rb +64 -0
- data/lib/hyperlang/xhtml/dl.rb +21 -0
- data/lib/hyperlang/xhtml/dt.rb +30 -0
- data/lib/hyperlang/xhtml/em.rb +22 -0
- data/lib/hyperlang/xhtml/fieldset.rb +34 -0
- data/lib/hyperlang/xhtml/font.rb +26 -0
- data/lib/hyperlang/xhtml/form.rb +40 -0
- data/lib/hyperlang/xhtml/frame.rb +31 -0
- data/lib/hyperlang/xhtml/frameset.rb +25 -0
- data/lib/hyperlang/xhtml/h1.rb +34 -0
- data/lib/hyperlang/xhtml/h2.rb +34 -0
- data/lib/hyperlang/xhtml/h3.rb +34 -0
- data/lib/hyperlang/xhtml/h4.rb +34 -0
- data/lib/hyperlang/xhtml/h5.rb +34 -0
- data/lib/hyperlang/xhtml/h6.rb +34 -0
- data/lib/hyperlang/xhtml/head.rb +27 -0
- data/lib/hyperlang/xhtml/hr.rb +17 -0
- data/lib/hyperlang/xhtml/html.rb +17 -0
- data/lib/hyperlang/xhtml/i.rb +22 -0
- data/lib/hyperlang/xhtml/iframe.rb +40 -0
- data/lib/hyperlang/xhtml/img.rb +35 -0
- data/lib/hyperlang/xhtml/input.rb +55 -0
- data/lib/hyperlang/xhtml/ins.rb +38 -0
- data/lib/hyperlang/xhtml/isindex.rb +19 -0
- data/lib/hyperlang/xhtml/kbd.rb +20 -0
- data/lib/hyperlang/xhtml/label.rb +24 -0
- data/lib/hyperlang/xhtml/legend.rb +22 -0
- data/lib/hyperlang/xhtml/li.rb +42 -0
- data/lib/hyperlang/xhtml/link.rb +31 -0
- data/lib/hyperlang/xhtml/map.rb +35 -0
- data/lib/hyperlang/xhtml/menu.rb +21 -0
- data/lib/hyperlang/xhtml/meta.rb +23 -0
- data/lib/hyperlang/xhtml/namespace.rb +10 -0
- data/lib/hyperlang/xhtml/noframes.rb +46 -0
- data/lib/hyperlang/xhtml/noscript.rb +42 -0
- data/lib/hyperlang/xhtml/object.rb +48 -0
- data/lib/hyperlang/xhtml/ol.rb +25 -0
- data/lib/hyperlang/xhtml/optgroup.rb +23 -0
- data/lib/hyperlang/xhtml/option.rb +25 -0
- data/lib/hyperlang/xhtml/p.rb +36 -0
- data/lib/hyperlang/xhtml/param.rb +23 -0
- data/lib/hyperlang/xhtml/pre.rb +32 -0
- data/lib/hyperlang/xhtml/q.rb +22 -0
- data/lib/hyperlang/xhtml/rb.rb +20 -0
- data/lib/hyperlang/xhtml/rbc.rb +19 -0
- data/lib/hyperlang/xhtml/rp.rb +19 -0
- data/lib/hyperlang/xhtml/rt.rb +22 -0
- data/lib/hyperlang/xhtml/rtc.rb +23 -0
- data/lib/hyperlang/xhtml/ruby.rb +27 -0
- data/lib/hyperlang/xhtml/s.rb +20 -0
- data/lib/hyperlang/xhtml/samp.rb +20 -0
- data/lib/hyperlang/xhtml/script.rb +25 -0
- data/lib/hyperlang/xhtml/select.rb +37 -0
- data/lib/hyperlang/xhtml/small.rb +22 -0
- data/lib/hyperlang/xhtml/span.rb +24 -0
- data/lib/hyperlang/xhtml/strike.rb +20 -0
- data/lib/hyperlang/xhtml/strong.rb +22 -0
- data/lib/hyperlang/xhtml/style.rb +23 -0
- data/lib/hyperlang/xhtml/sub.rb +20 -0
- data/lib/hyperlang/xhtml/sup.rb +20 -0
- data/lib/hyperlang/xhtml/table.rb +43 -0
- data/lib/hyperlang/xhtml/tbody.rb +27 -0
- data/lib/hyperlang/xhtml/td.rb +42 -0
- data/lib/hyperlang/xhtml/textarea.rb +41 -0
- data/lib/hyperlang/xhtml/tfoot.rb +27 -0
- data/lib/hyperlang/xhtml/th.rb +42 -0
- data/lib/hyperlang/xhtml/thead.rb +27 -0
- data/lib/hyperlang/xhtml/title.rb +15 -0
- data/lib/hyperlang/xhtml/tr.rb +29 -0
- data/lib/hyperlang/xhtml/tt.rb +20 -0
- data/lib/hyperlang/xhtml/u.rb +20 -0
- data/lib/hyperlang/xhtml/ul.rb +23 -0
- data/lib/hyperlang/xhtml/var.rb +20 -0
- data/lib/hyperlang/xhtml/xhtml.rb +147 -0
- data/lib/hyperlang.rb +16 -0
- data/spec/hyperlang/round_trip_spec.rb +86 -0
- data/spec/hyperlang/xhtml/block_spec.rb +56 -0
- data/spec/hyperlang/xhtml/inline_spec.rb +60 -0
- data/spec/spec_helper.rb +17 -0
- metadata +173 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Script < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :type, :string
|
|
8
|
+
attribute :charset, :string
|
|
9
|
+
attribute :defer, :string
|
|
10
|
+
attribute :src, :string
|
|
11
|
+
attribute :id, :string
|
|
12
|
+
|
|
13
|
+
xml do
|
|
14
|
+
element "script"
|
|
15
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
16
|
+
map_content to: :content
|
|
17
|
+
map_attribute "type", to: :type
|
|
18
|
+
map_attribute "charset", to: :charset
|
|
19
|
+
map_attribute "defer", to: :defer
|
|
20
|
+
map_attribute "src", to: :src
|
|
21
|
+
map_attribute "id", to: :id
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Select < Lutaml::Model::Serializable
|
|
6
|
+
attribute :optgroup, Hyperlang::Xhtml::Optgroup, collection: true
|
|
7
|
+
attribute :option, Hyperlang::Xhtml::Option, collection: true
|
|
8
|
+
attribute :name, :string
|
|
9
|
+
attribute :size, :integer
|
|
10
|
+
attribute :multiple, :string
|
|
11
|
+
attribute :disabled, :string
|
|
12
|
+
attribute :tabindex, :integer
|
|
13
|
+
attribute :onfocus, :string
|
|
14
|
+
attribute :onblur, :string
|
|
15
|
+
attribute :onchange, :string
|
|
16
|
+
attribute :id, :string
|
|
17
|
+
attribute :klass, :string
|
|
18
|
+
|
|
19
|
+
xml do
|
|
20
|
+
element "select"
|
|
21
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
22
|
+
map_element "optgroup", to: :optgroup
|
|
23
|
+
map_element "option", to: :option
|
|
24
|
+
map_attribute "name", to: :name
|
|
25
|
+
map_attribute "size", to: :size
|
|
26
|
+
map_attribute "multiple", to: :multiple
|
|
27
|
+
map_attribute "disabled", to: :disabled
|
|
28
|
+
map_attribute "tabindex", to: :tabindex
|
|
29
|
+
map_attribute "onfocus", to: :onfocus
|
|
30
|
+
map_attribute "onblur", to: :onblur
|
|
31
|
+
map_attribute "onchange", to: :onchange
|
|
32
|
+
map_attribute "id", to: :id
|
|
33
|
+
map_attribute "class", to: :klass
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Small < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :id, :string
|
|
8
|
+
attribute :klass, :string
|
|
9
|
+
attribute :style, :string
|
|
10
|
+
|
|
11
|
+
xml do
|
|
12
|
+
element "small"
|
|
13
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
14
|
+
mixed_content
|
|
15
|
+
map_content to: :content
|
|
16
|
+
map_attribute "id", to: :id
|
|
17
|
+
map_attribute "class", to: :klass
|
|
18
|
+
map_attribute "style", to: :style
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Span < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :style, :string
|
|
8
|
+
attribute :klass, :string
|
|
9
|
+
attribute :id, :string
|
|
10
|
+
attribute :title, :string
|
|
11
|
+
|
|
12
|
+
xml do
|
|
13
|
+
element "span"
|
|
14
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
15
|
+
mixed_content
|
|
16
|
+
map_content to: :content
|
|
17
|
+
map_attribute "style", to: :style
|
|
18
|
+
map_attribute "class", to: :klass
|
|
19
|
+
map_attribute "id", to: :id
|
|
20
|
+
map_attribute "title", to: :title
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Strike < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :id, :string
|
|
8
|
+
attribute :klass, :string
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "strike"
|
|
12
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
13
|
+
mixed_content
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_attribute "id", to: :id
|
|
16
|
+
map_attribute "class", to: :klass
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Strong < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :id, :string
|
|
8
|
+
attribute :klass, :string
|
|
9
|
+
attribute :style, :string
|
|
10
|
+
|
|
11
|
+
xml do
|
|
12
|
+
element "strong"
|
|
13
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
14
|
+
mixed_content
|
|
15
|
+
map_content to: :content
|
|
16
|
+
map_attribute "id", to: :id
|
|
17
|
+
map_attribute "class", to: :klass
|
|
18
|
+
map_attribute "style", to: :style
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Style < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :type, :string
|
|
8
|
+
attribute :media, :string
|
|
9
|
+
attribute :title, :string
|
|
10
|
+
attribute :id, :string
|
|
11
|
+
|
|
12
|
+
xml do
|
|
13
|
+
element "style"
|
|
14
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
15
|
+
map_content to: :content
|
|
16
|
+
map_attribute "type", to: :type
|
|
17
|
+
map_attribute "media", to: :media
|
|
18
|
+
map_attribute "title", to: :title
|
|
19
|
+
map_attribute "id", to: :id
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Sub < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :id, :string
|
|
8
|
+
attribute :klass, :string
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "sub"
|
|
12
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
13
|
+
mixed_content
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_attribute "id", to: :id
|
|
16
|
+
map_attribute "class", to: :klass
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Sup < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :id, :string
|
|
8
|
+
attribute :klass, :string
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "sup"
|
|
12
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
13
|
+
mixed_content
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_attribute "id", to: :id
|
|
16
|
+
map_attribute "class", to: :klass
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Table < Lutaml::Model::Serializable
|
|
6
|
+
attribute :caption, Hyperlang::Xhtml::Caption
|
|
7
|
+
attribute :colgroup, Hyperlang::Xhtml::Colgroup, collection: true
|
|
8
|
+
attribute :thead, Hyperlang::Xhtml::Thead
|
|
9
|
+
attribute :tfoot, Hyperlang::Xhtml::Tfoot
|
|
10
|
+
attribute :tbody, Hyperlang::Xhtml::Tbody, collection: true
|
|
11
|
+
attribute :tr, Hyperlang::Xhtml::Tr, collection: true
|
|
12
|
+
attribute :summary, :string
|
|
13
|
+
attribute :width, :string
|
|
14
|
+
attribute :border, :string
|
|
15
|
+
attribute :frame, :string
|
|
16
|
+
attribute :rules, :string
|
|
17
|
+
attribute :cellspacing, :string
|
|
18
|
+
attribute :cellpadding, :string
|
|
19
|
+
attribute :id, :string
|
|
20
|
+
attribute :klass, :string
|
|
21
|
+
|
|
22
|
+
xml do
|
|
23
|
+
element "table"
|
|
24
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
25
|
+
map_element "caption", to: :caption
|
|
26
|
+
map_element "colgroup", to: :colgroup
|
|
27
|
+
map_element "thead", to: :thead
|
|
28
|
+
map_element "tfoot", to: :tfoot
|
|
29
|
+
map_element "tbody", to: :tbody
|
|
30
|
+
map_element "tr", to: :tr
|
|
31
|
+
map_attribute "summary", to: :summary
|
|
32
|
+
map_attribute "width", to: :width
|
|
33
|
+
map_attribute "border", to: :border
|
|
34
|
+
map_attribute "frame", to: :frame
|
|
35
|
+
map_attribute "rules", to: :rules
|
|
36
|
+
map_attribute "cellspacing", to: :cellspacing
|
|
37
|
+
map_attribute "cellpadding", to: :cellpadding
|
|
38
|
+
map_attribute "id", to: :id
|
|
39
|
+
map_attribute "class", to: :klass
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Tbody < Lutaml::Model::Serializable
|
|
6
|
+
attribute :tr, Hyperlang::Xhtml::Tr, collection: true
|
|
7
|
+
attribute :align, :string
|
|
8
|
+
attribute :char, :string
|
|
9
|
+
attribute :charoff, :string
|
|
10
|
+
attribute :valign, :string
|
|
11
|
+
attribute :id, :string
|
|
12
|
+
attribute :klass, :string
|
|
13
|
+
|
|
14
|
+
xml do
|
|
15
|
+
element "tbody"
|
|
16
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
17
|
+
map_element "tr", to: :tr
|
|
18
|
+
map_attribute "align", to: :align
|
|
19
|
+
map_attribute "char", to: :char
|
|
20
|
+
map_attribute "charoff", to: :charoff
|
|
21
|
+
map_attribute "valign", to: :valign
|
|
22
|
+
map_attribute "id", to: :id
|
|
23
|
+
map_attribute "class", to: :klass
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Td < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :abbr, :string
|
|
8
|
+
attribute :axis, :string
|
|
9
|
+
attribute :headers, :string
|
|
10
|
+
attribute :scope, :string
|
|
11
|
+
attribute :rowspan, :integer
|
|
12
|
+
attribute :colspan, :integer
|
|
13
|
+
attribute :align, :string
|
|
14
|
+
attribute :char, :string
|
|
15
|
+
attribute :charoff, :string
|
|
16
|
+
attribute :valign, :string
|
|
17
|
+
attribute :nowrap, :string
|
|
18
|
+
attribute :id, :string
|
|
19
|
+
attribute :klass, :string
|
|
20
|
+
|
|
21
|
+
xml do
|
|
22
|
+
element "td"
|
|
23
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
24
|
+
mixed_content
|
|
25
|
+
map_content to: :content
|
|
26
|
+
map_attribute "abbr", to: :abbr
|
|
27
|
+
map_attribute "axis", to: :axis
|
|
28
|
+
map_attribute "headers", to: :headers
|
|
29
|
+
map_attribute "scope", to: :scope
|
|
30
|
+
map_attribute "rowspan", to: :rowspan
|
|
31
|
+
map_attribute "colspan", to: :colspan
|
|
32
|
+
map_attribute "align", to: :align
|
|
33
|
+
map_attribute "char", to: :char
|
|
34
|
+
map_attribute "charoff", to: :charoff
|
|
35
|
+
map_attribute "valign", to: :valign
|
|
36
|
+
map_attribute "nowrap", to: :nowrap
|
|
37
|
+
map_attribute "id", to: :id
|
|
38
|
+
map_attribute "class", to: :klass
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Textarea < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :name, :string
|
|
8
|
+
attribute :rows, :integer
|
|
9
|
+
attribute :cols, :integer
|
|
10
|
+
attribute :disabled, :string
|
|
11
|
+
attribute :readonly, :string
|
|
12
|
+
attribute :tabindex, :integer
|
|
13
|
+
attribute :accesskey, :string
|
|
14
|
+
attribute :onfocus, :string
|
|
15
|
+
attribute :onblur, :string
|
|
16
|
+
attribute :onselect, :string
|
|
17
|
+
attribute :onchange, :string
|
|
18
|
+
attribute :id, :string
|
|
19
|
+
attribute :klass, :string
|
|
20
|
+
|
|
21
|
+
xml do
|
|
22
|
+
element "textarea"
|
|
23
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
24
|
+
map_content to: :content
|
|
25
|
+
map_attribute "name", to: :name
|
|
26
|
+
map_attribute "rows", to: :rows
|
|
27
|
+
map_attribute "cols", to: :cols
|
|
28
|
+
map_attribute "disabled", to: :disabled
|
|
29
|
+
map_attribute "readonly", to: :readonly
|
|
30
|
+
map_attribute "tabindex", to: :tabindex
|
|
31
|
+
map_attribute "accesskey", to: :accesskey
|
|
32
|
+
map_attribute "onfocus", to: :onfocus
|
|
33
|
+
map_attribute "onblur", to: :onblur
|
|
34
|
+
map_attribute "onselect", to: :onselect
|
|
35
|
+
map_attribute "onchange", to: :onchange
|
|
36
|
+
map_attribute "id", to: :id
|
|
37
|
+
map_attribute "class", to: :klass
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Tfoot < Lutaml::Model::Serializable
|
|
6
|
+
attribute :tr, Hyperlang::Xhtml::Tr, collection: true
|
|
7
|
+
attribute :align, :string
|
|
8
|
+
attribute :char, :string
|
|
9
|
+
attribute :charoff, :string
|
|
10
|
+
attribute :valign, :string
|
|
11
|
+
attribute :id, :string
|
|
12
|
+
attribute :klass, :string
|
|
13
|
+
|
|
14
|
+
xml do
|
|
15
|
+
element "tfoot"
|
|
16
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
17
|
+
map_element "tr", to: :tr
|
|
18
|
+
map_attribute "align", to: :align
|
|
19
|
+
map_attribute "char", to: :char
|
|
20
|
+
map_attribute "charoff", to: :charoff
|
|
21
|
+
map_attribute "valign", to: :valign
|
|
22
|
+
map_attribute "id", to: :id
|
|
23
|
+
map_attribute "class", to: :klass
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Th < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :abbr, :string
|
|
8
|
+
attribute :axis, :string
|
|
9
|
+
attribute :headers, :string
|
|
10
|
+
attribute :scope, :string
|
|
11
|
+
attribute :rowspan, :integer
|
|
12
|
+
attribute :colspan, :integer
|
|
13
|
+
attribute :align, :string
|
|
14
|
+
attribute :char, :string
|
|
15
|
+
attribute :charoff, :string
|
|
16
|
+
attribute :valign, :string
|
|
17
|
+
attribute :nowrap, :string
|
|
18
|
+
attribute :id, :string
|
|
19
|
+
attribute :klass, :string
|
|
20
|
+
|
|
21
|
+
xml do
|
|
22
|
+
element "th"
|
|
23
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
24
|
+
mixed_content
|
|
25
|
+
map_content to: :content
|
|
26
|
+
map_attribute "abbr", to: :abbr
|
|
27
|
+
map_attribute "axis", to: :axis
|
|
28
|
+
map_attribute "headers", to: :headers
|
|
29
|
+
map_attribute "scope", to: :scope
|
|
30
|
+
map_attribute "rowspan", to: :rowspan
|
|
31
|
+
map_attribute "colspan", to: :colspan
|
|
32
|
+
map_attribute "align", to: :align
|
|
33
|
+
map_attribute "char", to: :char
|
|
34
|
+
map_attribute "charoff", to: :charoff
|
|
35
|
+
map_attribute "valign", to: :valign
|
|
36
|
+
map_attribute "nowrap", to: :nowrap
|
|
37
|
+
map_attribute "id", to: :id
|
|
38
|
+
map_attribute "class", to: :klass
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Thead < Lutaml::Model::Serializable
|
|
6
|
+
attribute :tr, Hyperlang::Xhtml::Tr, collection: true
|
|
7
|
+
attribute :align, :string
|
|
8
|
+
attribute :char, :string
|
|
9
|
+
attribute :charoff, :string
|
|
10
|
+
attribute :valign, :string
|
|
11
|
+
attribute :id, :string
|
|
12
|
+
attribute :klass, :string
|
|
13
|
+
|
|
14
|
+
xml do
|
|
15
|
+
element "thead"
|
|
16
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
17
|
+
map_element "tr", to: :tr
|
|
18
|
+
map_attribute "align", to: :align
|
|
19
|
+
map_attribute "char", to: :char
|
|
20
|
+
map_attribute "charoff", to: :charoff
|
|
21
|
+
map_attribute "valign", to: :valign
|
|
22
|
+
map_attribute "id", to: :id
|
|
23
|
+
map_attribute "class", to: :klass
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Title < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "title"
|
|
10
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
11
|
+
map_content to: :content
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Tr < Lutaml::Model::Serializable
|
|
6
|
+
attribute :th, Hyperlang::Xhtml::Th, collection: true
|
|
7
|
+
attribute :td, Hyperlang::Xhtml::Td, collection: true
|
|
8
|
+
attribute :align, :string
|
|
9
|
+
attribute :char, :string
|
|
10
|
+
attribute :charoff, :string
|
|
11
|
+
attribute :valign, :string
|
|
12
|
+
attribute :id, :string
|
|
13
|
+
attribute :klass, :string
|
|
14
|
+
|
|
15
|
+
xml do
|
|
16
|
+
element "tr"
|
|
17
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
18
|
+
map_element "th", to: :th
|
|
19
|
+
map_element "td", to: :td
|
|
20
|
+
map_attribute "align", to: :align
|
|
21
|
+
map_attribute "char", to: :char
|
|
22
|
+
map_attribute "charoff", to: :charoff
|
|
23
|
+
map_attribute "valign", to: :valign
|
|
24
|
+
map_attribute "id", to: :id
|
|
25
|
+
map_attribute "class", to: :klass
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Tt < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :id, :string
|
|
8
|
+
attribute :klass, :string
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "tt"
|
|
12
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
13
|
+
mixed_content
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_attribute "id", to: :id
|
|
16
|
+
map_attribute "class", to: :klass
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class U < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :id, :string
|
|
8
|
+
attribute :klass, :string
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "u"
|
|
12
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
13
|
+
mixed_content
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_attribute "id", to: :id
|
|
16
|
+
map_attribute "class", to: :klass
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Ul < Lutaml::Model::Serializable
|
|
6
|
+
attribute :li, Hyperlang::Xhtml::Li, collection: true
|
|
7
|
+
attribute :type, :string
|
|
8
|
+
attribute :compact, :string
|
|
9
|
+
attribute :id, :string
|
|
10
|
+
attribute :klass, :string
|
|
11
|
+
|
|
12
|
+
xml do
|
|
13
|
+
element "ul"
|
|
14
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
15
|
+
map_element "li", to: :li
|
|
16
|
+
map_attribute "type", to: :type
|
|
17
|
+
map_attribute "compact", to: :compact
|
|
18
|
+
map_attribute "id", to: :id
|
|
19
|
+
map_attribute "class", to: :klass
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Hyperlang
|
|
4
|
+
module Xhtml
|
|
5
|
+
class Var < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :id, :string
|
|
8
|
+
attribute :klass, :string
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "var"
|
|
12
|
+
namespace Hyperlang::Xhtml::Namespace
|
|
13
|
+
mixed_content
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_attribute "id", to: :id
|
|
16
|
+
map_attribute "class", to: :klass
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|