NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 722 - add check for new "non-empty URL" datatype
add check for new "non-empty URL" datatype
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: Datatype library
HEAD
All All
: P2 normal
Assigned To: Michael[tm] Smith
http://html5.org/tools/web-apps-track...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-09 05:01 CET by Michael[tm] Smith
Modified: 2010-12-17 12:35 CET (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 Michael[tm] Smith 2010-03-09 05:01:42 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"
Comment 1 Michael[tm] Smith 2010-03-09 05:43:09 CET
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.
Comment 2 Henri Sivonen 2010-03-09 09:51:42 CET
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.