yandeu / five-server

⚡ Development Server with Live Reload Capability. (Maintained Fork of Live Server)
https://www.npmjs.com/package/five-server
Other
165 stars 14 forks source link

Comments are being run along with the webpage code #31

Closed ghost closed 3 years ago

ghost commented 3 years ago

When I start the server, commented out HTML is run like normal HTML and CSS. I reloaded the workspace and had the same issue. Help is appreciated!

yandeu commented 3 years ago

Solved?

ghost commented 3 years ago

No, I am still having the same problem, I did not know if they would decide I had given enough information...😂

On Mon, Nov 15, 2021 at 3:55 AM Yannick @.***> wrote:

Solved?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/yandeu/five-server/issues/31#issuecomment-968719288, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVR6F7D54UCWHXAL34357IDUMDKIFANCNFSM5IASCGQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

yandeu commented 3 years ago

I need some more information. Maybe some screenshots?

ghost commented 3 years ago

Okay... Here page code This is in Microsoft Edge.

yandeu commented 3 years ago

I see. Well, you always have to declare your doctype on the first line of your .html file.

See:

All HTML documents must start with a <!DOCTYPE> declaration.

The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect.

ghost commented 3 years ago

So it runs commented code because of that?

yandeu commented 3 years ago

Yes, probably.

ghost commented 3 years ago

Okay, thank you!