Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert /html folder to Markdown (es) #9225

Merged
merged 18 commits into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/es/web/html/attributes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ El atributo IDL, tambien conocido como propiedad JavaScript. Estos son atributos

La mayoria del tiempo, los atributos IDL pueden retornar sus valores como realmente son usados. Por ejemplo, el `type` por defecto para los elementos {{HTMLElement("input")}} es "texto", entonces si defines `input.type="foobar",` el elemento `<input>` sera de tipo texto (en apariencia y comportamiento) pero el valor del Atributo de contenido "type" sera "foobat". De cualquier manera, el `type` del atributo IDL retornara el string "text".
Graywolf9 marked this conversation as resolved.
Show resolved Hide resolved

Los atributos IDL no son siempre strings; por ejemplo, `input.maxlength` es un numero (marcado como long). Cuando se usan atributos IDL, lees o defines valores del tipo deseado, entonces `input.maxlength `siempre retornara un numero y cuando definas `input,maxlength`, esperara un numero. Si se le entrega otro tipo, se convierte antomaticamente a numero como se especifica en las reglas del estandar de JavaScript para conversiones de tipo.
Graywolf9 marked this conversation as resolved.
Show resolved Hide resolved
Los atributos IDL no son siempre strings; por ejemplo, `input.maxlength` es un numero (marcado como long). Cuando se usan atributos IDL, lees o defines valores del tipo deseado, entonces `input.maxlength`siempre retornara un numero y cuando definas `input,maxlength`, esperara un numero. Si se le entrega otro tipo, se convierte antomaticamente a numero como se especifica en las reglas del estandar de JavaScript para conversiones de tipo.
Graywolf9 marked this conversation as resolved.
Show resolved Hide resolved

Los atributos IDL pueden [reflejar otros tipos](http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#reflecting-content-attributes-in-idl-attributes) como un long sin asignacion, URL's, booleanos, etc. Desafortunadamente no hay reglas claras y el comportamiento que los atributos IDL en conjunto con sus respectivos atributos de contenido depende del mismo atributo. La mayoria del tiempo, siguen [las reglas de diseño en la especificacion](http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#reflecting-content-attributes-in-idl-attributes), pero algunas veces no lo hacen. Las especificaciones HTML tratan de ser lo mas amigables para el dasarrollador como es posible, pero por varias razones (mayormente historicas), algunos aributos se comportan de forma extraña (`select.size`, por ejemplo) y debes leer las especificaciones para comprender como éste se comporta exactamente.

Expand Down
46 changes: 23 additions & 23 deletions files/es/web/html/microdata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ _[itemprop](/es/docs/Web/HTML/Global_attributes/itemprop)_: utilizado para añad

_[itemref](/es/docs/Web/HTML/Global_attributes/itemref)_: las propiedades que no desciendan de un elemento y contengan el atributo `itemscope` pueden asociarse con el elemento a través de una _**itemref**_. _Itemref_ proporciona una lista de identificadores de elementos (distintos de los `itemid`s) con propiedades adicionales en otras partes del documento.

[_itemscope_](/es/docs/Web/HTML/Global_attributes/itemscope): _Itemscope_ (por lo general) funciona en conjunto con [_itemtype_ ](/es/docs/Web/HTML/Global_attributes/itemtype)para especificar que el HTML contenido en un bloque se refiere a un término concreto. _itemscope_ crea el elemento y define el alcance del _itemtype_ asociado con él. _itemtype_ es un URL válido de un vocabulario (como [Schema.org](http://schema.org/)) que describe el elemento y el contexto de sus propiedades.
[_itemscope_](/es/docs/Web/HTML/Global_attributes/itemscope): _Itemscope_ (por lo general) funciona en conjunto con [_itemtype_](/es/docs/Web/HTML/Global_attributes/itemtype)para especificar que el HTML contenido en un bloque se refiere a un término concreto. _itemscope_ crea el elemento y define el alcance del _itemtype_ asociado con él. _itemtype_ es un URL válido de un vocabulario (como [Schema.org](http://schema.org/)) que describe el elemento y el contexto de sus propiedades.

[_itemtype_](/es/docs/Web/HTML/Global_attributes/itemtype): Especifica el URL del vocabulario que se empleará para definir _itemprops_ (‘propiedades de elementos’) en la estructura de datos. Se emplea _[Itemscope](/es/docs/Web/HTML/Global_attributes/itemscope)_ para establecer el alcance del área de funcionamiento del vocabulario establecido por _itemtype_ dentro de la estructura de datos.

Expand All @@ -67,19 +67,19 @@ _[itemref](/es/docs/Web/HTML/Global_attributes/itemref)_: las propiedades que no

```html
<div itemscope itemtype="http://schema.org/SoftwareApplication">
<span itemprop="name">Angry Birds</span> -
Graywolf9 marked this conversation as resolved.
Show resolved Hide resolved
<span itemprop="name">Angry Birds -

REQUIRES <span itemprop="operatingSystem">ANDROID</span><br>
REQUIRES <span itemprop="operatingSystem">ANDROID<br>
<link itemprop="applicationCategory" href="http://schema.org/GameApplication"/>

<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
RATING:
<span itemprop="ratingValue">4.6</span> (
<span itemprop="ratingCount">8864</span> ratings )
<span itemprop="ratingValue">4.6 (
<span itemprop="ratingCount">8864 ratings )
</div>

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
Price: $<span itemprop="price">1.00</span>
Price: $<span itemprop="price">1.00
<meta itemprop="priceCurrency" content="MXN" />
</div>
</div>
Expand All @@ -93,55 +93,55 @@ _[itemref](/es/docs/Web/HTML/Global_attributes/itemref)_: las propiedades que no
<td colspan="1" rowspan="4">itemscope</td>
<td>itemtype</td>
<td colspan="2" rowspan="1">
<span>SoftwareApplication (</span>http://schema.org/SoftwareApplication)
SoftwareApplication (http://schema.org/SoftwareApplication)
</td>
</tr>
<tr>
<td>itemprop</td>
<td><span>name</span></td>
<td><span>Angry Birds</span></td>
<td>name</td>
<td>Angry Birds</td>
</tr>
<tr>
<td>itemprop</td>
<td><span>operatingSystem</span></td>
<td><span>ANDROID</span></td>
<td>operatingSystem</td>
<td>ANDROID</td>
</tr>
<tr>
<td>itemprop</td>
<td><span>applicationCategory</span></td>
<td><span>GameApplication (http://schema.org/GameApplication)</span></td>
<td>applicationCategory</td>
<td>GameApplication (http://schema.org/GameApplication)</td>
</tr>
<tr>
<td colspan="1" rowspan="3">itemscope</td>
<td>itemprop[itemtype]</td>
<td colspan="2" rowspan="1">
<span>aggregateRating</span> [<span>AggregateRating</span>]
aggregateRating [AggregateRating]
</td>
</tr>
<tr>
<td>itemprop</td>
<td><span>ratingValue</span></td>
<td><span>4.6</span></td>
<td>ratingValue</td>
<td>4.6</td>
</tr>
<tr>
<td>itemprop</td>
<td><span>ratingCount</span></td>
<td><span>8864</span></td>
<td>ratingCount</td>
<td>8864</td>
</tr>
<tr>
<td colspan="1" rowspan="3">itemscope</td>
<td>itemprop[itemtype]</td>
<td colspan="2" rowspan="1"><span>offers</span> [<span>Offer</span>]</td>
<td colspan="2" rowspan="1">offers [Offer]</td>
</tr>
<tr>
<td>itemprop</td>
<td><span>price</span></td>
<td><span>1.00</span></td>
<td>price</td>
<td>1.00</td>
</tr>
<tr>
<td>itemprop</td>
<td><span>priceCurrency</span></td>
<td><span>USD</span></td>
<td>priceCurrency</td>
<td>USD</td>
</tr>
</tbody>
</table>
Expand Down