Brian Havard
Wed, 28 May 2008 05:05:08 -0700
Krzysztof Trybowski wrote:
[Sorry for previous post -- I sent it accidentally] On Wednesday, May 28, 2008 Tomas Hajny wrote:<IMG SRC="filename" WIDTH=123 HEIGHT=456>Picture taken on 1 May2008.<P>My e-mail: <A HREF="mailto:XHajT03@vol.cz">XHajT03@vol.cz</A>His point was, that in the most common example you'd have: WIDTH="123" HEIGHT="456" So, with numbers quoted, they would be treated as string.
Yes, that's what I meant. To quote the HTML spec, http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.2
"In certain cases, authors may specify the value of an attribute without any quotation marks. The attribute value may only contain letters (a-z and A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46), underscores (ASCII decimal 95), and colons (ASCII decimal 58). We recommend using quotation marks even when it is possible to eliminate them."
So the quotes aren't strictly required but are recommended.
I would prefer a slightly different way: and Ӓ should be displayed in the same color (the numbers in entities are actually parts of entities, and shouldn't be displayed differently. width=123 and width="123" should be displayed in the same color: as numbers, because they are numbers, even if they are written in a different manner.
That may be possible but will require a bit of re-arrangement of the code so that a number can be recognised inside a string.
_______________________________________________ Fc mailing list Fc@silk.apana.org.au http://silk.apana.org.au/mailman/listinfo/fc Bug Tracker: http://bugs.silk.apana.org.au/
- Re: [FC] PHP syntax in editor, and UTF-8 Krzysztof Trybowski
- Re: [FC] PHP syntax in editor, and UTF-8 Brian Havard
- Re: [FC] PHP syntax in editor, and UTF-8 Tomas Hajny
- Re: [FC] PHP syntax in editor, and UTF-8 Brian Havard
- Re: [FC] PHP syntax in editor, and UTF-8 Brian Havard
- Re: [FC] PHP syntax in editor, and UTF-8 Tomas Hajny
- Re: [FC] PHP syntax in editor, and UTF-8 Brian Havard
- Re: [FC] PHP syntax in editor, and UTF-8 Tomas Hajny
- Re: [FC] PHP syntax in editor, and UTF-8 Krzysztof Trybowski
- Re: [FC] PHP syntax in editor, and UTF-8 Krzysztof Trybowski
Re: [FC] PHP syntax in editor, and UTF-8 Brian Havard- Re: [FC] PHP syntax in editor, and UTF-8 Rainer Scheppelmann
- Re: [FC] PHP syntax in editor, and UTF-8 Krzysztof Trybowski
- Re: [FC] PHP syntax in editor, and UTF-8 Rainer Scheppelmann
- Re: [FC] PHP syntax in editor, and UTF-8 Brian Havard