Bugzilla – Bug 722
add check for new "non-empty URL" datatype
Last modified: 2010-12-17 12:35:25 CET
The HTML5 spec has been updated to change the datatype of a number of attribute values to "valid non-empty URL" - http://dev.w3.org/html5/spec/infrastructure.html#valid-non-empty-url The affected attribute values were previously allowed to be an empty string, but now must be "a valid URL but not the empty string"
Unless there is some way to subclass or extend the existing IriRef class so that we don't end up just duplicating it, it would seem like rather than creating a new datatype, this check might instead better be done in the existing Assertions code.
One way would be making iri-ref never accept the empty string and use w:iri-ref | w:string "" where the empty string must be allowed.
https://bitbucket.org/validator/syntax-patches/qseries?apply=t&qs_apply=non-empty-url
https://bitbucket.org/validator/syntax/changeset/82eaafbf8365