-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
When the parser encounters:
<p ... datatype="rdf:HTML"><span>foo</span></p>The value comes out as
<span xmlns="http://www.w3.org/1999/xhtml"></span>Is it possible to omit the xmlns in the output so that the value is "as is": <span>foo</span>?
We used the features option when initialising RdfaParser:
features: {
xmlnsPrefixMappings: false,
}but that seemed to strip out all of the markup. Not sure if that flag was right to begin with but that approach also seems to override all of the default settings (which seems to be true).
So:
- Is it possible to omit the xmlns namespace? If not, is this something that can only be done post-parsing?
- Is it possible to override one of the features?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request