> Also, if I understand correctly, this will break in IE?
Actually the original question was whether the element (which is
defined as EMPTY in the DTD) requires a closing tag. It was not
whether an empty element like a with no content could be written as a
simple tag. According to the XML spec.
Never thought of that really, thanks! So Basically what you have to do is
tell your web server to set file headers to return content type as xml?
Also, if I understand correctly, this will break in IE?
On Nov 26, 2007 8:37 AM, Jens Brueckmann <[EMAIL PROTECTED]> wrote:
> Your demo shows very w
When the document's media type is changed, you will see the expected
results, i.e. your document is rendered as application/xhtml+xml:
http://www.lairx.de/071126/tags.xhtml
doesn't look like IE7 recognises application/xhtml+xml it asks if I
want to download it!
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
resul
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, semant
> I'm afraid browser don't agree with this, though. I'm not sure about
> input but I'm
> positive that is not the same as 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:
http://www.w3.org/TR/2002/REC-
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 par
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 is not the same as as far as
browser rendering
goes.
Actually as far as XML (and consequently XHTML) is concerned:
Is the same as:
Hi Dusan,
Here are some of the unofficial guidelines I work with:
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).
will behave much better, but (unless you have an ID or a class
on
I'm afraid browser don't agree with this, though. I'm not sure about
input but I'm
positive that is not the same as 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:
Is the same as:
*
> On 21 Nov 2007, at 05:12, David Hucklesby wrote:
>
>> Trying to help a friend with their form markup, I suggested they look up the
>> W3C
>> specifications. Their question was "does the input tag require a closing
>> "".
>> I told them categorically "no" but was embarrassed to see this in the W
> On 21 Nov 2007, at 05:12, David Hucklesby wrote:
>
>> Trying to help a friend with their form markup, I suggested they look up the
>> W3C
>> specifications. Their question was "does the input tag require a closing
>> "".
>> I told them categorically "no" but was embarrassed to see this in the W
On 21 Nov 2007, at 05:12, David Hucklesby wrote:
Trying to help a friend with their form markup, I suggested they
look up the W3C specifications. Their question was "does the input
tag require a closing "". I told them categorically "no" but
was embarrassed to see this in the W3C specs[1]:
> there's no closing tag
> is XHTML
> is HTML
Actually as far as XML (and consequently XHTML) is concerned:
Is the same as:
It's just that can't contain anything between the start and end
tags. Both are valid though.
Regards,
Kepler
**
David Hucklesby wrote:
> Trying to help a friend with their form markup, I suggested they
> look up the W3C specifications. Their question was "does the input
> tag require a closing "". I told them categorically "no" but
> was embarrassed to see this in the W3C specs[1]:
>
>
>
> Now, I read th
This is the reason why i made the move to XHTML - it is much more structured
in my opinion. And these sort of issues don't arise.
Adam.
On Nov 21, 2007 3:12 PM, David Hucklesby <[EMAIL PROTECTED]> wrote:
> Trying to help a friend with their form markup, I suggested they
> look up the W3C specific
16 matches
Mail list logo