I am creating some simple web pages and I'm finding that the server alters those pages from what I wrote. And I don't mean a tiny or subtle change either! For example, I wrote a very simple web page with something very close to this:
---
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Index</title>
</head>
<body>
<h1>Welcome to index.shtml!</h1>
</body>
</html>
---
then saved the file and viewed the page. Then I clicked on View Page Source in my browser and saw that the page had changed to this:
---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Index</title>
<script id="_nameHighlight_injection"></script>
<link class="skype_name_highlight_style" href="chrome://skype_ff_toolbar_win/content/injection_nh_graph.css" type="text/css" rel="stylesheet" charset="utf-8" id="_injection_graph_nh_css" />
<link href="chrome://skype_ff_toolbar_win/content/skypeplugin_dropdownmenu.css" type="text/css" rel="stylesheet" charset="utf-8" id="_skypeplugin_dropdownmenu_css" />
</head>
<body>
<h1>Welcome to index.shtml!</h1>
</body>
</html>
---
In other words, my DOCTYPE was completely overwritten plus a <script> tag and two <link> tags that I didn't want have been added to my code.
Why is this happening and how can I stop it? I don't want my HTML altered, I want to leave it exactly the way I wrote it.
--
Cletus
---
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Index</title>
</head>
<body>
<h1>Welcome to index.shtml!</h1>
</body>
</html>
---
then saved the file and viewed the page. Then I clicked on View Page Source in my browser and saw that the page had changed to this:
---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Index</title>
<script id="_nameHighlight_injection"></script>
<link class="skype_name_highlight_style" href="chrome://skype_ff_toolbar_win/content/injection_nh_graph.css" type="text/css" rel="stylesheet" charset="utf-8" id="_injection_graph_nh_css" />
<link href="chrome://skype_ff_toolbar_win/content/skypeplugin_dropdownmenu.css" type="text/css" rel="stylesheet" charset="utf-8" id="_skypeplugin_dropdownmenu_css" />
</head>
<body>
<h1>Welcome to index.shtml!</h1>
</body>
</html>
---
In other words, my DOCTYPE was completely overwritten plus a <script> tag and two <link> tags that I didn't want have been added to my code.
Why is this happening and how can I stop it? I don't want my HTML altered, I want to leave it exactly the way I wrote it.
--
Cletus
Last edited: