![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
VK wrote: It seems overlooked in Aural CSS specs. Use behavior twinpair (IE 5.5+, FF1.0+, Moz Suite 1.0+, Camino 1.0+, NN8+) snip nice code Thanks for the interesting solution! Looks pretty good, though complex (or rather, just about complex enough to suit me very well ;-)). I'll give that one a go, thx for sharing. |
#22
| |||
| |||
|
|
Jukka K. Korpela wrote: Huh? A table column may have a lang attribute when declared using <col lang="...">. Whether programs support this is a different issue. And a very interesting one: because neither IE nor FF nor other browser I'm aware of do not support this coding. Overall colgroup/col support on browsers except IE is very poor, especially on FF. The only attribute really recognized universally in col is width. This way <col lang="fi"> would have an academical value only: profoundly correct and utterly useless. OP is welcome to try it though as I may be trolling again. |
#23
| |||
| |||
|
|
Oops... sorry for a typo in lang.htc file (copy'n'paste damn it) Must be: ?xml version="1.0"? public component attach event="oncontentready" onevent="constructor()" / /component script type="text/Jscript"><!-- function constructor() { element.setAttribute('lang','fi'); } //--></script /public So function declaration was omited. The defective variant still works but shows warning sign in IE as you maybe already noticed. Sorry again. |
#24
| |||
| |||
|
|
?xml version="1.0"? public component attach event="oncontentready" onevent="constructor()" / /component script type="text/Jscript"><!-- function constructor() { element.setAttribute('lang','fi'); } //--></script /public |
|
Thanks for your help! However even this code, and some further fiddling around, did not work with JAWS in IE nor in FF.Haven't checked if it would work in HT Reader and Dolphin HAL, it just might. |
|
However since I'd rather like to have the same markup or method work with all screen readers, it looks like I'll just have to get off my lazy ass and write that <td lang="xx"> lang attribute inserter script for Dreamweaver to get this done in the more "generally supported" way. Still, thanks for your code, much appreciated! |
#25
| ||||
| ||||
|
|
They are not supposed to have, and they don't have, any direct effect on styling, any more than a class attribute has. Hmmm... actually, some browsers will use lang attributes to influence their default choice of font, for example. I don't think such behaviour is actually wrong. |
| http://www.w3.org/TR/REC-html40/stru...tml#h-11.3.2.1 Titled "Inheritance of alignment specifications", I see ... Now this is remarkable. I wonder how many other readers have managed to find that yet? |
|
So, in a section which purports to explain the inheritance of cell alignment, it actually states, almost as a throwaway aside, that HTML lang, dir, and style attributes are supposed to inherit from cols to cells in the same way as valign. |
|
This seems to mean that an explicit <style...> attribute on a col could be used to influence the presentation of the whole column, provided some other style attribute did not supervene. In ways that a class or id applied to the col and called-out from a stylesheet could *not* (other than the limited shortlist of properties which I cited before). *Is* that what it means? |
#26
| |||
| |||
|
|
Hmmm... actually, some browsers will use lang attributes to influence their default choice of font, for example. I don't think such behaviour is actually wrong. |
|
So, in a section which purports to explain the inheritance of cell alignment, it actually states, almost as a throwaway aside, that HTML lang, dir, and style attributes are supposed to inherit from cols to cells in the same way as valign. (I guess this calls for some tests on actual browsers, ... |
#27
| |||
| |||
|
|
Some simple testing: On Opera 8.54 and Firefox 1.5.0.3, if I set <col lang="fi"> for a column, the cells in that column match the selector :lang(fi) but do not match [lang="fi"] This is what I'd expect, since the cells do not have a lang attribute but they have their language specified via "inheritance" (in the fuzzy HTML meaning) from the <col> element. |
#28
| |||
| |||
|
|
Curious. Your observations seem to be at variance with mine in this respect. Do you have a test case to compare with, or can you already see what's the difference between yours and mine please? - http://ppewww.ph.gla.ac.uk/~flavell/tests/tbltest.html |
#29
| |||
| |||
|
|
I wonder whether the differences depend on the properties we use. I guess I was first misled to think that Opera uses a background color for the cells in a column when it perhaps just uses if for the <col element somehow and the background shines through. |
#30
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |