v2 & self-closing meta tags

M

Mark Rae

Hi,

Is there a way to prevent ASP.NET 2 from stripping off the self-closing meta
tags...?

E.g.

<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />

is turned into

<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">

on my development machine, on my test box and on my live site hosted at a
remote ISP.

This is causing the site to fail XHTML validation.

Any assistance gratefully received.

Mark
 
K

Ken Cox [Microsoft MVP]

Hi Mark,

That's odd behaviour. Is it possible that ASP.NET is detecting the test
client as a downlevel browser and doing something weird?

Maybe there's a way to tell the page to treat every request as an uplevel
browser to deliver valid XHTML?

Ken
Microsoft MVP [ASP.NET]
 
M

Mark Rae

That's odd behaviour.
Yes...

Is it possible that ASP.NET is detecting the test client as a downlevel
browser and doing something weird?

No idea...
Maybe there's a way to tell the page to treat every request as an uplevel
browser to deliver valid XHTML?

Again, I have no idea...

Is anyone else experiencing it...?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top