[css3-gcpm] Cross-references error cases

Hi,

The examples for target-counter(), target-counters() and target-text() 
only use relative URLs with only a fragment, altough the syntax permits 
any URL.

What happens in these cases?

a. The URL does not have any fragment specified
b. The URL has a fragment but the document has no corresponding 
ID/anchor name
c. The URL points to a different document, ie. it different from the 
document’s URL other than by the fragment.

I think all of these cases should be errors, resulting in zero or the 
empty string.

In particular, even c could in theory fetch the remote document and give 
a result, but I think that’s not desirable.

-- 
Simon Sapin

Received on Wednesday, 25 September 2013 15:39:05 UTC