diff --git a/lib/docs/filters/html/entries.rb b/lib/docs/filters/html/entries.rb
index 4fbb5303..00324191 100644
--- a/lib/docs/filters/html/entries.rb
+++ b/lib/docs/filters/html/entries.rb
@@ -17,7 +17,7 @@ module Docs
if slug.start_with?('Global_attr')
'Attributes'
- elsif at_css('.obsoleteHeader', '.deprecatedHeader', '.nonStandardHeader') || OBSOLETE.include?(slug.remove('Element/'))
+ elsif at_css('#deprecated', '#non-standard', '#obsolete') || OBSOLETE.include?(slug.remove('Element/'))
'Obsolete'
elsif slug.start_with?('Element/')
'Elements'
diff --git a/lib/docs/filters/mdn/clean_html.rb b/lib/docs/filters/mdn/clean_html.rb
index 71cd02d5..f2f7be90 100644
--- a/lib/docs/filters/mdn/clean_html.rb
+++ b/lib/docs/filters/mdn/clean_html.rb
@@ -39,10 +39,11 @@ module Docs
css('h2 > a[name]', 'h3 > a[name]').each do |node|
node.parent['id'] = node['name']
- node.before(node.content).remove
+ node.before(node.children).remove
end
css('h2 > a, h3 > a').each do |node|
- node.before(node.content).remove
+ # children instead of content for "Using the download attribute to save a