Skip to content

Commit 22a71a3

Browse files
authored
Remove table tag defaults (#542)
These are unnecessary for a long time now as they can be controlled easily through CSS. It would be best to have no overrides for these elements (other p/para due to the name clash).
1 parent 8164455 commit 22a71a3

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lib/arbre/html/html5_elements.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,5 @@ class P < Tag
2828
builder_method :para
2929
end
3030

31-
class Table < Tag
32-
def initialize(*)
33-
super
34-
set_table_tag_defaults
35-
end
36-
37-
protected
38-
39-
# Set some good defaults for tables
40-
def set_table_tag_defaults
41-
set_attribute :border, 0
42-
set_attribute :cellspacing, 0
43-
set_attribute :cellpadding, 0
44-
end
45-
end
46-
4731
end
4832
end

0 commit comments

Comments
 (0)