Jump to content


Photo

Html 5 first draft


  • Please log in to reply
36 replies to this topic

#21 Blodo

Blodo

    The one who disagrees

  • Project Team
  • 3,002 posts
  • Location:Eastern Europe
  • Projects:siteMeister, Mental Omega
  •  The wise guy

Posted 25 January 2008 - 01:29 PM

That's hardly true. Among other things, it can require upgrading your operating system. There are still quite a number of people using operating systems older than Windows XP. IE 7 is only supported on XP and above. The web design community is rightly squeamish in not destroying backward compatibility because of things like e-commerce. When you're selling a product, you want to support the absolute widest possible audience. In the case of Revora, I think that our minimum support should be IE 6, FF 1.5, and probably Safari 2. Sure gamers update their systems pretty regularly, but some people either don't want to (don't like IE 7 or FF 2 or whatever), or can't (use Windows 9x or 2000, don't want to buy OS X 10.$$$, etc).


Opera 9 runs on Win95 or higher, and OS X Panther 10.3 as well as possibly 10.2 Firefox2 runs on Win98 or higher, or Mac OS X 10.2.x or higher. It's good to point out that OSX 10.2 is almost 6 years old now.
That's two browsers out of the biggest four. I think my point is completely valid based purely on this. People should be educated that outdated software in an environment as rapidly changing as the world wide web is an entirely bad thing. The way I see it, if we leave this alone we will still have to contend with the likes of IE6 ten years in the future. It's not something I really want to put up with, and I doubt any self-respecting webdesigner wants to either.

ARGUMENT FROM CREATION, a.k.a. ARGUMENT FROM PERSONAL INCREDULITY (I)
(1) If evolution is false, then creationism is true, and therefore God exists.
(2) Evolution can't be true, since I lack the mental capacity to understand it; moreover, to accept its truth would cause me to be uncomfortable.
(3) Therefore, God exists.


#22 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 25 January 2008 - 05:19 PM

Like others, I think it depends on the audience. If I'd make a website for a company, I'd try to make it as compatible as possible with everything there is. However, for a personal site or webcommunity such as Revora, I don't pay much attention to IE at all, let alone IE6.

Also, speaking of web applications, I think all this Web 2.0 stuff is going the wrong way. People are using all kinds of old technology and combining it in ways that were not meant to be. HTML is stretched to it's limits with all the popup boxes and stretching interfaces, which require a huge amount of Javascript to work. Making these apps look good is a pain because HTML was designed for linear display.

I do see a future in online web applications which can be accessed from anywhere, but these should use a new kind of XML/Scripting combination and accompanying new client software.

Perhaps it's a gap in the market (valid expression?) which we can jump into :p
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#23 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 25 January 2008 - 08:44 PM

I do see a future in online web applications which can be accessed from anywhere, but these should use a new kind of XML/Scripting combination and accompanying new client software.

Perhaps it's a gap in the market (valid expression?) which we can jump into :p

Flash? Java? Silverlight? Windows Presentation Foundation? .NET? Do we really need more things that can do XML and scripting and require a client side application?
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#24 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 25 January 2008 - 09:10 PM

Those things are all proprietary and binary, and they require some effort to set up a simple app. Anyway, you are right in some way, but having 5 alternatives doesn't really help make it widespread.
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#25 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 26 January 2008 - 06:29 PM

That's just what it sounded like you were suggesting. I don't think the solution is more options. Flash is installed on pretty much everything though.
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#26 Blodo

Blodo

    The one who disagrees

  • Project Team
  • 3,002 posts
  • Location:Eastern Europe
  • Projects:siteMeister, Mental Omega
  •  The wise guy

Posted 27 January 2008 - 01:33 AM

It's lack of accessibility and problems with search indexing make it irrelevant though. As pretty much every other binary presentation format out there. Flash is nice as a gimmick for now, is all.

ARGUMENT FROM CREATION, a.k.a. ARGUMENT FROM PERSONAL INCREDULITY (I)
(1) If evolution is false, then creationism is true, and therefore God exists.
(2) Evolution can't be true, since I lack the mental capacity to understand it; moreover, to accept its truth would cause me to be uncomfortable.
(3) Therefore, God exists.


#27 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 27 January 2008 - 11:15 AM

Blodo voices what I couldn't find the words for :p
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#28 Ingwe

Ingwe
  • Members
  • 20 posts
  • Location:Cuivienen, as it once was
  • Projects:Web design, networking, etc.
  •  The Sire of Long Posts

Posted 02 February 2008 - 06:10 PM

They're keeping iframe, small, strong, b, i, and font elements!??!! I thought those had been going out the door for a long time now (though I still see many sites using them). The really big deprecated ones in Xhtml 1.0 Strict were font and iframe. In the same way Xhtml 1.0 Strict set object element as the replacement for iframe, it's pretty much going to be doing the same for Xhtml 2.0 - that's definitely cool. HTML 5.0 keeping the font and iframe elements is definitely uncool, as the page on the differences between the two DTD's had promoted.

Xhtml 2.0 keeping the a tag? I'd be seeing that as keeping it for semantic purposes only, and making it just be meant for anchors and not just to contain hrefs.

WYSIWYG editors seem to also have an exemption with the font element in the (X/)Html 5 spec. I'd have to give that a double-WTF. Seriously, what's the need for a font tag when you, um, let's see...have something called stylesheets?!!

This is what the current W3C spec for HTML 5.0 says about some tags, such as <i>:

The i element should be used as a last resort when no other element is more appropriate. In particular, citations should use the cite element, defining instances of terms should use the dfn element, stress emphasis should use the em element, importance should be denoted with the strong element, quotes should be marked up with the q element, and small print should use the small element.


Links are included so it's navigable from here (meaning that you don't have to use Google and do 5 clicks to find the stuff).

It seems like the elements/tags still being included in the new spec are there to define a different "tone". This opens up the ability to make CSS files smaller, because you have defined elements to style instead of having to put something like the following in...

/* This is for a normal content container that has a margin of 1.2em (eh, around 6 or 7 pixels most likely) and internal padding of 1.0em (5 pixels depending on browser or formatting). The other wrapper is a footer wrapper. The italic text in both instances is different, but we don't want to have to define a separate class for different italic text. That's ghey. */
div#container_wrapper{ margin: 1.2em; padding: 1.0em; }
#container_wrapper .txt_italic{ /* This text in some sort of blue. */ color: #224488; }
#container_footer{ margin: 1.2em; padding: 1.5em; }
#container_wrapper .txt_italic{ /* This is some kinda red. */ color: #884422; }
.txt_italic{ font: italic 94% tahoma, sans-serif }

With text elements that define different "voices" or "context", it could provide additional styling settings to be used without messing too much with long statements.

/* This example is different because the last one probably had some generic tag like span. This one has i and b for different contexts. One is content one is footer in this example. Remember, comments aren't entered with two forward slashes, but by a slash and an asterix, and closed by an asterix and a forward slash. */
 div#container_wrapper{ margin: 1.2em; padding: 1.0em; }
i.txt_italic{ /* This text in some sort of blue. */ color: #224488; }
 #container_footer{ margin: 1.2em; padding: 1.5em; }
b.txt_italic{ /* This is some kinda red. */ color: #884422; }
 .txt_italic{ font: italic 94% tahoma, sans-serif }

Since IE8 passed ACID2 we could end up with less problems between browsers. I think that the css attribute for Internet Explorer called "expression" was kinda neat, but I gotta admit, that involves making separate sheets for IE which sucks. Why even have to spend any time defining even one css line just to solve IE problems? I'm glad to see IE8 getting on the bandwagon for web standards. It will make things easier for both clients (users) and hosts (webmasters). Additionally, expression css for IE uses ActiveX object generation for its instance, since it uses a Javascript-type declaration (and if you don't comment your Javascript out just the right way, some validators and things like that won't read it right, not to mention browser cross-compatibility).


I will myself be going with XHtml 2.0. I know it seems daunting to have to have well-formed XML in every instance when hosting application/xhtml+xml, but down the road we'll see the results of it. New learners will actually find it easier than we did when we learned (LoL) Html 1 (and Html 2 is the earliest supported now, hard to believe it's still supported). Html 1 had 13 tags (elements). The web wasn't designed for images back in 1990/91 either.

Additionally, I saw a comment earlier on that Html was first developed by the W3C (World Wide Web Consortium). It was not. W3C didn't come into action until 1994, when it accurately was able to foresee what was going to happen to Html if action wasn't taken to stop all of these different browsers from supporting their own tags. It had the concerns of world standards in mind, since it is the world wide web, and its aim still hasn't changed, and that's good. Its goals change but w3c's values haven't. Look at IE - they introduced their own obligatory object tag before that tag actually came into use. As a result, the object tag, when referencing links that are external from the domain of the object tag's appearance, is pretty much useless. It also gets an ugly border that is hard to do anything about. The only thing you can do is use a comment line to detect browser type; if it's IE you put an iframe in and set frameborder="0" and style="border: 0px;" and set your width and height accordingly, by stylesheet or otherwise. And then they introduced the css expression ActiveX addon, and that further complicated things as that css property (remember, in css attributes are properties, as style is an attribute) cannot be used by other browsers. Anyway, w3c aimed to modularize things because that way it'd be easier to work on separate aspects of design, structure, and usability. You handle the structure, then the style, and then beautification and feature enhancement. It's better than handling it all in one file (though in some cases, like BFME2, having everything in so many multiple files was difficult because filenames were not organized all that well). Having better organization helps the webmaster, which in turns helps their sites' visitors. And that's a big deal if you're using the site for business.


Well, some things about the new spec for Html 5 I like and some are just like wtf!? Keeping font and iframe just doesn't seem to be a semantic approach at all, no matter what excuse may be given. Keeping backward compatibility as the aim of HTML 5 is something Xhtml 2.0 is not going to do. Xhtml 2.0 is using XML for its schema and because of that, it's not a problem to lose some of these unnecessary tags.

Tags such as <p> for instance are indeed still needed. They define paragraphs. In Xhtml 2.0, <l> or line is being added. In much the same was as <div> is a section and <p> is a paragraph, <l> will be another block attribute that will indeed define a line, without using <br />, and it will look better this way as far as structure. Fewer begin-end in one line tags is better, which is one reason <img> is being eliminated from Xhtml 2.0's spec. But some will misues it.

This is the way such xhtml 2.0 structure is supposed to be used:

<div id="container_wrapper">
   <p class="p1">
	   This is a paragraph with <span class="txtcss1">@with italic text inside of the area between the @ symbols@</span> where the css class for the italicized text for this context (container_wrapper/p1) is txtcss1, its stylesheet line looking like this: <blockcode>#container_wrapper .p1 .txtcss1{font-style: italic;}</blockquote>
   </p>
   <p class="p2">
	   This is a paragraph with <span class="txtcss1">@with italic text inside of the area between the @ symbols@</span> where the css class for the italicized text for this context (container_wrapper/p2) is txtcss1, its stylesheet line looking like this: <blockcode>#container_wrapper .p2 .txtcss1{font-weight: bold;}</blockquote>
   </p>
   <p class="p3">I am <span class="txtcss1">Captain Jean-Luc Picard</span> of the <span class="starship">Starship Enterprise</span> and this is my style: <blockcode>#container_wrapper .p3 .txtcss1{font-weight: bold; font: italic 104% tahoma, sans-serif;} #container_wrapper .p3 .starship{font: italic 110% tahoma, sans-serif; color: #00cc00;}</blockquote>
   </p>
</div>
<div id="container_footer">Put a footer here</div>

But some will probably be putting divs inside of spans, spans inside of a's, using font tags with inline width, bgcolor, and so on attributes (puke), and all that.

I went to a site recently that had (I'm not kidding or exaggerating) 4 html tags, 5 tags that ended the html (</html>), style lines that aren't between the head tags, javascript that started in the head tag and ended two body tags later, font tags (and they were hideous, like this: <font width=200% height=2000 bgcolor=ff0000>Hello red text 2000 pixels high with WTF 200 percent width*this is where the font end tag would be if there was one, eventhough it's a deprecated attribute altogether*.

I made a source code reader in php and tried analyzing that site with it. It's designed to read anything - XML even, but it's apparently not designed to handle instances where there are 5 html tags and end tags are in places you don't expect them (would you believe </html> was inside a table element attribute area?). And somehow that site worked, by God's will only obviously. The site looks good but if you look at the code it looks like it's been through World War 4 (remember, that one's supposed to be fought with sticks and stones).


Also, there's a lot of emphasis on Javascript in many cases, it's just that most of the javascript out there is used for evil instead of good ("oh it looks kewl so I'll use it on my Myspace page and not credit the original author instead of learning how to do it myself" syndrome). Javascript can be used for the better, like Flash. Flash is sometimes overused too much, but if you have to install a 3rd party addon to use a special program inside of an applet or something, it's usually not worth it. Such is the case with using flash for navigation. If you go to a site that has no clear form of navigation, mainly because you're asked to install a plugin to use it, 9 times out of 10 most will not install a plugin and automatically the web designer will be discredited for putting that crap on there (whether his/her name is known or not).

I use Firefox script blocker and only disable it for trusted sites, or if I want to see how bad a page really is. If a page is almost entirely flash but gets validation errors that go through the roof, there's definitely something that blew up on the author's end. If you're going to put a piece of work on the public array that is the World Wide Web, make sure you put some care into it. If you have an experimental site that doesn't work without using plugins, have it displayed on your private system and edit it till it works right in other ways as well.

Nothing scares me more on the internet than really loud music all of the sudden (something I've come to expect from every MySpace page around), clipart, stolen music, alternating backgrounds and font colors, crappy navigation, "Christmassy" backgrounds and font (red and green don't mix that well for sites; neutral colors are what is usually best unless it's a joke site), weird plugins used, and especially...wait for it.......not being able to see the site! The loud music and clipart parts scare me the most though. If a page looks like it was made in Frontpage in about 2 minutes, it probably was.
Valimar Design: Web Design, General Tech, Science, Artwork, Literature (RPGs, Fan fictions, discussion), Battle for Middle Earth, The Elder Scrolls.

#29 Jeeves

Jeeves

    I write the interwebz

  • Members
  • 4,156 posts
  •  Friendly neighborhood standards Nazi

Posted 03 February 2008 - 11:42 AM

OMG thats a long post ^_^
Agree with a lot of it though. Although, doesn't IE8 only pass acid2 when the browser sends a special header and requires the world to start adding new metatags if they want IE8 to use standards mode? IMO thats working backwards. It would kinda make sence is IE was the only browser to display things correctly and had to compensate for the quirks authors expected of others, but when its the least standards complient browser out there, setting it up so even if it does have better support, it simply won't use it is ludicrous. Just think what you'll need by the time people start getting acid 3 to work, a whole page full of M$ worship just to convince it to behave and play nice like the other kiddies?
HTML is and is culturally too lenient. You can use 5 html tags and the page work. As a result people do. Its not even easier, I taught myself to use valid xhtml and css layouts because it was damn easier than trying to teach myself off embedded tablular multi<head>ed monsters. When asked, I always define the difference between html and xhtml by saying xhtml is html done right. Yes, you should have to close tags. Yes, you should have a doctype and not keep switching cases; lowercase is fine. And perhaps if there wasn't a html5 and all the exciting new features like tags that you won't be able to use for 20 years were in an xhtml web applications dt, perhaps people would pay a little more attention to not writing crap, but evidently M$ disagrees, and would have us believe we should go to further and further lengths if we want valid standards-complient code to be displayed correctly.

World Domination Status: 2.7%


#30 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 03 February 2008 - 01:05 PM

That's all because of the "ideological" difference though. HTML was designed (and mainly interpreted) to render your site and that at all cost, so browsers will be very forgiving and as ingwe said, a site can look awesome in the browser even though the markup is screwed up royally. HTML is a presentational thing.
XML, however, was designed to precisely describe/store data, for no specific application. Because of this independence it always needs to be a 100% correct and if there is one tiny mistake, the whole thing should be reported as broken. So XML is a scientific thing.

Back in the day of Web 1.0 the HTML approach was enough because you had like 2 browsers, the whole thing was still new and most people didn't understand it anyway, so it had to be rather forgiving. But nowadays with all the different browsers and devices, this mentality just doesn't work out anymore. Now we need precision and correctness to make sure everything works everywhere.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#31 Blodo

Blodo

    The one who disagrees

  • Project Team
  • 3,002 posts
  • Location:Eastern Europe
  • Projects:siteMeister, Mental Omega
  •  The wise guy

Posted 04 February 2008 - 04:33 PM

If they wanted to remove iframe in HTML5, frankly I would be quite irritated to say the least. They left it in for the benefit of WYSIWYG editors, because we all know how shitty support for contentEditable is in browsers nowadays. If suddenly this draft would make it so that WYSIWYG editors are now useless, how many people with dynamic websites you would think would use it?

The recognition of these elements is purely for the benefit of JS scripts. It says so in the spec even. These elements are not meant to be used outside of javascript, and are thus effectively deprecated though will still be recognised by validators.

ARGUMENT FROM CREATION, a.k.a. ARGUMENT FROM PERSONAL INCREDULITY (I)
(1) If evolution is false, then creationism is true, and therefore God exists.
(2) Evolution can't be true, since I lack the mental capacity to understand it; moreover, to accept its truth would cause me to be uncomfortable.
(3) Therefore, God exists.


#32 Ingwe

Ingwe
  • Members
  • 20 posts
  • Location:Cuivienen, as it once was
  • Projects:Web design, networking, etc.
  •  The Sire of Long Posts

Posted 05 February 2008 - 10:43 AM

OMG thats a long post :xcahik_:
Agree with a lot of it though. Although, doesn't IE8 only pass acid2 when the browser sends a special header and requires the world to start adding new metatags if they want IE8 to use standards mode? IMO thats working backwards. It would kinda make sence is IE was the only browser to display things correctly and had to compensate for the quirks authors expected of others, but when its the least standards complient browser out there, setting it up so even if it does have better support, it simply won't use it is ludicrous. Just think what you'll need by the time people start getting acid 3 to work, a whole page full of M$ worship just to convince it to behave and play nice like the other kiddies?
HTML is and is culturally too lenient. You can use 5 html tags and the page work. As a result people do. Its not even easier, I taught myself to use valid xhtml and css layouts because it was damn easier than trying to teach myself off embedded tablular multi<head>ed monsters. When asked, I always define the difference between html and xhtml by saying xhtml is html done right. Yes, you should have to close tags. Yes, you should have a doctype and not keep switching cases; lowercase is fine. And perhaps if there wasn't a html5 and all the exciting new features like tags that you won't be able to use for 20 years were in an xhtml web applications dt, perhaps people would pay a little more attention to not writing crap, but evidently M$ disagrees, and would have us believe we should go to further and further lengths if we want valid standards-complient code to be displayed correctly.


Yup exactly. IE8 has Acid2 support now, which is indeed a monumental ring to my ears. CSS 3 rules, nice sig btw.

Did you know that in versions of Opera that some Wizziwig or some other editor doesn't work too well for some reason? Hmm. I might have a script blocked or something when I use Opera to test. I use those editors usually with blog systems most of the time anyway. I find it VERY annoying that no matter if you want or not, they rearrange attributes and stuff, and it ends up being a mess. I love throwing the stuff in as I know it, because like you I taught myself to use valid layouts because yes, it is easier to do it that way than use. Web standards aren't difficult to learn by any measure; perhaps just tedious is the word - to become familiar with CSS isn't all too difficult, you just have to get used to list-style, font-style, font-weight, font-family, font-variant or the shorthand and nicer-looking (imho) combination of those (example: font: italic 1.1em tahoma,sans-serif;), background-color, background-repeat, background-attachment, background-position, background-image, or the combination of those (example: background: #334499 url(somepath/eitherabsolute/or/relative/someimage.jpg) no-repeat fixed center; makes the background image, if available, repeats in _Neither_ x _Nor_ y as well as remaining fixed as you scroll and sets to center), and so on. I attempt to use CSS 1 for most things, so that it stays compatible even with older browsers.

Strangely (not sure if I mentioned this) IE uses (or used in past tense as IE8 arrives) this ActiveX javascript css addon monstrosity called expression, which basically adds javascript to css which I just think defeats web standards in yet another way. I mean, there is no doubt that it is a very powerful thing, but only for IE and thus not a standard (I keep to standards, except when it comes to the US education system and don't get me started on that, where standards are declared by those who aren't even involved in the field of education such as instruction or administration, etc). In the case of W3C standards, those folks, on the whole, know what they're talking about.

There is no doubt that the standards for the separation of markup and style is making things better. Xhtml 2.0 sounds to be pretty good. The object tag as well as the use of XML will benefit from it. X-Forms is not going to be quite as complicated as first was meant to look like. Its support will be through XML so compatibility, to some level, can still be maintained. That is cool!

That's all because of the "ideological" difference though. HTML was designed (and mainly interpreted) to render your site and that at all cost, so browsers will be very forgiving and as ingwe said, a site can look awesome in the browser even though the markup is screwed up royally. HTML is a presentational thing.
XML, however, was designed to precisely describe/store data, for no specific application. Because of this independence it always needs to be a 100% correct and if there is one tiny mistake, the whole thing should be reported as broken. So XML is a scientific thing.

Back in the day of Web 1.0 the HTML approach was enough because you had like 2 browsers, the whole thing was still new and most people didn't understand it anyway, so it had to be rather forgiving. But nowadays with all the different browsers and devices, this mentality just doesn't work out anymore. Now we need precision and correctness to make sure everything works everywhere.


Exactly, and in a way it was complacency; where designers knew the browsers would handle their code so they could put stuff in there like...

<nobr>
^ whoa, haven't seen that one since...a long time

<center>
^ good lord no

And of course the tag closing ones like...
<p>this is a line of stuff that does stuff
</a>

I've seen something like that; apparently there was supposed to be a link where no link was decided to be there after the fact and the ending for a was kept whilst there was no replacement end tag for p. But browsers can understand that as long as it isn't something like...

<a href="h-t-t-p://somesite.com title="Hello world">this is a hyperlink, but there's something not right about it is there?</a>

The rest would be somewhat messed up I'm thinking. The link would be "h-t-t-p://somesite.com title=" and it wouldn't recognize the close for the <a> before the internal text. h-t-t-p was formatted that way in this example so that somesite would turn up as a link on the forum.

I put the above into a code tester that's on my site and in Firefox it shows up as regular body text; when you hover over it, it has an underline but clicking doesn't lead anywhere, and that's apparently a browser failsafe for preventing such an error from fouling up the remainder of the markup and style.

So those methods still exist to prevent things from going wrong. Unfortunately those error prevention techniques led to a certain level of complacency and code that is, for all practical purposes, not very usable (seeing as how a link set up that way would be unusable).

If they wanted to remove iframe in HTML5, frankly I would be quite irritated to say the least. They left it in for the benefit of WYSIWYG editors, because we all know how shitty support for contentEditable is in browsers nowadays. If suddenly this draft would make it so that WYSIWYG editors are now useless, how many people with dynamic websites you would think would use it?

The recognition of these elements is purely for the benefit of JS scripts. It says so in the spec even. These elements are not meant to be used outside of javascript, and are thus effectively deprecated though will still be recognised by validators.


I'm thinking that WYSIWYG editors may change with time as well. At least I'd hope. Iframes would still be compatible in browsers, even if you compiled your code in Html 5 or Xhtml 2.0. It's just that I'm not sure if XML parsing would allow it. I think it would because XML parsing ignores the attributes, as long as they're quoted the right way and additionally that the elements are opened and closed properly. You'd get validation errors perhaps but iframe will still probably be in future browsers for a while. By the time it really becomes required for there not to be iframes, with object as its replacement, the current browsers will support new editors. The WYSIWYG editors you get with portal and forum software would be updated in that case to allow for this possibility.

An example of code from a WYSIWYG editor for iframe (not sure if it is relevant but currently the object tag in the js file for the editor is not available within it):
w('<iframe style="width:'+taWidth+'; height:'+taHeight+'; padding:2px; border:1px outset ButtonHighlight; background:Window; color:WindowText;" src="java script:;" id="whizzyWig" marginheight="0" marginwidth="0"></iframe><div style="margin-bottom:10px;"></div>'+"\n");

Some fix for that would be available so that both could be used transitionally, and then in the future when iframes are definitely not allowed (that seems to be the way it's going), object will be the replacement.

When I learned html for the first time, there were a lot of frames, framesets, valigns, aligns, profuse use of tables that weren't exactly valid (tags not being closed), iframes, widths, borders, and all the other inline non-property (not in the style attribute) attributes. And now the style attribute is going out the window as well, and everything will be CSS as far as primary structure (Xhtml) and Xsl for Xml (in Xsl you can use the style attribute for the xml data by assigning the xsl stylesheet to the xml file so that instructions are received for the styles).

<iframe src="insertlinkhere" id="codetest" frameborder="0" width="100%" height="455" border="0">
	Your browser does not support frames, but you may view this content
	at <a href="insertlinkhere">insertlinkhere</a>
</iframe>
That's the way an iframe would refer to a source, for example, a php or html page, or whatever. Seems easier. In dynamic solutions though, object comes into play. One reason iframe has been used for so long is this: IE came out with an arbitrary "object" tag in 1997 before W3C officially released in dtd the actual object tag. IE's object thus now has different functionality than others browsers. For example, referencing an object in IE that's on a domain that is external to the object tag's file's location doesn't quite work. The Iframe works for IE. Either that or you use embed. Much of the Youtube bbcode out there for forums, including Invision, SMF, phpBB, vBulletin, etc, includes the object tag but also includes the embed for the flash video.

Next we have object as a comparison (in object, type is required). IE will display objects poorly, for instance, giving it an ugly bright border.

<object data="insertlinkhere" type="text/html" id="codetest" style="width: 100%; height: 455px; border: 0px;">
Your browser does not support objects, but you may view this content at <a href="insertlinkhere">insertlinkhere</a></object>

In place of src is data in this case. Type is the mime type of the content. If you're referencing a purely xhtml+xml page, the type attribute would be:

type="application/xhtml+xml"

Similar to application/xml except that xml can be included with xhtml. In this format, any one xml parsing error on your page, as we know, will disable any page with an xml error. If you're operating on a template that has application/xhtml+xml for every template that's pulled up, the chances are likely that somehow, somewhere, a page will be disabled. Even modern-day forums and portal software (especially portal software) is known for it (though not widely known). To reference the object with CSS so you don't have that style inline attribute, use css for the id "codetest" as such:

object#codetest{width: 100%; height: 455px; border: 0px;"

The object element name in the css above doesn't need to be included since all Ids must be unique (classes can be repeated).


A lot of problems come in with PHP loops (while's, foreach's, etc). Spitting out markup inside, for example, a foreach loop, requires either that you define NO ids in there, or that the ids are dynamic. To define style for the content inside that, you have to do it with classes, or perhaps put a div before and close after the foreach statement so that...

echo '<div id="container_foreach1">';
foreach($message['body'] as $post)
{
 echo '
 <div class="post_body">
   '.$post.'
 </div>';
}
echo '</div>';

For any subsidiary tag inside the div id "container_foreach1" you'll be able to define css for it that way like so...

/* Original post_body class */
post_body{ color: #bbb; background: #224488 url(images/bg_body.png) repeat fixed; font: normal 1em tahoma,sans-serif; padding: 0.7em; }
#container_foreach1 post_body{ color: #ff0000; background: #224488 url(images/bg_post.png) repeat scroll; font: 1em tahoma,sans-serif; padding: 1.25em; }

This way, if the post_body is set differently in the foreach area, you don't have to redefine a new post_body_2 class or whatever.


I must admit, at first, going from Html to Xhtml some years ago was at first daunting. I was like, why the change? I found eventually that new learners would probably end up benefiting from it. Code is more organized and modular. It's like comparing Command and Conquer: Generals INI.big to Battle for Middle Earth II's INI.big files. In Generals, you had some files that contained most of the data. In Bfme2 you had tons of files that were each designed for a specific purpose, so that it would be 'easy' to find out what you're modding. But of course, when that many files are involved, it becomes difficult for modders to find what they're looking for. Textpad, for instance, can do a search all documents in a certain path and search subfolders or not search subfolders for the string you are looking for.

It's much of the same kind of transition. Except it's not all ini files. Most forums will have all kinds of files. You may have an htaccess file defining your url paths and redirections (in the case that you switched domains or renamed a file, or just want to make urls easier to read (make sure that when doing that by the way that no two pages link to the same exact thing or you'll pay for it because of Google's disapproval of duplicate content...I found it out the hard way when page rank went down a notch)). In most portal and forum setups of today, most files are PHP if you're using Apache. It might be ASP coding if you're using M$ (I love that way of spelling Micro$oft by the way, it's most accurate). So you have a general lack of html files around. You probably will have some .js files for your javascript, .xml for XML files, perhaps some Xsl files, or you include xml and xsl inside of php functions in source code of your firmware. You'll have your php files (mentioned before). And then you'll have all of your downloads and images (including css images).

So when you come to the fact that iframes are pretty much gone once you get to Xhtml 1.0 Strict, it seems pretty bad at first, but we can all live with a few validation errors here and there if a document is edited using WYSIWYG or some other editor that uses Iframe. But that's probably going to be fixed eventually. There are work-arounds for IE and Firefox so that IE uses Iframes still and Firefox (or other browsers like Safari, Netscape, Opera, etc) use Objects.
<!--[if IE]>insert iframe code here<![endif]-->
<!--[if !IE]> <!-->insert object code here<!--<![endif]-->
A scary work-around no doubt, but it works. Make sure to set the iframe to have frameborder="0" or it will have an ugly border (puke). To be honest, I'm irritated with the removal of iframe as well. In Xhtml 2.0, img tag is being removed in favor of object, where src or data is the image location and type is "image/jpeg or png or gif"

I ask that the readers beg my pardon for the length of this post, and for any disorganization that may have been involved.

Much of this can be found in the specs for the DTD (document type definitions) as well as the proposals W3C has made. CSS 3 is also looking pretty good. I can't wait to give Xhtml 2.0 and Html 5 a try. :dry:

Edited by Ingwe, 05 February 2008 - 10:45 AM.

Valimar Design: Web Design, General Tech, Science, Artwork, Literature (RPGs, Fan fictions, discussion), Battle for Middle Earth, The Elder Scrolls.

#33 Blodo

Blodo

    The one who disagrees

  • Project Team
  • 3,002 posts
  • Location:Eastern Europe
  • Projects:siteMeister, Mental Omega
  •  The wise guy

Posted 05 February 2008 - 12:13 PM

On the topic of contentEditable the interesting thing is that the only browser that doesn't support it yet is firefox. IE supported it from version 6, safari seems to support it from 1.3 and opera from version 7 onward. That's not the only area where firefox fails in regard to stuff universally embraced >_>

ARGUMENT FROM CREATION, a.k.a. ARGUMENT FROM PERSONAL INCREDULITY (I)
(1) If evolution is false, then creationism is true, and therefore God exists.
(2) Evolution can't be true, since I lack the mental capacity to understand it; moreover, to accept its truth would cause me to be uncomfortable.
(3) Therefore, God exists.


#34 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 05 February 2008 - 08:23 PM

Ingwe, you could just have written a tutorial, you know :lol:
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#35 Ingwe

Ingwe
  • Members
  • 20 posts
  • Location:Cuivienen, as it once was
  • Projects:Web design, networking, etc.
  •  The Sire of Long Posts

Posted 06 February 2008 - 05:29 AM

Ingwe, you could just have written a tutorial, you know :lol:



I suppose that may be in order. I'll provide some source links. I think someone here referenced Html Dog (http://www.htmldog.com/) for some interesting resources. An interesting page on that site is Page Layout in Advanced CSS section. It definitely seems to be so far the best source I've personally seen for creating table-like floats that prevent height problems by using float: left for the first column, a margin of 10 left and right for the second, and float: right for the third; in addition the footer gets a clear: both; which prevents it from moving up or behind the rest of the content (aka a disaster or nightmare). W3C also has a similar lesson somewhere for using floats for such containers (I'll have to find the link LoL, I should use bookmarks).

I'd prefer to be more organized than my previous post for a tutorial on this, so that I have all the facts with links to the data so that I don't end up leading anyone on a wild goose chase. I know early on I've been led on wild goose chases when it came to positioning and floating in css when I started out on it.

The issues I'd probably discuss are...
- Personal preferences to using tables or using div/p/span containers for content: it will be useful to some and to others not so.
- Links to learning CSS, Xhtml, XML, XSL, PHP, MySQL (I've learned a ton from php.net and w3schools).
- A warning that learning it (web standards), at first, may seem tedious and at times frustrating but you find that when you learn it it is quite satisfying, and anything is possible after that (such as not having to go to a job 30 miles away from home in heavy traffic and road rage).

A lot of getting into it for the first time is having the patience and vision to see through learning it. For new learners it might be easier, because us folks have been into it for sometime and learned in the age where there was no law of separation between structure, style, and data. When we part with what we knew for a while, it's tough in any situation. It's like learning something and then unlearning that, and learning it the right way all over again.


On the topic of contentEditable the interesting thing is that the only browser that doesn't support it yet is firefox. IE supported it from version 6, safari seems to support it from 1.3 and opera from version 7 onward. That's not the only area where firefox fails in regard to stuff universally embraced >_>


Yeah, most browsers have some short-comings. Any browser vender that professes to be totally universal in regards to standards is not being entirely accurate. Nothing will absolutely work perfectly 100% of the time. But the steps I'm sure are being made.

Opera doesn't support some editors as well, it's one thing I've noticed. Internet Explorer supports a lot of things that some others don't, and sometimes vice-versa. To find the right browser is like trying to find the right OS. It depends on your needs/wants for the most part, and usually there will be something that doesn't make sense in the one you choose. Vista was a pain in the butt for me for about a month until I disabled a bunch of the crap it was doing that to me didn't make sense. LoL. But now it's farily acceptable (except for the fact that if you go into the pictures folder of your user folder, you end up not being able to select multiple files, but this may be an isolated incident as far as Vista goes, I've not explored that problem in much detail, but being able to select files after that requires going into Regedit, then HKEY_CURRENT_USER / Software / Classes / Local Settings / Micro$oft / Windows / Shell and deleting the folders BagMRU and Bags). LoL totally off topic that last sentence was, I know.

Edited by Ingwe, 06 February 2008 - 05:36 AM.

Valimar Design: Web Design, General Tech, Science, Artwork, Literature (RPGs, Fan fictions, discussion), Battle for Middle Earth, The Elder Scrolls.

#36 Jeeves

Jeeves

    I write the interwebz

  • Members
  • 4,156 posts
  •  Friendly neighborhood standards Nazi

Posted 07 February 2008 - 01:03 PM

I'll provide some source links. I think someone here referenced Html Dog (http://www.htmldog.com/) for some interesting resources.

a) Please do so, the current list is looking empty and I'm tired of adding my bookmarks :wink_new:
b) That would be me, everytime I've recomended somewhere good for someone to start
c) If you use MSN, please add me.

World Domination Status: 2.7%


#37 Ingwe

Ingwe
  • Members
  • 20 posts
  • Location:Cuivienen, as it once was
  • Projects:Web design, networking, etc.
  •  The Sire of Long Posts

Posted 07 February 2008 - 08:45 PM

I'll provide some source links. I think someone here referenced Html Dog (http://www.htmldog.com/) for some interesting resources.

a) Please do so, the current list is looking empty and I'm tired of adding my bookmarks :p
b) That would be me, everytime I've recomended somewhere good for someone to start
c) If you use MSN, please add me.


a) Will do. That's a pretty cool list. I'm glad I got to look at the Web Design area here.
b) LoL yep
c) Sure thing; i'll add my msn to my profile here as well.
Valimar Design: Web Design, General Tech, Science, Artwork, Literature (RPGs, Fan fictions, discussion), Battle for Middle Earth, The Elder Scrolls.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users