NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 865 - Internal error from xmlns=""
Internal error from xmlns=""
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: XML parser
HEAD
All All
: P2 normal
Assigned To: Michael[tm] Smith
http://www.cs.tut.fi/~jkorpela/test/x...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-15 13:19 CEST by Jukka K. Korpela
Modified: 2011-10-24 14:04 CEST (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 Jukka K. Korpela 2011-10-15 13:19:47 CEST
"A bug manifested itself in the application internals. Unable to continue"
is triggered when the following conditions are met:
1) XML serialization, with <html ... xmlns="http://www.w3.org/1999/xhtml">
2) xmlns attribute on some other element
3) Validate by address (URL

Without item 1 or 3, i.e. with HTML serialization or with Validate by textfield, the bug does not appear.  Instead, the following error message appears:

"Bad value for the attribute xmlns (only http://www.w3.org/1999/xhtml 
permitted here)."

... with the following more cryptic warning:

"Attribute xmlns is not serializable as XML 1.0."

The bug was first reported at
http://lists.w3.org/Archives/Public/www-validator/2011Oct/0002.html
Comment 1 Michael[tm] Smith 2011-10-18 10:51:24 CEST
https://gist.github.com/1294834

I will commit that fix as soon as Henri reviews it.

In the mean time, you can test it here:

  http://www.w3.org/html/check

The message you should get is "Unnamespaced element p not allowed as child of XHTML element body in this context", which I think is the expected message for this case.
Comment 2 Michael[tm] Smith 2011-10-24 14:04:36 CEST
Thanks for reporting this. It's now fixed in the validator.nu sources.

https://bitbucket.org/validator/xmlparser/changeset/1a23269c21bc