Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML tag navigation does not understand optional tags in hierarchy #127869

Closed
Artoria2e5 opened this issue Jul 2, 2021 · 1 comment
Closed

HTML tag navigation does not understand optional tags in hierarchy #127869

Artoria2e5 opened this issue Jul 2, 2021 · 1 comment
Assignees

Comments

@Artoria2e5
Copy link

Artoria2e5 commented Jul 2, 2021

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.57.1
  • OS Version: macOS 11.4

Steps to Reproduce:

  1. Open https://github.com/Artoria2e5/fc712/blob/main/css-hw/index.html in VSCode
  2. Navigate to the part that says "don't need them!"
  3. Observe the navigation at the top
  4. For fun, go to the table and observe its navigation

Expected behavior:

p > a

Actual behavior:
Screen Shot 2021-07-02 at 18 07 53

Notes:

  • VSCode does try to avoid this issue from happening at all by suggesting closing tags. But I really don't want them, especially on a chain of tds.
  • Using <section>...</section> could be a workaround. But this is still a bug!
  • I am open to any extension suggestions for formatting this sort of code too :)
@Artoria2e5 Artoria2e5 changed the title HTML tag hierarchy does not understand optional tags HTML tag navigation does not understand optional tags in hierarchy Jul 2, 2021
@aeschli
Copy link
Contributor

aeschli commented Jul 2, 2021

duplicated of microsoft/vscode-html-languageservice#63

@aeschli aeschli closed this as completed Jul 2, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Aug 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants