--- title: HTMLLIElement slug: Web/API/HTMLLIElement tags: - API - HTML DOM translation_of: Web/API/HTMLLIElement --- <div> <div>{{ APIRef("HTML DOM") }}</div> </div> <p>La interfaz <strong>HTMLLIElement </strong>expone las propiedades y los métodos específicos (más allá de los definidos por la interfaz regular {{domxref ("HTMLElement")}} que también tiene disponible por herencia) para manipular elementos de la lista.</p> <h2 id="Propiedades">Propiedades</h2> <p><em>Hereda las propiedades de su elemento primario, {{domxref ("HTMLElement")}}.</em></p> <dl> <dt>{{domxref("HTMLLIElement.type")}} {{obsolete_inline}}</dt> <dd>Es un {{domxref ("DOMString")}} que representa el tipo de las viñetas, "disco", "cuadrado" o "círculo". Como la forma estándar de definir el tipo de lista es a través de la propiedad CSS {{cssxref ("list-style-type")}}, use los métodos CSSOM para establecerlo a través de un script.</dd> <dt>{{domxref("HTMLLIElement.value")}}</dt> <dd>Es un largo que indica la posición ordinal del elemento de lista dentro de un {{HTMLElement ("ol")}} dado. Refleja el atributo {{htmlattrxref ("valor", "li")}} del elemento HTML {{HTMLElement ("li")}} y puede ser menor que 0. Si el elemento {{HTMLElement ("li")}} Elemento no es hijo de un elemento {{HTMLElement ("ol")}}, la propiedad no tiene ningún significado.</dd> </dl> <h2 id="Metodos">Metodos</h2> <p><em>No specific method; inherits properties from its parent, {{domxref("HTMLElement")}}.</em></p> <h2 id="Especificaciones">Especificaciones</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">Especificacion</th> <th scope="col">Estado</th> <th scope="col">Comentario</th> </tr> <tr> <td>{{SpecName('HTML WHATWG', "grouping-content.html#the-li-element", "HTMLLIElement")}}</td> <td>{{Spec2('HTML WHATWG')}}</td> <td>No change from {{SpecName("HTML5 W3C")}}.</td> </tr> <tr> <td>{{SpecName('HTML5 W3C', "grouping-content.html#the-li-element", "HTMLLIElement")}}</td> <td>{{Spec2('HTML5 W3C')}}</td> <td>The following property is now obsolete: <code>type</code>.</td> </tr> <tr> <td>{{SpecName('DOM2 HTML', 'html.html#ID-74680021', 'HTMLLIElement')}}</td> <td>{{Spec2('DOM2 HTML')}}</td> <td>No change from {{SpecName("DOM1")}}.</td> </tr> <tr> <td>{{SpecName('DOM1', 'level-one-html.html#ID-74680021', 'HTMLLIElement')}}</td> <td>{{Spec2('DOM1')}}</td> <td>Initial definition.</td> </tr> </tbody> </table> <h2 id="Compatibilidad_con_Navegadores">Compatibilidad con Navegadores</h2> <div>{{CompatibilityTable}}</div> <div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatGeckoDesktop(1.0)}} [1]</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatVersionUnknown}}</td> </tr> </tbody> </table> </div> <div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatGeckoMobile(1.0)}} [1]</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatVersionUnknown}}</td> </tr> </tbody> </table> </div> <p>[1] Prior to Firefox 10, Gecko incorrectly reflected negative {{htmlattrxref("value", "li")}} attributes to <code>0</code>.</p> <h2 id="Ver_también">Ver también</h2> <ul> <li>El elemento HTML que implementa esta interfaz: {{HTMLElement("li")}}</li> </ul>