From f88f2796a740e616134aa7ca68b801ef5bf9c926 Mon Sep 17 00:00:00 2001 From: Javier Julio Date: Fri, 21 Jul 2023 16:51:16 -0400 Subject: [PATCH] Remove table tag defaults 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). --- lib/arbre/html/html5_elements.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/arbre/html/html5_elements.rb b/lib/arbre/html/html5_elements.rb index 877b659e..e32078c0 100644 --- a/lib/arbre/html/html5_elements.rb +++ b/lib/arbre/html/html5_elements.rb @@ -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