blob: 56dec42a948f5f3a56fdbe8e0ba36358fd21f857 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
---
title: CssRule.selectorText
slug: Web/API/CSSStyleRule/selectorText
translation_of: Web/API/CSSStyleRule/selectorText
---
<p>{{ ApiRef() }}</p>
<h3 id="Summary" name="Summary">Resumen</h3>
<p><strong>selectorText</strong> recoge/establece la representación en forma de texto, del selector para el grupo de reglas.</p>
<h3 id="Syntax" name="Syntax">Sintaxis</h3>
<pre class="eval"><em>string</em> = cssRule.selectorText
cssRule.selectorText = <em>string</em>
</pre>
<h3 id="Example" name="Example">Ejemplo</h3>
<pre> // for cssrule: body { background-color: darkblue; }
cssrule = document.styleSheets[1]
!!TODO!!
selector = cssrule.selectorText;
// selector is now "body"
</pre>
<h3 id="Notes" name="Notes">Notas</h3>
<p>La implementación puede haber eliminado espacios en blanco no significativos, en el momento de comprobar el selector.</p>
<h3 id="Specification" name="Specification">Especificación</h3>
<p>DOM Level 2 Style - cssRule</p>
|