Saturday, March 31, 2012

VS8 bug? something corrupted my Default.aspx

I started seeing huge amounts of error messages such as "Validation (XHTML
1.0 Transitional):" Element schema is not supported". There was nothing
wrong with that for 3 ws and suddenly there is.
======check out this bug=========
OK: I have the following code and the phrase khaki is underlined in red as
VS8 thinks something is wrong:
<input id= ... height: 24px; background-color: khaki;"
<input id= ... height: 24px; background-color: khaki;"
the error message on hitting F5 is (there are two of them)
========two identical error messages about khaki being wrong=====
Error 68 CSS validation: 'khaki' is not a valid value for property
'background-color'.
C:\projects\Projects\R9619_NChannelDetec
tion\VS2005_WebSite\Default.aspx 323
==== BTW, khaki was correctly colored even though the error says it is
invalid=====
OK, i change the *FIRST* khaki to blue, now VS show the following error
message (note the mis-spelling of background)
Error 67 CSS validation: 'khaki' is not a valid value for property
'ackground-color:'.
C:\projects\Projects\R9619_NChannelDetec
tion\VS2005_WebSite\Default.aspx 323
====== VS8 improperly removed the letter "b" from the phrase
background-color
OK, I then renamed Default.aspx to d.bin and opened it up with wordpad. I
see about 10 strange japanese/chinese characters scattered about my source
code seemingly at random locations:
http://stateson.net/pub/bug1.jpg
http://stateson.net/pub/bug2.jpg
I paste that strange character into notepad and try to save it and I am told
it is unicode and the formatting will be lost. OK, i see where encoding is
specified as utf-8 so possibly those character belong in my file? If so,
why are they seemingly at random location? Maybe I should get rid of them.
Some are exactly in the middle of a phrase, others are off by themselves.
For example, "VerticalAlign" the t is a strange chinese character. It only
shows up in wordpad. I dont see the "t". If I delete the strange character
then I am missing the "t" If I put a 't' back in, it shows up as a 't' and
not a strange character.
Also are they really there? I ran d.bin thru a hexdump "C" utility that
uses getch() and prints the hex value and where those strange characters
were (in Default.aspx), I only see spaces in my hex dump. None of those
characters show up. Nor do they show up if I use notepad to open d.bin,
only if I use wordpad to open d.bin (or Default.aspx)
====================bug continued==============
I go back to the first color: "blue" and change it to a color that has 5
letters instead of 4 and suddenly I now get the correct 'khaki' is not a
valid value for property 'background-color:'
====VS8 has now properly spelled background======
..anyway, I am clueless how to fix this. Probably will delete the entire
panel and/or work backwards to where all those error messages about "Element
xxxx is not supported" are gone.I've experienced this in some larger products, myself, also.
If you go back to the Design View for that page, then build and run, those
errors disappear for me...haven't had time to search for the reasons why
yet.
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"Beemer Biker" <jstateson@.swri.edu> wrote in message
news:12lmkejimijc2c4@.corp.supernews.com...
> I started seeing huge amounts of error messages such as "Validation
(XHTML
> 1.0 Transitional):" Element schema is not supported". There was nothing
> wrong with that for 3 ws and suddenly there is.
> ======check out this bug=========
> OK: I have the following code and the phrase khaki is underlined in red
as
> VS8 thinks something is wrong:
> <input id= ... height: 24px; background-color: khaki;"
> <input id= ... height: 24px; background-color: khaki;"
> the error message on hitting F5 is (there are two of them)
> ========two identical error messages about khaki being wrong=====
> Error 68 CSS validation: 'khaki' is not a valid value for property
> 'background-color'.
> C:\projects\Projects\R9619_NChannelDetec
tion\VS2005_WebSite\Default.aspx
323
> ==== BTW, khaki was correctly colored even though the error says it is
> invalid=====
> OK, i change the *FIRST* khaki to blue, now VS show the following error
> message (note the mis-spelling of background)
> Error 67 CSS validation: 'khaki' is not a valid value for property
> 'ackground-color:'.
> C:\projects\Projects\R9619_NChannelDetec
tion\VS2005_WebSite\Default.aspx
323
> ====== VS8 improperly removed the letter "b" from the phrase
> background-color
> OK, I then renamed Default.aspx to d.bin and opened it up with wordpad. I
> see about 10 strange japanese/chinese characters scattered about my source
> code seemingly at random locations:
> http://stateson.net/pub/bug1.jpg
> http://stateson.net/pub/bug2.jpg
> I paste that strange character into notepad and try to save it and I am
told
> it is unicode and the formatting will be lost. OK, i see where encoding
is
> specified as utf-8 so possibly those character belong in my file? If so,
> why are they seemingly at random location? Maybe I should get rid of
them.
> Some are exactly in the middle of a phrase, others are off by themselves.
> For example, "VerticalAlign" the t is a strange chinese character. It
only
> shows up in wordpad. I dont see the "t". If I delete the strange
character
> then I am missing the "t" If I put a 't' back in, it shows up as a 't'
and
> not a strange character.
> Also are they really there? I ran d.bin thru a hexdump "C" utility that
> uses getch() and prints the hex value and where those strange characters
> were (in Default.aspx), I only see spaces in my hex dump. None of those
> characters show up. Nor do they show up if I use notepad to open d.bin,
> only if I use wordpad to open d.bin (or Default.aspx)
> ====================bug continued==============
> I go back to the first color: "blue" and change it to a color that has 5
> letters instead of 4 and suddenly I now get the correct 'khaki' is not a
> valid value for property 'background-color:'
> ====VS8 has now properly spelled background======
> ..anyway, I am clueless how to fix this. Probably will delete the entire
> panel and/or work backwards to where all those error messages about
"Element
> xxxx is not supported" are gone.
>
xhtml does not supprt any named colors, thus the message. neither IE nor
firefox are xhtml browsers, so they support named colors (even when the html
is specified as xhtml). you probably added the xhtml doc tag which turns on
validation. you can ignore these errors, as the browser does, or fix them
up.
-- bruce (sqlwork.cm)
"Beemer Biker" <jstateson@.swri.edu> wrote in message
news:12lmkejimijc2c4@.corp.supernews.com...
>I started seeing huge amounts of error messages such as "Validation (XHTML
>1.0 Transitional):" Element schema is not supported". There was nothing
>wrong with that for 3 ws and suddenly there is.
> ======check out this bug=========
> OK: I have the following code and the phrase khaki is underlined in red
> as VS8 thinks something is wrong:
> <input id= ... height: 24px; background-color: khaki;"
> <input id= ... height: 24px; background-color: khaki;"
> the error message on hitting F5 is (there are two of them)
> ========two identical error messages about khaki being wrong=====
> Error 68 CSS validation: 'khaki' is not a valid value for property
> 'background-color'.
> C:\projects\Projects\R9619_NChannelDetec
tion\VS2005_WebSite\Default.aspx
> 323
> ==== BTW, khaki was correctly colored even though the error says it is
> invalid=====
> OK, i change the *FIRST* khaki to blue, now VS show the following error
> message (note the mis-spelling of background)
> Error 67 CSS validation: 'khaki' is not a valid value for property
> 'ackground-color:'.
> C:\projects\Projects\R9619_NChannelDetec
tion\VS2005_WebSite\Default.aspx
> 323
> ====== VS8 improperly removed the letter "b" from the phrase
> background-color
> OK, I then renamed Default.aspx to d.bin and opened it up with wordpad. I
> see about 10 strange japanese/chinese characters scattered about my source
> code seemingly at random locations:
> http://stateson.net/pub/bug1.jpg
> http://stateson.net/pub/bug2.jpg
> I paste that strange character into notepad and try to save it and I am
> told it is unicode and the formatting will be lost. OK, i see where
> encoding is specified as utf-8 so possibly those character belong in my
> file? If so, why are they seemingly at random location? Maybe I should
> get rid of them. Some are exactly in the middle of a phrase, others are
> off by themselves. For example, "VerticalAlign" the t is a strange chinese
> character. It only shows up in wordpad. I dont see the "t". If I delete
> the strange character then I am missing the "t" If I put a 't' back in,
> it shows up as a 't' and not a strange character.
> Also are they really there? I ran d.bin thru a hexdump "C" utility that
> uses getch() and prints the hex value and where those strange characters
> were (in Default.aspx), I only see spaces in my hex dump. None of those
> characters show up. Nor do they show up if I use notepad to open d.bin,
> only if I use wordpad to open d.bin (or Default.aspx)
> ====================bug continued==============
> I go back to the first color: "blue" and change it to a color that has 5
> letters instead of 4 and suddenly I now get the correct 'khaki' is not a
> valid value for property 'background-color:'
> ====VS8 has now properly spelled background======
> ..anyway, I am clueless how to fix this. Probably will delete the entire
> panel and/or work backwards to where all those error messages about
> "Element xxxx is not supported" are gone.
>

0 comments:

Post a Comment