2005-08-31 10:05 UTC Cor-ai
If someone accused me of writing sentences that made people go cross-eyed, I'd have to plead guilty. While trying to define the first draft of the client-side persistent storage API in HTML5, I just ended up writing the following:
When the
setItem()method is called on aStorageobject that is associated with a global storage entry for a domain d and was created by aStorageListobject associated with aWindowobject x, then in everyDocumentWindowobject whoseWindowobject is not x and whoseglobalStorageattribute'sStorageListobject'sgetDomain()method would not raise a security exception according to the rules above if it was invoked with the domain d, astorageevent must be fired, as described below.
My only defence is that I'm just trying to be exact!
People are already trying to find better ways to phrase it, so don't be surprised if, by the time you check the spec, the sentence has been replaced by something much saner.
As always, feedback on WHATWG specs is welcome.