NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 754 - polyglot profile does not appear to detect bad XHTML syntax
polyglot profile does not appear to detect bad XHTML syntax
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: XML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-08 05:08 CEST by J David Eisenberg
Modified: 2010-11-27 19:35 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J David Eisenberg 2010-07-08 05:08:39 CEST
After choosing "Polyglot: works as both HTML and XHTML" from the Profile drop-down (leaving all other drop-downs at their default), the following code is deemed valid, even though the first paragraph is missing its closing </p> tag, and thus does not work as XHTML.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
<p>
First paragraph
<p>
another paragraph
</p>
</body>
</html>
Comment 1 Michael[tm] Smith 2010-11-27 19:35:50 CET
The polyglot feature has now been disabled because work on completing it was never finished. It may eventually be re-enabled if somebody decides to put more work into finishing it. If so, feel free to reopen this bug then (or file a new one).