Path completion for <area href=""> and <input src="">. Fix #74129

This commit is contained in:
Pine Wu
2019-05-22 09:25:20 -07:00
parent 8076181795
commit 27819b3902

View File

@@ -160,6 +160,7 @@ function shiftRange(range: Range, startOffset: number, endOffset: number): Range
const PATH_TAG_AND_ATTR: { [tag: string]: string | string[] } = {
// HTML 4
a: 'href',
area: 'href',
body: 'background',
del: 'cite',
form: 'action',
@@ -176,7 +177,7 @@ const PATH_TAG_AND_ATTR: { [tag: string]: string | string[] } = {
command: 'icon',
embed: 'src',
html: 'manifest',
input: 'formaction',
input: ['src', 'formaction'],
source: 'src',
track: 'src',
video: ['src', 'poster']