-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validator inappropriately constrains foreign markup in Atom [DuplicateElement and UndefinedElement] #73
Comments
(I missed out the |
|
Describe the bug
According to section 4.1.2 of the Atom syndication format RFC, the
atom:entry
element allows zero or more "extension elements". The RFC defines "extension elements" in section 6.4 as "foreign markup", which it defines in section 6.1 as "markup from other vocabularies" i.e. not in the Atom namespace). In section 6.4, the RFC says in full:However, when providing an Atom feed containing an
atom:entry
with more than onedc:language
child element, the validator reports the error:with a link to the DuplicateElement help page.
If instead the Atom feed provided contains more than one
dct:language
child element, the validator reports the error:with a link to the [UndefinedElement] help page.
To Reproduce
To trigger the DuplicateElement error, paste the following feed into the direct input box on the page :
To trigger the UndefinedElement.html error, delete both instances of
dc:language
in the above XML and substitute the below XML:Expected behavior
The feed validates if an
atom:entry
contains two or moredc:language
ordct:language
elements.The text was updated successfully, but these errors were encountered: