patrickkettner / cookie-change-events

small extension to document.cookie that allows for event listeners
https://patrickkettner.github.io/cookie-change-events/
Other
22 stars 3 forks source link

how to cross reference dfns #30

Open patrickkettner opened 7 years ago

patrickkettner commented 7 years ago

@travisleithead @arronei continuing #21, I have definitions for Init's, but am missing for the non Init form of a few things.

e.g. between

dictionary CookieInit {
    USVString name;
};
[Constructor((CookieInit or USVString) cookie), Exposed=Window]
interface Cookie {
    readonly attribute USVString name;
};

name is defined for CookieInit, but not for Cookie, despite sharing the same definition, via

<li><dfn for='CookieInit' dict-member>name</dfn> is blahblahblah.</li>

Should I be repeating the definitions? or is what I have expected?

travisleithead commented 7 years ago

Yeah, you need to have a separate dfn for the interface's name attribute.

<dfn for='Cookie' attribute>name</dfn>
patrickkettner commented 7 years ago

@travisleithead so that means I have to literally copy and paste the same dfns in order to do what I want?