![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Why is XHTML Strict the wrong way to go? |
#12
| |||
| |||
|
|
A site coded according to Strict is in no possible way "better" than one coded according to Transitional. In fact, it may actually be better to use the Transitional DTD -- there are many possible sites that are valid Trasitional (validity is good) whilst not being valid Strict. The benefit is in being _valid_, not in the choice of aspirational target. |
|
There are also arguments in favour of writing semantically-relevant well-structured code. But Strict adds little to aid this - you can still nest <blockquote> to create an indent, or to chain <a> links rather than coding an obvious list or menu structure. |
|
"Clearing up errors from Tidy" is not in itself sufficient to remove all the inconsistencies from a switch to Strict. |
#13
| |||
| |||
|
|
On Fri, 08 Apr 2005 15:17:54 -0700, Del Ferguson delferguson (AT) charter (DOT) net> wrote: Why is XHTML Strict the wrong way to go? Because all variants of XHTML 1.0 are designed to ride on lots of old browser bugs to get rendered, bugs that was already there long before XHTML came along. |
#14
| |||
| |||
|
|
some coders use Transitional as a means to "bang" out a page and get it over with. |
|
I'm pragmatic about what works in a page. If my pages (all Strict XHTML) pass the several validity checks I do and look OK with FF and IE, that should be enough. |
#15
| ||||
| ||||
|
|
On Fri, 08 Apr 2005 19:44:45 -0700, Del Ferguson delferguson (AT) charter (DOT) net> wrote: some coders use Transitional as a means to "bang" out a page and get it over with. What's wrong with that? If you "bang it out", and as a result it validates, then you've hit the target A valid Transitional page is still valid. It's no less valid, and no less "right" than a valid Strict page.. |
|
I'm pragmatic about what works in a page. If my pages (all Strict XHTML) pass the several validity checks I do and look OK with FF and IE, that should be enough. These tests meet certain goals, but they fail others. |
|
Take a look at csszengarden - you can only do that sort of dynamically-switched CSS if the page structure beneath is sound. |
|
As yet the minimal benefits are in considering a linear CSS-stripped version of the site, such as encountered by screen readers. 2d tables etc. should linearise in the sensible order, not the "cross reading" order. |
#16
| |||
| |||
|
|
But I still haven't fixed the 'name' problem. I know it has to be changed to ID and then adding the document.forms[0], but I don't know exactly how to implement this. |
#17
| |||
| |||
|
|
head script type="text/javascript" !-- window.onload = function () { // The form has an id but no name attribute // under XHTML 1.1 |
#18
| |||
| |||
|
|
Mellow Crow wrote: head script type="text/javascript" !-- window.onload = function () { // The form has an id but no name attribute // under XHTML 1.1 |
|
Is this supposed to be script in XHTML? Then get rid of the <!-- //-- wrapping the script as that way the script is commented out (<http://www.w3.org/TR/xhtml1/#C_4>). You might need other wrappers like //<![CDATA[ script code //]] then. |
![]() |
| Thread Tools | |
| Display Modes | |
| |