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

HTML Attribute Code Hinting problems #5343

Closed
redmunds opened this issue Sep 25, 2013 · 4 comments
Closed

HTML Attribute Code Hinting problems #5343

redmunds opened this issue Sep 25, 2013 · 4 comments
Assignees
Milestone

Comments

@redmunds
Copy link
Contributor

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.

@redmunds
Copy link
Contributor Author

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

@RaymondLim
Copy link
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.

@ghost ghost assigned RaymondLim Sep 25, 2013
@RaymondLim
Copy link
Contributor

Nominating for sprint 33.

@redmunds
Copy link
Contributor Author

Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants