|
Posted by Dan on 09/18/05 00:13
Christopher M. wrote:
> I didn't want to have to learn Frontpage, so I've been using Microsoft Word
> to edit HTML files.
I didn't want to have to eat horse shit, so I've been eating chicken
shit. (Clue: There actually *are* alternatives for creating HTML other
than Frontpage and Word, and most of them are better than these pieces
of excrement.)
> I'm using Word 2000, but I'm having a problem. There's a script in my HTML
> file that creates a starting TABLE tag. But when I make changes to my HTML
> file Word doesn't run the script for the starting TABLE tag, so it gets rid
> of the ending TABLE tag.
For a rare change, Word is actually behaving in a quasi-sensible
manner; you're giving it invalid HTML code, so it's trying to fix it
into... well, I won't actually say "valid code", since nothing excreted
from Word has ever validated as far as I'm aware, but it's trying to
fix your error anyway. The code is supposed to be properly structured
and nested *prior to* the execution of any client-side scripting that
may be within it, as well as subsequent to any effects of such editing.
After all, a user may choose to disable JavaScript altogether. Thus,
if you want (for some reason) to output the opening tag of a table via
JavaScript, you ought to output the *entire* table by JavaScript, so
there won't be parts of it present without other parts if the script is
not run.
--
Dan
Navigation:
[Reply to this message]
|