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.
Files changed (117) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/rake.yml +19 -0
  3. data/.github/workflows/release.yml +28 -0
  4. data/.gitignore +8 -0
  5. data/.rspec +3 -0
  6. data/.rubocop.yml +19 -0
  7. data/.rubocop_todo.yml +45 -0
  8. data/Gemfile +15 -0
  9. data/README.adoc +176 -0
  10. data/Rakefile +12 -0
  11. data/hyperlang.gemspec +36 -0
  12. data/lib/hyperlang/version.rb +5 -0
  13. data/lib/hyperlang/xhtml/a.rb +44 -0
  14. data/lib/hyperlang/xhtml/abbr.rb +22 -0
  15. data/lib/hyperlang/xhtml/acronym.rb +22 -0
  16. data/lib/hyperlang/xhtml/address.rb +26 -0
  17. data/lib/hyperlang/xhtml/applet.rb +42 -0
  18. data/lib/hyperlang/xhtml/area.rb +29 -0
  19. data/lib/hyperlang/xhtml/b.rb +22 -0
  20. data/lib/hyperlang/xhtml/base.rb +17 -0
  21. data/lib/hyperlang/xhtml/basefont.rb +21 -0
  22. data/lib/hyperlang/xhtml/bdo.rb +22 -0
  23. data/lib/hyperlang/xhtml/big.rb +22 -0
  24. data/lib/hyperlang/xhtml/blockquote.rb +44 -0
  25. data/lib/hyperlang/xhtml/body.rb +54 -0
  26. data/lib/hyperlang/xhtml/br.rb +12 -0
  27. data/lib/hyperlang/xhtml/button.rb +42 -0
  28. data/lib/hyperlang/xhtml/caption.rb +20 -0
  29. data/lib/hyperlang/xhtml/center.rb +48 -0
  30. data/lib/hyperlang/xhtml/cite.rb +20 -0
  31. data/lib/hyperlang/xhtml/code.rb +22 -0
  32. data/lib/hyperlang/xhtml/col.rb +29 -0
  33. data/lib/hyperlang/xhtml/colgroup.rb +31 -0
  34. data/lib/hyperlang/xhtml/dd.rb +40 -0
  35. data/lib/hyperlang/xhtml/del.rb +38 -0
  36. data/lib/hyperlang/xhtml/dfn.rb +20 -0
  37. data/lib/hyperlang/xhtml/dir.rb +21 -0
  38. data/lib/hyperlang/xhtml/div.rb +64 -0
  39. data/lib/hyperlang/xhtml/dl.rb +21 -0
  40. data/lib/hyperlang/xhtml/dt.rb +30 -0
  41. data/lib/hyperlang/xhtml/em.rb +22 -0
  42. data/lib/hyperlang/xhtml/fieldset.rb +34 -0
  43. data/lib/hyperlang/xhtml/font.rb +26 -0
  44. data/lib/hyperlang/xhtml/form.rb +40 -0
  45. data/lib/hyperlang/xhtml/frame.rb +31 -0
  46. data/lib/hyperlang/xhtml/frameset.rb +25 -0
  47. data/lib/hyperlang/xhtml/h1.rb +34 -0
  48. data/lib/hyperlang/xhtml/h2.rb +34 -0
  49. data/lib/hyperlang/xhtml/h3.rb +34 -0
  50. data/lib/hyperlang/xhtml/h4.rb +34 -0
  51. data/lib/hyperlang/xhtml/h5.rb +34 -0
  52. data/lib/hyperlang/xhtml/h6.rb +34 -0
  53. data/lib/hyperlang/xhtml/head.rb +27 -0
  54. data/lib/hyperlang/xhtml/hr.rb +17 -0
  55. data/lib/hyperlang/xhtml/html.rb +17 -0
  56. data/lib/hyperlang/xhtml/i.rb +22 -0
  57. data/lib/hyperlang/xhtml/iframe.rb +40 -0
  58. data/lib/hyperlang/xhtml/img.rb +35 -0
  59. data/lib/hyperlang/xhtml/input.rb +55 -0
  60. data/lib/hyperlang/xhtml/ins.rb +38 -0
  61. data/lib/hyperlang/xhtml/isindex.rb +19 -0
  62. data/lib/hyperlang/xhtml/kbd.rb +20 -0
  63. data/lib/hyperlang/xhtml/label.rb +24 -0
  64. data/lib/hyperlang/xhtml/legend.rb +22 -0
  65. data/lib/hyperlang/xhtml/li.rb +42 -0
  66. data/lib/hyperlang/xhtml/link.rb +31 -0
  67. data/lib/hyperlang/xhtml/map.rb +35 -0
  68. data/lib/hyperlang/xhtml/menu.rb +21 -0
  69. data/lib/hyperlang/xhtml/meta.rb +23 -0
  70. data/lib/hyperlang/xhtml/namespace.rb +10 -0
  71. data/lib/hyperlang/xhtml/noframes.rb +46 -0
  72. data/lib/hyperlang/xhtml/noscript.rb +42 -0
  73. data/lib/hyperlang/xhtml/object.rb +48 -0
  74. data/lib/hyperlang/xhtml/ol.rb +25 -0
  75. data/lib/hyperlang/xhtml/optgroup.rb +23 -0
  76. data/lib/hyperlang/xhtml/option.rb +25 -0
  77. data/lib/hyperlang/xhtml/p.rb +36 -0
  78. data/lib/hyperlang/xhtml/param.rb +23 -0
  79. data/lib/hyperlang/xhtml/pre.rb +32 -0
  80. data/lib/hyperlang/xhtml/q.rb +22 -0
  81. data/lib/hyperlang/xhtml/rb.rb +20 -0
  82. data/lib/hyperlang/xhtml/rbc.rb +19 -0
  83. data/lib/hyperlang/xhtml/rp.rb +19 -0
  84. data/lib/hyperlang/xhtml/rt.rb +22 -0
  85. data/lib/hyperlang/xhtml/rtc.rb +23 -0
  86. data/lib/hyperlang/xhtml/ruby.rb +27 -0
  87. data/lib/hyperlang/xhtml/s.rb +20 -0
  88. data/lib/hyperlang/xhtml/samp.rb +20 -0
  89. data/lib/hyperlang/xhtml/script.rb +25 -0
  90. data/lib/hyperlang/xhtml/select.rb +37 -0
  91. data/lib/hyperlang/xhtml/small.rb +22 -0
  92. data/lib/hyperlang/xhtml/span.rb +24 -0
  93. data/lib/hyperlang/xhtml/strike.rb +20 -0
  94. data/lib/hyperlang/xhtml/strong.rb +22 -0
  95. data/lib/hyperlang/xhtml/style.rb +23 -0
  96. data/lib/hyperlang/xhtml/sub.rb +20 -0
  97. data/lib/hyperlang/xhtml/sup.rb +20 -0
  98. data/lib/hyperlang/xhtml/table.rb +43 -0
  99. data/lib/hyperlang/xhtml/tbody.rb +27 -0
  100. data/lib/hyperlang/xhtml/td.rb +42 -0
  101. data/lib/hyperlang/xhtml/textarea.rb +41 -0
  102. data/lib/hyperlang/xhtml/tfoot.rb +27 -0
  103. data/lib/hyperlang/xhtml/th.rb +42 -0
  104. data/lib/hyperlang/xhtml/thead.rb +27 -0
  105. data/lib/hyperlang/xhtml/title.rb +15 -0
  106. data/lib/hyperlang/xhtml/tr.rb +29 -0
  107. data/lib/hyperlang/xhtml/tt.rb +20 -0
  108. data/lib/hyperlang/xhtml/u.rb +20 -0
  109. data/lib/hyperlang/xhtml/ul.rb +23 -0
  110. data/lib/hyperlang/xhtml/var.rb +20 -0
  111. data/lib/hyperlang/xhtml/xhtml.rb +147 -0
  112. data/lib/hyperlang.rb +16 -0
  113. data/spec/hyperlang/round_trip_spec.rb +86 -0
  114. data/spec/hyperlang/xhtml/block_spec.rb +56 -0
  115. data/spec/hyperlang/xhtml/inline_spec.rb +60 -0
  116. data/spec/spec_helper.rb +17 -0
  117. 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