Skip to content

html tags with elements are too "sticky" #168

@jplindstrom

Description

@jplindstrom

Let's say I have this HTML:

some kind of <a href="a">link</a> somewhere

If I do delete surronding tag dst inside "link" to delete the <a> element, that works.

If I now visually select "somewhere" and do st to surround with a tag, and enter "<span", the attributes are remembered and used for the new elemen tag:

some kind of link <span href="a">somewhere</span>

This happens agan if I surround something else. If I add some extra attributes in my new tag, they are added along with the remembered attributes.

Maybe it's related to using e.g. "cst t span" to chang the existing tag to another tag and have the attributes remain (which does sound like a feature, not a bug :) ).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions