[devdocsgjs/main: 138/239] Update HTML documentation ()




commit 617448e688ad0c903d50e43dbe126a1edf610ed0
Author: Simon Legner <Simon Legner gmail com>
Date:   Sat Jan 22 17:32:43 2022 +0100

    Update HTML documentation ()

 lib/docs/filters/html/entries.rb | 7 +++----
 lib/docs/scrapers/mdn/html.rb    | 2 +-
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/lib/docs/filters/html/entries.rb b/lib/docs/filters/html/entries.rb
index 001bf797..3aac731b 100644
--- a/lib/docs/filters/html/entries.rb
+++ b/lib/docs/filters/html/entries.rb
@@ -1,7 +1,6 @@
 module Docs
   class Html
     class EntriesFilter < Docs::EntriesFilter
-      OBSOLETE = %w(frame frameset hgroup noframes)
       ADDITIONAL_ENTRIES = { 'Element/Heading_Elements' => (1..6).map { |n| ["h#{n}"] } }
 
       def get_name
@@ -15,10 +14,10 @@ module Docs
       def get_type
         return 'Miscellaneous' if slug.include?('CORS') || slug.include?('Using')
 
-        if slug.start_with?('Global_attr')
+        if at_css('.deprecated', '.non-standard', '.obsolete')
+        'Obsolete'
+        elsif slug.start_with?('Global_attr')
           'Attributes'
-        elsif at_css('#deprecated', '#non-standard', '#obsolete') || 
OBSOLETE.include?(slug.remove('Element/'))
-          'Obsolete'
         elsif slug.start_with?('Element/')
           'Elements'
         else
diff --git a/lib/docs/scrapers/mdn/html.rb b/lib/docs/scrapers/mdn/html.rb
index 195b6208..488465c6 100644
--- a/lib/docs/scrapers/mdn/html.rb
+++ b/lib/docs/scrapers/mdn/html.rb
@@ -2,7 +2,7 @@ module Docs
   class Html < Mdn
     prepend FixInternalUrlsBehavior
 
-    # release = '2021-12-21'
+    # release = '2022-01-22'
     self.name = 'HTML'
     self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/HTML'
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]