|
Posted by Harlan Messinger on May 10, 2006, 10:45 am
Please log in for more thread options
Arne wrote:
>> Arne wrote:
>>> A lot of Firefox users I know, says they have problems with
>>> validation
>> In the route from editor to server to on-line validator, just where
>> does Firefox (or any browser) have anything to do with it?
>>
>> Your question, as stated, has too much missing from it to make any
>> sense.
>>
>
> Yes, I do belive it's a bit difficult to understand. :)
> I'll try with an example as it is described to me.
>
> On a remote visitor tracker site (statcounter.com) when the tracker code
> that is to be pasted on a page, is generated using Firefox, the code to
> copy is shown in a text box. Part of the code is what I used in my
> initial post ("sc_project=402887&java=0&security"). In my browser and
> also in IE, this part shows the ampersands as "&".
>
> When I look at the source code for the page where the box with the
> generated code is, the ampersand shows as "&amp", but when I
> validate the page, the W3C validator also complains about the "&", where
> the "&" (or "&amp") should be.
>
> This page is HTML 4.0 Transitional with 9 errors, and most of the errors
> (6-7) is because of the ampersand is not shown as "&"
>
> I know it's hard to understand this, and I for sure have no idea. I was
> hoping somebody could have some theory what's happening. :)
I'm still having trouble understanding, but try this: if you have
"&" in your string, and you need it to read as "&" in the
browser, then you need to change it to "&". Not "&amp", as
you wrote twice, but "&". "&amp" will be interpreted as
"&", which is indeed invalid.
|