Bug 16455 - Using platform object example
Using platform object example
Status: NEW
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL
All Windows 3.1
: P2 enhancement
: ---
Assigned To: Cameron McCormack
Depends on:
  Show dependency treegraph
Reported: 2012-03-20 19:06 UTC by Marcos Caceres
Modified: 2013-06-17 01:12 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Marcos Caceres 2012-03-20 19:06:36 UTC
Spec says: 

"Every platform object is associated with a global environment, just as the initial objects are. It is the responsibility of specifications using Web IDL to state which global environment (or, by proxy, which global object) each platform object is associated with."

This seems pretty important (maybe this should be a warning?). Can you please provide an example of some prose to use in another spec?
Comment 1 Cameron McCormack 2012-03-21 23:19:34 UTC
You're right, that's a sneaky requirement in there that probably nobody adheres to. :)  I wanted to avoid having spec writers define this, but I am not sure how to avoid it really.  We need to define for example that all objects returned from document.createElement are associated with the global environment that the document is associated with, while the objects returned from the contentDocument property on <iframe>s are associated with the global environment in the frame.

Not sure really what the best way for other specs to word this requirement is, yet...