Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

HTML Attribute Code Hinting problems #5343

Closed

Description

@redmunds

I'm seeing several weird problems with HTML Code Hinting. Start with a doc like this:

<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>

</body>
</html>

Add a link tag and some attributes:

  1. Put cursor at end of line with <title></title> and hit Enter to create a new line.
  2. Type <link rel="stylesheet"

Results:
I got hints for first attribute, but no more hints, even if I press Ctrl+Space

Expected:
More attribute hints

  1. Continue by typing > at end of line and moving cursor before >.
  2. Press Ctrl-Space to invoke hints
  3. Select dir and press Enter

Results:
Attribute is added with empty value, followed by a newline!

<link rel="stylesheet" dir=""
      >

Expected:
No newline. Cursor is placed inside attribute value and hints for value are displayed.

Activity

  1. redmunds commented on Sep 25, 2013

    @redmunds
    ContributorAuthor

    I restarted Brackets and no longer see second problem (but others have reported seeing same thing), but I am still seeing first problem. Note that Brackets seems to think that </head> is the end tag for <link>, so not sure if that's related or a separate bug:

    issue-5354

  2. RaymondLim commented on Sep 25, 2013

    @RaymondLim
    Contributor

    This issue was first introduced in sprint-27. Incorrect tag highlighting is an unrelated issue and will be fixed in next sprint when we update CodeMirror.

  3. RaymondLim commented on Oct 7, 2013

    @RaymondLim
    Contributor

    Nominating for sprint 33.

  4. redmunds commented on Oct 14, 2013

    @redmunds
    ContributorAuthor

    Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions