Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Checking the same page, you can see the following for TBODY:
    <!ELEMENT TBODY    O O (TR)+           -- table body -->

    Start tag: optional, End tag: optional
    That would appear to mean, if I don't read it wrongly, that you can drop explicit mention of TBODY, so that embedded TR tags are in an implied TBODY, if you don't mention one.
    • I thought that XHTML 1.0's reliance on the HTML 4.0 spec was a problem here, but C.11. #2 seems to address this specifically:

      User agents that access XHTML documents served as Internet media types text/xml, application/xml, or application/xhtml+xml can also use the XML DOM. Elements and attributes will be returned in lower-case. Also, some XHTML elements may or may not appear in the object tree because they are optional in the content model (e.g. the tbody element [emphasis added] within table). This occurs because in HTML 4 some elements were permitted to be minimized such that their start and end tags are both omitted (an SGML feature). This is not possible in XML. Rather than require document authors to insert extraneous elements, XHTML has made the elements optional. User agents need to adapt to this accordingly. For further information on this topic, see [DOM2]