Re: [WSG] Input tag - closing tag optional?

2007-11-25 Thread Dusan Smolnikar
I'm afraid browser don't agree with this, though. I'm not sure about input but I'm positive that div/div is not the same as div / as far as browser rendering goes. On Nov21, 2007, at 7:28 AM, Kepler Gelotte wrote: Actually as far as XML (and consequently XHTML) is concerned: input

Re: [WSG] Input tag - closing tag optional?

2007-11-25 Thread Jason Grant
Hi Dusan, Here are some of the unofficial guidelines I work with: div / will not work with IE in certain circumstances. It might give you some errors which you might find mind-bogglingly difficult to debug (i.e. very weird behaviour). div/div will behave much better, but (unless you have an ID

Re: [WSG] Differences between IE and Firefox

2007-11-25 Thread Michael Horowitz
I have the following code var categorySelect = document.getElementById('category') var subcategorySelect = document.getElementById('subcategory') var stateSelect = document.getElementById('state') var state = stateSelect.options[stateSelect.selectedIndex].value var category =

Re: [WSG] Input tag - closing tag optional?

2007-11-25 Thread Philippe Wittenbergh
On Nov 26, 2007, at 8:00 AM, Dusan Smolnikar wrote: I'm afraid browser don't agree with this, though. I'm not sure about input but I'm positive that div/div is not the same as div / as far as browser rendering goes. Actually as far as XML (and consequently XHTML) is concerned: input

Re: [WSG] Input tag - closing tag optional?

2007-11-25 Thread Matthew Cruickshank
Philippe Wittenbergh wrote: Depending on the mime type there is a huge difference. text/html -- sgml parser in use application/xhtml+xml -- xml parser is in use. Just to clear up this misconception text/html doesn't use an SGML parser (few, or possibly zero browsers have implemented SGML

RE: [WSG] Input tag - closing tag optional?

2007-11-25 Thread Kepler Gelotte
I'm afraid browser don't agree with this, though. I'm not sure about input but I'm positive that div/div is not the same as div / as far as browser rendering goes. Hi Dusan, I was going by my knowledge of XML. According to the XHTML spec. both forms are equivalent:

Re: [WSG] Input tag - closing tag optional?

2007-11-25 Thread Dusan Smolnikar
It won't work in any other browser I know of as well. See this demo case: http://dusan.fora.si/blog/wp-content/uploads/2007/07/tags.html (explained at http://dusan.fora.si/blog/self-closing-tags ) Of course I don't suggest using an empty div tag with no id. It was just an example. But,

Re: [WSG] Input tag - closing tag optional?

2007-11-25 Thread Jens Brueckmann
Hi Dusan, It won't work in any other browser I know of as well. See this demo case: http://dusan.fora.si/blog/wp-content/uploads/2007/07/tags.html Your demo shows very well why serving XHTML as text/html is harmful. When the document's media type is changed, you will see the expected