RE: how to close html tags : link, meta,...
2003-08-13 08:14:11
Sorry to go on but...
<div> *is not* declared as empty, so it must be <div></div>
<img> *is* declared as empty, therefore it can be <img/> or
<img></img>
That is my reading of the spec, please someone tell me if I am
wrong.
In which case I'd say the spec needs to be fixed.
Either div has required content, in which case both "<div/>" and
"<div></div>" would be non-valid.
If content is not required (which is the case), both notations MUST be
allowes, otherwise XHTML would not conform to the XML spec.
There's a difference. One is well-formed xml, the other is valid xhtml.
<div/> is well formed xml, but not valid xhtml.
<div></div> is both well-formed xml, and valid xhtml.
One involves a dtd the other doesn't. There's nothing wrong with the
spec, its just when people see well-formed html they think its xhtml,
which it isnt.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
RE: how to close html tags : link, meta,..., Martinez, Brian
RE: how to close html tags : link, meta,...,
Andrew Welch <=
RE: how to close html tags : link, meta,..., Martinez, Brian
RE: how to close html tags : link, meta,..., Andrew Welch
RE: how to close html tags : link, meta,..., Chris Loschen
|
Previous by Date: |
Re: pass malformed HTML through the parser?, G. Ken Holman |
Next by Date: |
Re: how to close html tags : link, meta,..., David Carlisle |
Previous by Thread: |
RE: how to close html tags : link, meta,..., B. Tommie Usdin |
Next by Thread: |
RE: how to close html tags : link, meta,..., Julian Reschke |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|