![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In XHTML docs, I find that the W3 Validator raises an objection to my headers without actually invalidating the document. Not in <title></title>, but in meta name="abstract" and name="description" I find that the inclusion of <q></q> is objected to by the W3 validator. I'm told "< is first character of a delimiter, but occurred as data." |
#3
| |||
| |||
|
|
In XHTML docs, I find that the W3 Validator raises an objection to my headers without actually invalidating the document. |
#4
| |||||
| |||||
|
|
Thanks. Understood. But I wonder, since <title>...</title> is a container, how does one quote? I assume I can't use a quotation mark because it is a reserved character, but could I use <q></q>? Or do I have to: title>foo "bar" baz</title |
|
My inclination instead would be to use: meta name="description" content="foo 'bar' baz" Would there be any difference? |
|
I assume that I could perfectly well also use: meta name="description" content="foo "bar" baz" or even: meta name="description" content="foo “bar” baz" |
|
when is XHTML 2 going to be usable? |
|
Dean Tiegs <dat200304 (AT) telus (DOT) net> writes: This is also one of the reasons <object>...</object> is superior to img alt="..."/>. Very interesting. Are you actually recommending this at present? |
#5
| |||
| |||
|
|
Haines Brown <brownh (AT) hartford-hwp (DOT) com> writes: In XHTML docs, I find that the W3 Validator raises an objection to my headers without actually invalidating the document. Not in <title></title>, but in meta name="abstract" and name="description" I find that the inclusion of <q></q> is objected to by the W3 validator. I'm told "< is first character of a delimiter, but occurred as data." I'm not sure if I'm getting what you're saying, but I assume you have something like meta name="description" content="foo <q>bar</q> baz"/>. This is not valid; you cannot have elements in an attribute value. In addition, the less-than sign is not allowed literally in an attribute value at all; it has be represented by < or by a character reference. |
#6
| |||
| |||
|
|
The character <"> is not reserved in this context; <title>foo "bar" baz</title> is perfectly OK. The only place <"> is reserved is in an attribute value that is delimited by <">. The element "title" is one of the few elements (maybe the only one?) in XHTML that can contain character data but no elements. |
|
when is XHTML 2 going to be usable? Don't hold your breath. XHTML 1 is not really usable yet because the most popular browser doesn't support it. |
#7
| |||
| |||
|
|
In article <m2d6g4ndx2.fsf (AT) hartford-hwp (DOT) com>, one of infinite monkeys at the keyboard of Haines Brown <brownh (AT) hartford-hwp (DOT) com> wrote: In XHTML docs, I find that the W3 Validator raises an objection to my headers without actually invalidating the document. I don't know what you mean by that. Please post a URL that demonstrates what you're talking about. |
#8
| |||
| |||
|
|
I don't know what you mean by that. Please post a URL that demonstrates what you're talking about. Can't very well, for it was a local document not yet n line, |
#9
| |||
| |||
|
|
meta name="description" content="foo <q>bar</q> baz"/>. This is not valid; |
|
you cannot have elements in an attribute value. |
|
In addition, the less-than sign is not allowed literally in an attribute value at all; |
#10
| |||
| |||
|
|
Again I question the accuracy of that statement. "Inadvisable", certainly, but by no means "not allowed", or else I reckon that the formal validator would report an error, (rather than a warning, which seems to be what was under discussion here). Well, I'm sure that this was legal in HTML: can you cite something in the specifications which rules it out in XHTML? I don't see anything listed in http://www.w3.org/TR/xhtml1/#diffs for example which would rule-out this usage. |
![]() |
| Thread Tools | |
| Display Modes | |
| |