ritwickdey / vscode-live-server

Launch a development local Server with live reload feature for static & dynamic pages.
https://ritwickdey.github.io/vscode-live-server
MIT License
5.78k stars 1.27k forks source link

Live Server not updating basic anchor tags accordingly. #2928

Open scottonanski opened 6 months ago

scottonanski commented 6 months ago

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[X ] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior

I set an anchor tag to specific section of a page;

<li class="header-nav-links"><a href="#home">Home</a></li>
 <section id="home" class="home-hero">Home Section</section>

And this is what Live Server Does;

image

Expected behavior

Well, I expect it to handle basic HTML normally.

Environment

Browser:

- [X ] Chrome (desktop) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:

- Live Server: <!-- Check which version is installed --> 
v5.7.9

- Platform:  <!-- Mac, Linux, Windows -->
 - Linux

- Visual Studio Code: <!-- `code --version` -->
Version: 1.88.1
Commit: e170252f762678dec6ca2cc69aba1570769a5d39
Date: 2024-04-10T17:34:12.840Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.5.0-28-generic

Others