![]() | |
#41
| |||
| |||
|
|
Yes. But HTML generated by code is HTML. His code doesn't generate HTML. He has annoyingly removed whitespace from the source. I wish people wouldn't do that. But all the same you can see that he's creating the DOM tree with createElement and appendChild, not innerHTML. (Seehttp://www.bravelayout.scarabeo.biz/examples/BraveLayout-standalone-m... andhttp://www.bravelayout.scarabeo.biz/examples/example0.html) If you want source try: http://www.bravelayout.scarabeo.biz/...-standalone.js |
#42
| |||
| |||
|
|
On Dec 31, 5:06 pm, Rob Waaijenberg <robwaaijenb... (AT) hotmail (DOT) com wrote: brave1979 schreef: But noone ever sees this tables. You must be able to see current DOM tree to ever see any table generated by BraveLayout. Most browsers does not even has that option out of the box. If you just "View Source" you won't see any table. If you download my page with some other program like wget you won't see any table either. What does it matter if browser internally renders tables to display the content if those tables are not visible anywhere else? Do you ever read back what you wrote, before you post it? I'm sorry. I know I can be sometimes hard to understand. :-( Please ask questions and I'll try to rephrase what I said. To me it doesn't make sense. If a page uses tables for lay-out and I use "view source" I can see them allright. If they are generated by the javascript you can't. I don't know what browser you are using but when you do "View Source" in IE, Firefox, Konqueror, Opera, probably Safari you will see only what was actually read from the web server, not the things javascript generated in your browser. Are you sure that when you go to page: http://www.bravelayout.scarabeo.biz/.../example0.html and "View Source" you can see any table ? |
|
What browser you are using? |
#43
| |||
| |||
|
|
I think I see your point: nice uncluttered HTML is not just for authors, but also better for users. |
#44
| |||
| |||
|
|
On Dec 31, 2:58 pm, Bergamot <berga... (AT) visi (DOT) com> wrote: The document tree is what the browser/user sees. Why do you think generating it via script instead of coding it in the HTML makes a difference? User does not see DOM tree, he sees rendered page. |
|
What actually is in DOM tree usually does not interest him. But he may be interested in html source file, and this is kept clean and readable in my method. |
#45
| |||
| |||
|
|
I don't know about strict mode (it varies greatly across browsers in areas where the specs are lacking) |
#46
| |||
| |||
|
|
On 2007-12-31, Harlan Messinger <hmessinger.removethis (AT) comcast (DOT) net> wrote: Ben C wrote: [...] Isn't the idea of his system that the HTML stays as nice clean HTML, and is only munged into a sea of tables by the JS? Yes. But HTML generated by code is HTML. His code doesn't generate HTML. He has annoyingly removed whitespace from the source. I wish people wouldn't do that. But all the same you can see that he's creating the DOM tree with createElement and appendChild, not innerHTML. (See http://www.bravelayout.scarabeo.biz/...ndalone-min.js and http://www.bravelayout.scarabeo.biz/.../example0.html) At no point does nasty HTML exist, unless you count things like the Firebug turning the DOM tree back into sort of HTML for the purpose of displaying it. |
#47
| |||
| |||
|
|
On Dec 31, 2:16 pm, Harlan Messinger hmessinger.removet... (AT) comcast (DOT) net> wrote: brave1979 wrote: I thought tables were avoided for some real benefits like semantic content, clean html, separating defining visual aspects from defining content. They're semantically just as incorrect if you have Javascript generating them in the browser as they would be if the author had coded them directly. Sorry. Maybe I am misunderstanding word "semantic". I thought its something like "meaningful". Yes. And writing semantic html is writing html that has meaning and structure associated with this meaning not just html that is the tag soup to force browser to render properly (as with table layout). Exactly. And tag soup is tag soup no matter how you generate it, whether by hand or with Javascript. The contents of your page that aren't logically a table, don't *become* logically a table just because you let Javascript generate the table-related tags. But noone ever sees this tables. |
#48
| |||||
| |||||
|
|
Is a fact that I disabled CSS in my browser a valid argument against tableless layouts? |
|
Should you use tables and 1px gifs because of that fact? |
|
Person who knows photoshop and person who knows html are not always the same person. |
|
You can remove from your design things that you don't know how to do in html. |
|
But when coders get prepared, discussed and accepted layout in psd they can only do their best. |
#49
| |||
| |||
|
|
Ben C wrote: On 2007-12-31, Harlan Messinger <hmessinger.removethis (AT) comcast (DOT) net> wrote: Ben C wrote: [...] Isn't the idea of his system that the HTML stays as nice clean HTML, and is only munged into a sea of tables by the JS? Yes. But HTML generated by code is HTML. His code doesn't generate HTML. He has annoyingly removed whitespace from the source. I wish people wouldn't do that. But all the same you can see that he's creating the DOM tree with createElement and appendChild, not innerHTML. (See http://www.bravelayout.scarabeo.biz/...ndalone-min.js and http://www.bravelayout.scarabeo.biz/.../example0.html) At no point does nasty HTML exist, unless you count things like the Firebug turning the DOM tree back into sort of HTML for the purpose of displaying it. All right, you're technically correct. So he's creating an HTML DOM *tree* that is still a semantically incorrect representation of the logical structure of the document. |
#50
| |||
| |||
|
|
On 2007-12-31, Harlan Messinger <hmessinger.removethis (AT) comcast (DOT) net> wrote: Ben C wrote: On 2007-12-31, Harlan Messinger <hmessinger.removethis (AT) comcast (DOT) net> wrote: Ben C wrote: [...] Isn't the idea of his system that the HTML stays as nice clean HTML, and is only munged into a sea of tables by the JS? Yes. But HTML generated by code is HTML. His code doesn't generate HTML. He has annoyingly removed whitespace from the source. I wish people wouldn't do that. But all the same you can see that he's creating the DOM tree with createElement and appendChild, not innerHTML. (See http://www.bravelayout.scarabeo.biz/...ndalone-min.js and http://www.bravelayout.scarabeo.biz/.../example0.html) At no point does nasty HTML exist, unless you count things like the Firebug turning the DOM tree back into sort of HTML for the purpose of displaying it. All right, you're technically correct. So he's creating an HTML DOM *tree* that is still a semantically incorrect representation of the logical structure of the document. But what's wrong with that? |
|
If someone wants to do something else with the HTML other than display it in a browser (read it, process it with some other tool, etc.) then they use the source which is the definitive representation. The DOM tree created by the JS program only exists temporarily in the browser instance in which it's being displayed. I don't see how it's hurting anyone. |
![]() |
| Thread Tools | |
| Display Modes | |
| |