<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20128</bug_id>
          
          <creation_ts>2012-11-28 18:59:53 +0000</creation_ts>
          <short_desc>clarify structure for API members that supplement core DOM interfaces</short_desc>
          <delta_ts>2013-03-14 17:18:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>webplatform.org</product>
          <component>info architecture</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike Sierra">letmespellitoutforyou</reporter>
          <assigned_to name="Doug Schepers">schepers</assigned_to>
          <cc>cmills</cc>
    
    <cc>jonathan</cc>
          
          <qa_contact name="public-webplatform-bugs list">public-webplatform-bugs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79029</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-11-28 18:59:53 +0000</bug_when>
    <thetext>Part architecture, part infrastructure. Bug relates to a topic in
11/18 site-content conf-call &amp; earlier unresolved discussion in
&quot;URL structure sanity check&quot; public email thread.  Here&apos;s the
canonical URL structure for non-core APIs:

 /apis/&lt;package&gt;/&lt;interface&gt;/&lt;member&gt;

Good for new interfaces, but API packages often add members to core
interfaces (e.g. Document, Window, Navigator). Two examples:

* DeviceOrientation API adds a few events to the Window object. It
  does not add any new API interfaces.

* CSS Regions API (apis/css-regions) adds &apos;getNamedFlows&apos; member to
  the Document interface. It&apos;s common to add such members simply to
  access specialized APIs.  (In this case, I placed it here:
  /dom/apis/document/getNamedFlows)

Question: should these members be added to /dom tree, or supplement
the existing /apis URL structure? E.g.:

 /apis/&lt;package&gt;/Document/&lt;member&gt;
 /apis/&lt;package&gt;/Window/&lt;member&gt;
 /apis/&lt;package&gt;/Navigator/&lt;member&gt;

Arguments in favor of the latter:

* Placing them directly on /dom interface page would otherwise list
  core members &amp; more specialized members all jumbled together, and
  the distinction is info webdevs might find useful when viewing each
  /dom page.

* Maybe there&apos;s an opportunity to use templates to import
  supplementary members from /api to populate appropriate /dom
  interface. Page could be separated into core &amp; non-core members.

* There&apos;s a benefit to being able to scan each /apis/&lt;package&gt; page
  and be able to view all relevant members from any interface,
  analogous to the everything-you-need-to-know structure of W3C specs.

* Relates to bug #20103: would like &lt;package&gt; pages to generate nested
  list allowing users to drill down directly to any member.

One caveat:

* What if users land on /apis/&lt;package&gt;/Document page? We&apos;re not going to
  re-doc it. Is a redirect to appropriate location under /dom possible?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79096</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Mills">cmills</who>
    <bug_when>2012-11-29 08:39:11 +0000</bug_when>
    <thetext>This makes sense to me Mike. I suggest we go with this, if there are no dissenters. Update the hierarchy information at http://docs.webplatform.org/wiki/WPD:Content/Topic_Hierarchy ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79151</commentid>
    <comment_count>2</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-11-29 20:05:35 +0000</bug_when>
    <thetext>OK, as a test case I moved
   dom/apis/document/getNamedFlows
to
   apis/css-regions/Document/getNamedFlows
&amp; kept the interface name Initcap to stay consistent with rest of
apis/.

Ideally at some point, dom/apis/document should dynamically list
getNamedFlows, perhaps in a separate list of supplementary members.

Also ideally, the new interim apis/css-regions/Document page should
redirect to dom/apis/document, or else dynamically reflect its content.  
Requiring it to be created by hand would invite	fragmented out-of-context
content.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79173</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Mills">cmills</who>
    <bug_when>2012-11-30 10:21:00 +0000</bug_when>
    <thetext>Sounds good, but shouldn&apos;t we be using all lower case for URLs, like we agreed a while ago?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79196</commentid>
    <comment_count>4</comment_count>
    <who name="Mike Sierra">letmespellitoutforyou</who>
    <bug_when>2012-11-30 17:05:07 +0000</bug_when>
    <thetext>Think this needs clarification. From discussion over the /apis tree I took away this convention:

/apis/&lt;api_bundle&gt;/&lt;InterfaceName&gt;/&lt;memberInCamelCaseWhereApplicable&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84432</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Garbee">jonathan</who>
    <bug_when>2013-03-14 17:18:14 +0000</bug_when>
    <thetext>New location: http://project.webplatform.org/ia/issues/9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>