Skip to content

Commit

Permalink
Remove table tag defaults (#516)
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 Jul 21, 2023
1 parent 6887c96 commit 186106d
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 186106d

Please sign in to comment.