[devdocsgjs/main: 1618/1867] Update DOM documentation




commit b581eb228e2a0245934a3dda1e086a85c1da24ea
Author: Simon Legner <Simon Legner gmail com>
Date:   Thu Apr 29 22:00:55 2021 +0200

    Update DOM documentation
    
    Fixes scraping of https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval.
    
    Fixes #1528.

 lib/docs/filters/mdn/clean_html.rb | 2 +-
 lib/docs/scrapers/mdn/dom.rb       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/docs/filters/mdn/clean_html.rb b/lib/docs/filters/mdn/clean_html.rb
index 74430b92..71cd02d5 100644
--- a/lib/docs/filters/mdn/clean_html.rb
+++ b/lib/docs/filters/mdn/clean_html.rb
@@ -42,7 +42,7 @@ module Docs
           node.before(node.content).remove
         end
         css('h2 > a, h3 > a').each do |node|
-          node.parent.content = node.content
+          node.before(node.content).remove
         end
 
         css('.notecard > h4').each do |node|
diff --git a/lib/docs/scrapers/mdn/dom.rb b/lib/docs/scrapers/mdn/dom.rb
index 456f2abc..943aeb5b 100644
--- a/lib/docs/scrapers/mdn/dom.rb
+++ b/lib/docs/scrapers/mdn/dom.rb
@@ -8,7 +8,7 @@ module Docs
 
     options[:root_title] = 'DOM'
 
-    # self.release = '2021-04-29'
+    # self.release = '2021-04-29 21:55'
 
   end
 end


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