|
|
|
@ -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
|
|
|
|
|