Closed Bug 15064 Opened 25 years ago Closed 25 years ago

Parser compains about a valid <!DOCTYPE> declaration (XHTML DTD)

Categories

(Core :: XML, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: ian, Assigned: nisheeth_mozilla)

References

()

Details

When I view
http://www.bath.ac.uk/%7Epy8ieh/internet/projects/mozilla/xml-doctype-public.xml
...I get the following message from the XML parser:

   XML Parsing Error: syntax error
   Line Number 1, Column 56:
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">

The DOCTYPE declaration comes straight from the XHTML spec. I assume it is
correct, but it may not be -- I know very little about XML so far... :-(

[ccing David as he knew about the related bug 15027]
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
It's not valid.  See:
http://www.w3.org/TR/REC-xml#NT-ExternalID

There must be two parts following "PUBLIC".

Marking INVALID.  You should bug www-html about this, if it's in xhtml.
I couldn't find it in the xhtml spec.  Where is it?
Status: RESOLVED → VERIFIED
Arg, I keep finding bits of SGML that XML has junked... ;-)

Yup, you're right, its invalid. Thanks.

(And it's not in the XHTML spec. That comment was the result of overkeen cut
and paste. Sorry.)
You need to log in before you can comment on or make changes to this bug.