<?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>23809</bug_id>
          
          <creation_ts>2013-11-12 19:49:27 +0000</creation_ts>
          <short_desc>[Custom]: Ability to look up information about custom elements which have been registered</short_desc>
          <delta_ts>2013-11-15 19:53:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</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>
          
          <blocked>14968</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Miksovsky">jan</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>96196</commentid>
    <comment_count>0</comment_count>
    <who name="Jan Miksovsky">jan</who>
    <bug_when>2013-11-12 19:49:27 +0000</bug_when>
    <thetext>In a variety of situations, it would be helpful to be able to look up information about the custom elements which have been registered with the browser.

For example, I&apos;ve run into a number of cases where I&apos;m debugging an app with custom elements, and have to work in roundabout ways to determine whether or not an element is being registered properly. For any given element name, I can try document.createElement(name) and see whether the thing I get back has, say, a shadow or not, but that feels hacky.

When debugging under the Polymer ShadowDOMPolyfill, it&apos;s actually been quite helpful to be able to inspect the polyfill&apos;s CustomElements registry. A similar service would be helpful in debugging native elements.

There are also situations where it&apos;d be useful to have some form of reflection to inspect a custom element type. See https://www.w3.org/Bugs/Public/show_bug.cgi?id=23808 for one specific case in which a meta-element wants to be able to look up information about another element type so that an instance of the latter may be created.

More generally, I&apos;ve been considering the construction of various tools such as visual design tools for custom elements. Again, these would generally require some means to know which custom elements are available to the browser at the moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96379</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-11-15 19:53:25 +0000</bug_when>
    <thetext>Yup. Let&apos;s do this in Level 2.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>