Unified · Split
| @@ -37,12 +37,14 @@ module Docs · 36 unmodified lines | ||
| 37 | 37 | css('.standard-table td:first-child').each_with_object [] do |node, entries| |
| 38 | 38 | next if node.next_element.content.include?('Global attribute') |
| 39 | 39 | name = "#{node.content.strip} (attribute)" |
| 40 | + name = "#{node.at_css('code').content.strip} (attribute)" if node.at_css('code') | |
| 40 | 41 | id = node.parent['id'] = name.parameterize |
| 41 | 42 | entries << [name, id, 'Attributes'] |
| 42 | 43 | end |
| 43 | 44 | elsif slug == 'Link_types' |
| 44 | 45 | css('.standard-table td:first-child > code').map do |node| |
| 45 | 46 | name = node.content.strip |
| 47 | + name = "#{node.at_css('code').content.strip} (attribute)" if node.at_css('code') | |
| 46 | 48 | id = node.parent.parent['id'] = name.parameterize |
| 47 | 49 | name.prepend 'rel: ' |
| 48 | 50 | [name, id, 'Attributes'] |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Html < Mdn |
| 3 | 3 | prepend FixInternalUrlsBehavior |
| 4 | 4 | |
| 5 | − # release = '2022-01-22' | |
| 5 | + # release = '2022-04-27' | |
| 6 | 6 | self.name = 'HTML' |
| 7 | 7 | self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/HTML' |
| 8 | 8 | |