Skip to content

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

Closed

Description

@yuu2lee4

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

Activity

  1. added
    feature-request
    on Jan 15, 2016
  2. changed the title [-]suggestion for path choose[/-] [+][html] suggestion for path choose[/+] on Jan 27, 2016
  3. changed the title [-][html] suggestion for path choose[/-] [+][html] completions for src, link, href...[/+] on Mar 24, 2016
  4. zbandhan commented on Feb 22, 2018

    @zbandhan

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

  5. octref commented on Feb 22, 2018

    @octref
    Contributor

    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']
    };
  6. added
    verification-needed
    and removed
    verification-needed
    on Feb 27, 2018
  7. locked and limited conversation to collaborators on Apr 12, 2018
  8. added a commit that references this issue on Sep 6, 2026
    87fae11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesthtmlon-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions