Skip to content

Emmet XHTML broken #18434

Closed
Closed

Description

  • VSCode Version: 1.8.1
  • OS Version: Ubuntu 14.04

Steps to Reproduce:

  1. Set xhtml syntax:
    	"emmet.syntaxProfiles": {
    		"html": "xhtml"
    	},
  2. Write br and press Tab.

Result is:

<br></br>

Should be:

<br />

Same for other tags.

Also didn't work shorthands like input:radio, result is:

<input:radio></input:radio>

Activity

  1. added
    emmet
    on Jan 12, 2017
  2. ramya-rao-a commented on Jan 17, 2017

    @ramya-rao-a
    Contributor

    Andrey Volynkin (@Avol-V) For the time being, please use the below

    "emmet.syntaxProfiles": {
            "html": {
                  "self_closing_tag": "xhtml"
             }
    }
    

    Denis Malinochkin (@mrmlnc) Erich Gamma (@egamma) As of now the "emmet.syntaxProfiles" configuration in VS Code is being used for 2 purposes

    "xhtml" is one of the predefined profiles, as in you can use it to say "I want everything just like html, but also want self closing tags".

    When "xhtml" is passed as a syntax to emmet, you see the behavior that is described by Andrey Volynkin (@Avol-V).
    None of the html abbreviations get expanded correctly.

    Emmet users know "xhtml" as just a profile that gives everything that html gives + self closing tags.

    Therefore, I propose the changes in #18625

  3. added
    bug
    on Jan 17, 2017
  4. added a commit that references this issue on Jan 17, 2017
    647f002
  5. ramya-rao-a commented on Jan 23, 2017

    @ramya-rao-a
    Contributor

    This is now fixed and the fix is in the insiders build

  6. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugemmetverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions