提交 dcb0a776 编写于 作者: D David Storey

Add valid shape and scope values

上级 4a7291e0
......@@ -98,7 +98,7 @@ export function getHTML5TagProvider(): IHTMLTagProvider {
track: ['default:v', 'kind:tk', 'label', 'src', 'srclang'],
canvas: ['width', 'height'],
map: ['name'],
area: ['alt', 'coords', 'shape', 'href', 'target', 'download', 'ping', 'rel', 'hreflang', 'type'],
area: ['alt', 'coords', 'shape:sh', 'href', 'target', 'download', 'ping', 'rel', 'hreflang', 'type'],
base: ['href', 'target'],
link: ['href', 'crossorigin:xo', 'rel', 'media', 'hreflang', 'type', 'sizes'],
meta: ['name', 'http-equiv', 'content', 'charset'],
......@@ -116,7 +116,7 @@ export function getHTML5TagProvider(): IHTMLTagProvider {
tfoot: none,
tr: none,
td: ['colspan', 'rowspan', 'headers'],
th: ['colspan', 'rowspan', 'headers', 'scope', 'sorted', 'abbr'],
th: ['colspan', 'rowspan', 'headers', 'scope:s', 'sorted', 'abbr'],
form: ['accept-charset', 'action', 'autocomplete:o', 'enctype:et', 'method:m', 'name', 'novalidate:v', 'target'],
fieldset: ['disabled:v', 'form', 'name'],
legend: none,
......@@ -161,6 +161,7 @@ export function getHTML5TagProvider(): IHTMLTagProvider {
m: ['GET', 'POST', 'dialog'],
fm: ['GET', 'POST'],
o: ['on', 'off'],
s: ['row', 'col', 'rowgroup', 'colgroup'],
t: ['hidden', 'text', 'search', 'tel', 'url', 'email', 'password', 'datetime', 'date', 'month', 'week', 'time', 'datetime-local', 'number', 'range', 'color', 'checkbox', 'radio', 'file', 'submit', 'image', 'reset', 'button'],
im: ['verbatim', 'latin', 'latin-name', 'latin-prose', 'full-width-latin', 'kana', 'kana-name', 'katakana', 'numeric', 'tel', 'email', 'url'],
bt: ['button', 'submit', 'reset', 'menu'],
......@@ -170,6 +171,7 @@ export function getHTML5TagProvider(): IHTMLTagProvider {
et: ['application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'],
tk: ['subtitles', 'captions', 'descriptions', 'chapters', 'metadata'],
pl: ['none', 'metadata', 'auto'],
sh: ['circle', 'default', 'poly', 'rect'],
xo: ['anonymous', 'use-credentials'],
sb: ['allow-forms', 'allow-modals', 'allow-pointer-lock', 'allow-popups', 'allow-popups-to-escape-sandbox', 'allow-same-origin', 'allow-scripts', 'allow-top-navigation'],
tristate: ['true', 'false', 'mixed', 'undefined'],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册