proto-wayic/cast/project.task < pushd ~/work/_/proto-wayic/cast/ ( http://reluk.ca/project/proto-wayic/cast/ ( http://reluk.ca/var/deploy/test/proto-wayic/cast/ _____ - waycast relative references and waycast public locations + `waycast.xml` - * waycast public location - a configuration property - mandatory for certain purposes - default - where in effect it defeats certain functions ( those that cannot easily rely on the default - based on current location - which might be file schemed - form: URI in normal form ( Normalization and comparison, https://datatracker.ietf.org/doc/html/rfc3986#section-6 - ending in a slash ( either as implied by 'normal', or as here made explicit = with this, back the waycast public identifier ( doc.task § Publication of a waycast + Relative references § ( Uniform Resource Identifier § Relative reference, https://datatracker.ietf.org/doc/html/rfc3986#section-4.2 - § added to proto-wayic.copy for this purpose * on copying - each relative URL reference is resolved against the referring waycast's public location - obtained from the referring `waycast.xml` - - where a default value results in a warning to the copier * on pasting - each URL equal to the referent waycast's public location is relativized against the referent waycast's public location - obtained from the referent's `waycast.xml` - ( [COR] - where a default value results in a warning to the paster = secure this design - not to lose it | implementing and documenting it as far as necessary for this purpose _____ - future proof loading of way_declaration_document.js - loading it from *head* element - if generally that is a good design - because this seems the most general and future proof placement - allowing the waycaster to set JavaScript properties that are immediately accessible to inline scripts - discouraging the way_declaration_document.js from relying on *immediate* access to *body* DOM or results of earlier execution of other scripts - as it could when placed at *body* end = look into this //////////////////////////////////////////////////////////////////////////////////////////////////////// // N o t e / [COR] Each intercast request requires that "cross origin responses are enabled". ./manual.task § publication of a waycast Copyright © 2017-2019 Michael Allan and contributors. Licence MIT.