ikegami
Thanks for the clarifications re XML; I think I have a general idea of the meaning of your "non-attribute children" (but shall have to look further, to be sure). But the rest is crystal clear. Again, thank you for putting so much information into your reply.

But, I wonder if I was unclear about the "shortcut close" ( ".../>") for <img src="foo.jpg alt=... > as your table does not illustrate it. My assertion that 'the shortcut close on image is NOT required by 4.01 transitional (aka "loose")' is supported by the likes of Dave Raggett (at http://www.w3.org/MarkUp/Guide/ for example) and -- more important -- in the "HTML 4.01 Specification, W3C Recommendation 24 December 1999" (at http://www.w3.org/TR/REC-html40/) which links to an illustration of the use of at http://www.w3.org/TR/REC-html40/struct/objects.html.

Granted, these are both decade-old documents, but I find nothing to countenance the shortcut close under 4.01 transitional nor any indication of any substantive difference on this point between the proposal cited and current standards -- for html 4.01 transitional.

Update: In fact, what seems to me conclusive is the statement in the very latest 4.01 spec (at http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html) re the tag:

Start tag: required, End tag: forbidden

the emphasis is in the original.

Usually, when I make such a statement in disagreement with something you've said, it merely proves that I've missed something crucial. Is that the case here, and if so, would you be so good as to point me (and future readers) to it?


In reply to Re^5: XML::LibXML::Reader giving wrong matched element by ww
in thread XML::LibXML::Reader giving wrong matched element by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.