Re: Page background color won't change.



On 2008-03-22, Harlan Messinger <hmessinger.removethis@xxxxxxxxxxx> wrote:
Ben C wrote:
On 2008-03-21, Harlan Messinger <hmessinger.removethis@xxxxxxxxxxx> wrote:
[...]
Does it no longer care if you stick TRs directly inside TDs so that it
no longer knows what the table's structure is and can no longer render
it
[...]

CSS rules define how to render something that's display: table-row
directly inside something that's display: table-cell. There's no problem
there.

I'm not talking about CSS, I'm talking about HTML. You could make the
same CSS-based excuse for having <TD><TR>...</TR></TD> in your HTML
markup.

No, because if you put that in your HTML markup that's not what you will
get in your DOM tree (in Firefox etc. or by HTML5 suggestions).

The point is, you're making a distinction between the markup and
what you do to the object model afterwards, and I'm pointing out that
whatever benefits there are to validity before continue to apply after,

Not quite all-- one of the benefits to validity is that the markup can
be processed by other programs which aren't going to run the JS.

and whatever problems are caused by invalid markup are still problems if
introduced after the initial rendering.

Valid markup is required for correct forms and links behaviour. But not
for CSS rendering. The biggest practical problem caused by invalid
markup (where forms and links aren't involved) is that the browser
patches it up producing an unpredictable DOM tree. If you create your
DOM tree with scripting, you _have_ avoided that problem, assuming
browsers don't do any patching up in that case, which they don't.
.



Relevant Pages

  • Re: Decorating html with javascript to avoid divitis?
    ... markup within quite a few container elements. ... CSS actually serves two purposes. ... DOM adding wrappers where necessary to apply the final CSS allowing the ... So what's worse, only serving rich, modern graphical layouts to JS enabled ...
    (alt.html)
  • Re: Frontpage
    ... it carries a "professional" pricetag when its markup really is anything ... it's a publishing tool for M$oft ... There is a market for a professional WYSIWYG tool, ... With a good CSS stylesheet ...
    (alt.html)
  • Re: Notepad aside ... which WYSIWYG do i choose?
    ... > OK, I know Notepad isn't WYSIWYG, ... On the web, "what you get" is structured semantic HTML markup, with ... CSS presentation proposals. ...
    (uk.net.web.authoring)
  • Re: Decorating html with javascript to avoid divitis?
    ... Rounded corners are something everyone wants and one of the bits of CSS ... Adding them all over the place to the markup creates the usual practical ... put the wrappers in with:after/:before. ...
    (alt.html)
  • Re: Web design question
    ... > didn't offer the PHP-MySQL option, but it would perfectly render HTML ... > and CSS with BBEdit. ... The Sanders guy doesn't want CSS without all sorts of ugly deprecated ...
    (comp.sys.mac.system)