This is less than ideal for some SEO optimization. On a large scale, though, it's an example of ASP taking full control of our HTML away from us. A language should not be making this kind of decision.
Their answer in the connect issue is dancing around the issue--at least give us a way to control whether or not the newlines are added, and leave them by default. Or when 3.5 came out this could have been fixed then.
White space doesn't matter in html or xml. spaces are You're talking about two line carrige return line feeds. Good luck with getting the html to not prettyprint on every browser in the world and making it work on world wide scale.
You didn't read my post fully--newlines in titles can affect SEO optimization, or so several SEO marketing firms have said. I understand whitespace in HTML and realize the page still loads.
tuano007
Member
4 Points
5 Posts
Newlines should not automatically be added to TITLE tag
Jan 09, 2009 04:31 PM|LINK
If you set page title in a codebehind:
page.Title = "My title";
the rendered html is:
<title>
My title
</title>
when it should be
<title>My title</title>
This is less than ideal for some SEO optimization. On a large scale, though, it's an example of ASP taking full control of our HTML away from us. A language should not be making this kind of decision.
There was a connect issue opened about this: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=282655
Their answer in the connect issue is dancing around the issue--at least give us a way to control whether or not the newlines are added, and leave them by default. Or when 3.5 came out this could have been fixed then.
Maybe I'm missing a larger design concept here?
Thanks,
html parser asp.net 3.5
Danny117
Star
11160 Points
1932 Posts
Re: Newlines should not automatically be added to TITLE tag
Jan 09, 2009 10:01 PM|LINK
White space doesn't matter in html or xml. spaces are You're talking about two line carrige return line feeds. Good luck with getting the html to not prettyprint on every browser in the world and making it work on world wide scale.
Me on linked in
tuano007
Member
4 Points
5 Posts
Re: Newlines should not automatically be added to TITLE tag
Jan 12, 2009 03:41 PM|LINK
You didn't read my post fully--newlines in titles can affect SEO optimization, or so several SEO marketing firms have said. I understand whitespace in HTML and realize the page still loads.
Danny117
Star
11160 Points
1932 Posts
Re: Newlines should not automatically be added to TITLE tag
Jan 19, 2009 04:44 AM|LINK
I can sell you some SEO snake oil too. Good Luck
Me on linked in