![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
On 29 mai, 10:43, Osmo Saarikumpu <o... (AT) wippies (DOT) com> wrote: Yep, at least my IE8 messes up in many ways in all modes. It even applies td[colspan] to every td. Actually, this is not a bug in IE8 since colspan attribute is specified with a default value (of 1) in the DTD. If the user agent reads the DTD, then it has to match td[colspan] to every td. 5.8.2 Default attribute values in DTDs http://www.w3.org/TR/CSS21/selector.html#default-attrs |
#2
| ||||||
| ||||||
|
|
GTalbot wrote: On 29 mai, 10:43, Osmo Saarikumpu <o... (AT) wippies (DOT) com> wrote: Yep, at least my IE8 messes up in many ways in all modes. It even applies td[colspan] to every td. Actually, this is not a bug in IE8 since colspan attribute is specified with a default value (of 1) in the DTD. If the user agent reads the DTD, then it has to match td[colspan] to every td. 5.8.2 Default attribute values in DTDs http://www.w3.org/TR/CSS21/selector.html#default-attrs I have tried to read that passage, and its predecessors, in different ways, and I still don't see what they are trying to say. |
|
The question is simple: does a selector of the form x[y] match an <x element that lacks the y attribute but has a default value declared for that attribute, in a DTD? ^^^^^^^^ |
|
[...] a UA is not required to read an "external subset" of the DTD [...] Note that, typically, implementations choose to ignore external subsets. If the answer is "yes", then a selector like td[colspan] is equivalent to td except for specificity, and hence rather useless. |
| ] |
|
[...] a UA [...] is required to look for default attribute values in the document's "internal subset." (See [XML10] for definitions of these subsets.) |
|
In fact, the example in this part of the CSS 2.1 draft suggests that all this thing about default values set in DTDs was just idle talk. It says, without any "if" or "may" here, that the selector EXAMPLE[notation=decimal] "will not match elements whose 'notation' attribute is set by default, i.e., not set explicitly". |
#3
| ||||||
| ||||||
|
|
GTalbot wrote: On 29 mai, 10:43, Osmo Saarikumpu <o... (AT) wippies (DOT) com> wrote: Yep, at least my IE8 messes up in many ways in all modes. It even applies td[colspan] to every td. Actually, this is not a bug in IE8 since colspan attribute is specified with a default value (of 1) in the DTD. If the user agent reads the DTD, then it has to match td[colspan] to every td. 5.8.2 Default attribute values in DTDs http://www.w3.org/TR/CSS21/selector.html#default-attrs I have tried to read that passage, and its predecessors, in different ways, and I still don't see what they are trying to say. |
|
The question is simple: does a selector of the form x[y] match an <x element that lacks the y attribute but has a default value declared for that attribute, in a DTD? ^^^^^^^^ |
|
[...] a UA is not required to read an "external subset" of the DTD [...] Note that, typically, implementations choose to ignore external subsets. If the answer is "yes", then a selector like td[colspan] is equivalent to td except for specificity, and hence rather useless. |
| ] |
|
[...] a UA [...] is required to look for default attribute values in the document's "internal subset." (See [XML10] for definitions of these subsets.) |
|
In fact, the example in this part of the CSS 2.1 draft suggests that all this thing about default values set in DTDs was just idle talk. It says, without any "if" or "may" here, that the selector EXAMPLE[notation=decimal] "will not match elements whose 'notation' attribute is set by default, i.e., not set explicitly". |
![]() |
| Thread Tools | |
| Display Modes | |
| |