Update valid HTML <a> & <area> attributes. + download, - media

Add download attribute (now widely supported.)
Remove media attribute (only valid on style and link elements)
This commit is contained in:
David Storey
2015-11-22 16:14:25 -08:00
parent f2417f3263
commit 911958a5b3
+2 -2
View File
@@ -54,7 +54,7 @@ export function getHTML5TagProvider(): IHTMLTagProvider {
figure: none,
figcaption: none,
div: none,
a: ['href', 'target', 'ping', 'rel', 'media', 'hreflang', 'type'],
a: ['href', 'target', 'download', 'ping', 'rel', 'hreflang', 'type'],
em: none,
strong: none,
small: none,
@@ -96,7 +96,7 @@ export function getHTML5TagProvider(): IHTMLTagProvider {
track: ['default:v', 'kind', 'label', 'src', 'srclang'],
canvas: ['width', 'height'],
map: ['name'],
area: ['alt', 'coords', 'shape', 'href', 'target', 'ping', 'rel', 'media', 'hreflang', 'type'],
area: ['alt', 'coords', 'shape', 'href', 'target', 'download', 'ping', 'rel', 'hreflang', 'type'],
base: ['href', 'target'],
link: ['href', 'rel', 'media', 'hreflang', 'type', 'sizes'],
meta: ['name', 'http-equiv', 'content', 'charset'],