RE: [PageVisibility] visibilityState should be an IDL enum, not a string

Considering this change will be transparent to developers, there will be no compatibility impact on current implementations, and this is a good forward looking change, I agree with making this change. I will update the spec like so:

partial interface Document {
    enum VisibilityStates { "hidden", "visible", "prerender", "unloaded" };
    readonly attribute VisibilityStates visibilityState; 
};

I will need to update Section 4.5 Vendor Prefixes to accommodate this change. This change should not change the spec's Candidate Recommendation state.

Thanks,
Jatinder

-----Original Message-----
From: Boris Zbarsky [mailto:bzbarsky@MIT.EDU] 
Sent: Friday, November 16, 2012 12:14 AM
To: public-web-perf@w3.org
Subject: [PageVisibility] visibilityState should be an IDL enum, not a string

Seems like it's a perfect fit for an enum: a limited set of values and so forth.

-Boris

Received on Wednesday, 28 November 2012 20:26:22 UTC