[Bug 1844] New: Parser 'forgets' HEAD start tag when encounting self-teminating empty child element

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1844

           Summary: Parser 'forgets' HEAD start tag when encounting self-
                    teminating empty child element
           Product: Validator
           Version: 0.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: link@pobox.com
        ReportedBy: steffan@fizzmail.co.uk
         QAContact: www-validator-cvs@w3.org


When validating against a HTML DTD (either detected or through a manual overide)
the Parser 'forgets' about the HEAD start tag when it encounters a (invalid)
self-terminating empty tag (i.e. one using XHTML syntax).

As a minimum this results in reports that you have the following errors:

1. end tag for element "HEAD" which is not open
2. document type does not allow element "BODY" here

In addition - any elements in the HEAD that follow the trigger element are
reported in the form 'document type does not allow element "X" here', but any
that precede it, and the trigger element itself, are accepted (unless they
exhibit other errors).

Received on Friday, 12 August 2005 08:26:16 UTC