Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] completions for src, link, href... #2037

Closed
yuu2lee4 opened this issue Jan 15, 2016 · 2 comments
Closed

[html] completions for src, link, href... #2037

yuu2lee4 opened this issue Jan 15, 2016 · 2 comments
Assignees
Labels
feature-request Request for new features or functionality html HTML support issues on-testplan
Milestone

Comments

@yuu2lee4
Copy link

add path choose window for img src、link href、script src、background-img src

@isidorn isidorn added the feature-request Request for new features or functionality label Jan 15, 2016
@aeschli aeschli added the html HTML support issues label Jan 27, 2016
@aeschli aeschli added this to the Backlog milestone Jan 27, 2016
@aeschli aeschli changed the title suggestion for path choose [html] suggestion for path choose Jan 27, 2016
@aeschli aeschli changed the title [html] suggestion for path choose [html] completions for src, link, href... Mar 24, 2016
@octref octref self-assigned this Jan 16, 2018
@octref octref modified the milestones: Backlog, February 2018 Jan 29, 2018
@zbandhan
Copy link

It should also work for 'action' attribute of 'form' tag.
<form action="">

@octref
Copy link
Contributor

octref commented Feb 22, 2018

I've compiled a list

// Selected from https://stackoverflow.com/a/2725168/1780148
const HTML_TAG_AND_ATTRIBUTE_WITH_URL_VALUE: { [tag: string]: string | string[] } = {
	// HTML 4
	a: 'href',
	body: 'background',
	del: 'cite',
	form: 'action',
	frame: ['src', 'longdesc'],
	img: ['src', 'longdesc'],
	ins: 'cite',
	link: 'href',
	object: 'data',
	q: 'cite',
	script: 'src',
	// HTML 5
	audio: 'src',
	button: 'formaction',
	command: 'icon',
	embed: 'src',
	html: 'manifest',
	input: 'formaction',
	source: 'src',
	track: 'src',
	video: ['src', 'poster']
};

@aeschli aeschli added verification-needed Verification of issue is requested on-testplan and removed verification-needed Verification of issue is requested labels Feb 27, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality html HTML support issues on-testplan
Projects
None yet
Development

No branches or pull requests

5 participants