From 186106dcf7a83662ff3680a28731e765d0885f78 Mon Sep 17 00:00:00 2001 From: Javier Julio Date: Fri, 21 Jul 2023 17:06:44 -0400 Subject: [PATCH] Remove table tag defaults (#516) 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