NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 965 - Optional namespace awareness
Optional namespace awareness
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-27 18:09 CET by Nikola Petrov
Modified: 2013-02-27 18:09 CET (History)
0 users

See Also:


Attachments
The patch to make check the awareness of the parser (3.79 KB, patch)
2013-02-27 18:09 CET, Nikola Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikola Petrov 2013-02-27 18:09:46 CET
Created attachment 229 [details]
The patch to make check the awareness of the parser 

We currently use validatorNU with the XPath API and find it inconvenient to specify the xhtml(default namespace in the parser always). Here is a patch that makes it possible to disable the namespace awareness from HtmlDocumentBuilder.

Currently we use it like this:

Document document = new HtmlDocumentBuilder() {
				public boolean isNamespaceAware() {
					return false; // note this!
				};
			}.parse(input)