I didn't use IMG because it has required attributes, and I didn't want that to become an issue. In other aspects, IMG is like BR. Refer to the rows for BR.

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)

Saying "not required by 4.01 transitional" implies "allowed by by 4.01 transitional", and that's not case. It's not allowed in HTML. The linked document is completely silent on the subject.

And again, whether it's the transitional or strict makes no difference whatsoever here, since they don't affect syntax.

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 <img ...> tag: Start tag: required, End tag: forbidden

Looking at the definition of an element is irrelevant because <foo/> is never well-formed HTML.


In reply to Re^6: XML::LibXML::Reader giving wrong matched element by ikegami
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.