Skip to content

Commit

Permalink
Remove table tag defaults (#542)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
javierjulio authored Oct 24, 2023
1 parent 8164455 commit 22a71a3
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/arbre/html/html5_elements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,5 @@ class P < Tag
builder_method :para
end

class Table < Tag
def initialize(*)
super
set_table_tag_defaults
end

protected

# Set some good defaults for tables
def set_table_tag_defaults
set_attribute :border, 0
set_attribute :cellspacing, 0
set_attribute :cellpadding, 0
end
end

end
end

0 comments on commit 22a71a3

Please sign in to comment.