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
Classification: Unclassified
Component: Datatype library
All All
: P2 normal
Assigned To: Michael[tm] Smith
Depends on:
  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:


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" -

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.