Unified · Split
| @@ -109,7 +109,7 @@ credits = [ · 108 unmodified lines | ||
| 109 | 109 | 'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE' |
| 110 | 110 | ], [ |
| 111 | 111 | 'CSS<br>DOM<br>HTML<br>JavaScript', |
| 112 | − '2005-2013 Mozilla Developer Network and individual contributors', | |
| 112 | + '2005-2014 Mozilla Developer Network and individual contributors', | |
| 113 | 113 | 'CC BY-SA', |
| 114 | 114 | 'http://creativecommons.org/licenses/by-sa/2.5/' |
| 115 | 115 | ], [ |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | module Docs |
| 2 | 2 | class Html |
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | − HTML5 = %w(content element menuitem template) | |
| 4 | + HTML5 = %w(content element video) | |
| 5 | 5 | OBSOLETE = %w(frame frameset hgroup noframes) |
| 6 | 6 | ADDITIONAL_ENTRIES = { 'Heading_Elements' => (1..6).map { |n| ["h#{n}"] } } |
| 7 | 7 | |
| @@ -14,7 +14,7 @@ module Docs · 6 unmodified lines | ||
| 14 | 14 | 'Obsolete' |
| 15 | 15 | else |
| 16 | 16 | spec = css('.standard-table').last.try(:content) |
| 17 | − if (spec && spec =~ /HTML\s?5/ && spec !~ /HTML\s?4/) || HTML5.include?(slug) | |
| 17 | + if (spec && html5_spec?(spec)) || HTML5.include?(slug) | |
| 18 | 18 | 'HTML5' |
| 19 | 19 | else |
| 20 | 20 | 'Standard' |
| @@ -29,6 +29,10 @@ module Docs · 8 unmodified lines | ||
| 29 | 29 | def additional_entries |
| 30 | 30 | ADDITIONAL_ENTRIES[slug] || [] |
| 31 | 31 | end |
| 32 | + | |
| 33 | + def html5_spec?(spec) | |
| 34 | + (spec =~ /HTML\s?5/ || spec.include?('WHATWG HTML Living Standard')) && spec !~ /HTML\s?4/ | |
| 35 | + end | |
| 32 | 36 | end |
| 33 | 37 | end |
| 34 | 38 | end |
| @@ -6,9 +6,6 @@ module Docs · 5 unmodified lines | ||
| 6 | 6 | '.htab', # "Browser compatibility" tabs |
| 7 | 7 | '.breadcrumbs', # (e.g. CSS/animation) |
| 8 | 8 | '.Quick_links', # (e.g. CSS/animation) |
| 9 | − '.HTMLElmNav', # (e.g. HTML/a) | |
| 10 | − '.htmlMinVerHeader', # (e.g. HTML/article) | |
| 11 | − '.geckoVersionNote', # (e.g. HTML/li) | |
| 12 | 9 | '.todo', |
| 13 | 10 | '.draftHeader'] |
| 14 | 11 | |
| @@ -11,7 +11,7 @@ module Docs · 10 unmodified lines | ||
| 11 | 11 | |
| 12 | 12 | options[:trailing_slash] = false |
| 13 | 13 | options[:attribution] = <<-HTML |
| 14 | − © 2013 Mozilla Contributors<br> | |
| 14 | + © 2014 Mozilla Contributors<br> | |
| 15 | 15 | Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later. |
| 16 | 16 | HTML |
| 17 | 17 | |