Neil:
This is why you can't create a pure-WYSIWYG HTML composer that creates tidy, semantic code. Can't be done. Asking the user what something should look like is the wrong approach; one should ask the user what that something is.Michael Gordon wrote:
this was about editing my own web pages that did not have inline styling, where Composer would insert its own inline styles.
OK, so supposed I want a particular paragraph centred. I click the "centering" button. What should Composer do?
a) align="center"
b) style="text-align: center;"
c) give the paragraph a random id, and style that id
d) give the paragraph a random class, and style that class
e) pick one of the existing classes or id at random, and style that
f) find an existing class that specifies centred text, and add that class
g) ask the user what he wants, every time, because there's no other way to know which is right?
You shouldn't be able to centre a paragraph; you should have to class that paragraph and style that class, or just style all paragraphs. Otherwise, you may as well use font tags.
_______________________________________________
mozilla-editor mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-editor
