From 785c0b7c8adc9e73cfd07817009c4437255c9398 Mon Sep 17 00:00:00 2001 From: MDN Date: Wed, 10 Mar 2021 16:18:46 +0000 Subject: [CRON] sync translated content --- files/es/_redirects.txt | 6 +- files/es/_wikihistory.json | 30 +++--- .../web/api/document/pointerlockelement/index.html | 106 +++++++++++++++++++++ files/es/web/api/document/stylesheets/index.html | 23 +++++ .../pointerlockelement/index.html | 106 --------------------- .../documentorshadowroot/stylesheets/index.html | 23 ----- files/fr/_redirects.txt | 7 +- files/fr/_wikihistory.json | 54 +++++------ .../web/api/passwordcredential/index.html | 74 ++++++++++++++ .../index.html | 53 +++++++++++ .../index.html | 51 ++++++++++ files/fr/web/api/document/stylesheets/index.html | 57 +++++++++++ .../documentorshadowroot/stylesheets/index.html | 57 ----------- .../passwordcredential/additionaldata/index.html | 73 -------------- .../web/api/passwordcredential/idname/index.html | 50 ---------- .../api/passwordcredential/passwordname/index.html | 52 ---------- files/it/_redirects.txt | 6 +- files/it/_wikihistory.json | 16 ++-- files/it/web/api/document/stylesheets/index.html | 45 +++++++++ .../documentorshadowroot/stylesheets/index.html | 45 --------- files/ja/_redirects.txt | 12 ++- files/ja/_wikihistory.json | 36 +++---- .../mselementsfromrect/index.html | 55 +++++++++++ .../web/api/document/pointerlockelement/index.html | 61 ++++++++++++ files/ja/web/api/document/stylesheets/index.html | 62 ++++++++++++ .../mselementsfromrect/index.html | 54 ----------- .../pointerlockelement/index.html | 60 ------------ .../documentorshadowroot/stylesheets/index.html | 61 ------------ files/ko/_redirects.txt | 1 + files/ko/_wikihistory.json | 14 +-- files/ko/web/api/document/stylesheets/index.html | 58 +++++++++++ .../documentorshadowroot/stylesheets/index.html | 57 ----------- files/pl/_redirects.txt | 6 +- files/pl/_wikihistory.json | 20 ++-- files/pl/web/api/document/stylesheets/index.html | 21 ++++ .../documentorshadowroot/stylesheets/index.html | 21 ---- files/zh-cn/_redirects.txt | 4 +- files/zh-cn/_wikihistory.json | 24 ++--- .../web/api/document/pointerlockelement/index.html | 106 +++++++++++++++++++++ .../zh-cn/web/api/document/stylesheets/index.html | 53 +++++++++++ .../pointerlockelement/index.html | 106 --------------------- .../documentorshadowroot/stylesheets/index.html | 52 ---------- 42 files changed, 946 insertions(+), 932 deletions(-) create mode 100644 files/es/web/api/document/pointerlockelement/index.html create mode 100644 files/es/web/api/document/stylesheets/index.html delete mode 100644 files/es/web/api/documentorshadowroot/pointerlockelement/index.html delete mode 100644 files/es/web/api/documentorshadowroot/stylesheets/index.html create mode 100644 files/fr/conflicting/web/api/passwordcredential/index.html create mode 100644 files/fr/conflicting/web/api/passwordcredential_bc57d5dfa87242b4fb83497887124f41/index.html create mode 100644 files/fr/conflicting/web/api/passwordcredential_cbf7b306e83a3f58ff06bccf89637c12/index.html create mode 100644 files/fr/web/api/document/stylesheets/index.html delete mode 100644 files/fr/web/api/documentorshadowroot/stylesheets/index.html delete mode 100644 files/fr/web/api/passwordcredential/additionaldata/index.html delete mode 100644 files/fr/web/api/passwordcredential/idname/index.html delete mode 100644 files/fr/web/api/passwordcredential/passwordname/index.html create mode 100644 files/it/web/api/document/stylesheets/index.html delete mode 100644 files/it/web/api/documentorshadowroot/stylesheets/index.html create mode 100644 files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html create mode 100644 files/ja/web/api/document/pointerlockelement/index.html create mode 100644 files/ja/web/api/document/stylesheets/index.html delete mode 100644 files/ja/web/api/documentorshadowroot/mselementsfromrect/index.html delete mode 100644 files/ja/web/api/documentorshadowroot/pointerlockelement/index.html delete mode 100644 files/ja/web/api/documentorshadowroot/stylesheets/index.html create mode 100644 files/ko/web/api/document/stylesheets/index.html delete mode 100644 files/ko/web/api/documentorshadowroot/stylesheets/index.html create mode 100644 files/pl/web/api/document/stylesheets/index.html delete mode 100644 files/pl/web/api/documentorshadowroot/stylesheets/index.html create mode 100644 files/zh-cn/web/api/document/pointerlockelement/index.html create mode 100644 files/zh-cn/web/api/document/stylesheets/index.html delete mode 100644 files/zh-cn/web/api/documentorshadowroot/pointerlockelement/index.html delete mode 100644 files/zh-cn/web/api/documentorshadowroot/stylesheets/index.html diff --git a/files/es/_redirects.txt b/files/es/_redirects.txt index 5a8cb6124d..88824dfe79 100644 --- a/files/es/_redirects.txt +++ b/files/es/_redirects.txt @@ -263,7 +263,7 @@ /es/docs/DOM/CssRule.cssText /es/docs/Web/API/CSSRule/cssText /es/docs/DOM/CssRule.parentStyleSheet /es/docs/Web/API/CSSRule/parentStyleSheet /es/docs/DOM/CssRule.selectorText /es/docs/Web/API/CSSStyleRule/selectorText -/es/docs/DOM/Document.styleSheets /es/docs/Web/API/DocumentOrShadowRoot/styleSheets +/es/docs/DOM/Document.styleSheets /es/docs/Web/API/Document/styleSheets /es/docs/DOM/Element.setAttribute /es/docs/Web/API/Element/setAttribute /es/docs/DOM/Element.style /es/docs/Web/API/ElementCSSInlineStyle/style /es/docs/DOM/HTMLAudioElement /es/docs/Web/API/HTMLAudioElement @@ -1791,8 +1791,8 @@ /es/docs/Web/API/Document/async /es/docs/Web/API/XMLDocument/async /es/docs/Web/API/Document/crearAtributo /es/docs/Web/API/Document/createAttribute /es/docs/Web/API/Document/getSelection /es/docs/Web/API/DocumentOrShadowRoot/getSelection -/es/docs/Web/API/Document/pointerLockElement /es/docs/Web/API/DocumentOrShadowRoot/pointerLockElement -/es/docs/Web/API/Document/styleSheets /es/docs/Web/API/DocumentOrShadowRoot/styleSheets +/es/docs/Web/API/DocumentOrShadowRoot/pointerLockElement /es/docs/Web/API/Document/pointerLockElement +/es/docs/Web/API/DocumentOrShadowRoot/styleSheets /es/docs/Web/API/Document/styleSheets /es/docs/Web/API/Element/accessKey /es/docs/Web/API/HTMLElement/accessKey /es/docs/Web/API/Element/name /es/docs/conflicting/Web/API /es/docs/Web/API/Element/ongotpointercapture /es/docs/Web/API/GlobalEventHandlers/ongotpointercapture diff --git a/files/es/_wikihistory.json b/files/es/_wikihistory.json index d1d527474e..9765fd105f 100644 --- a/files/es/_wikihistory.json +++ b/files/es/_wikihistory.json @@ -15671,12 +15671,6 @@ "FenixAlive" ] }, - "Web/API/DocumentOrShadowRoot/pointerLockElement": { - "modified": "2019-03-23T22:05:31.350Z", - "contributors": [ - "arquigames" - ] - }, "Web/API/DOMString/Binary": { "modified": "2020-08-29T03:33:22.030Z", "contributors": [ @@ -23067,15 +23061,6 @@ "Diferno" ] }, - "Web/API/DocumentOrShadowRoot/styleSheets": { - "modified": "2019-03-23T23:58:05.224Z", - "contributors": [ - "fscholz", - "jsx", - "teoli", - "HenryGR" - ] - }, "Web/API/HTMLElement/accessKey": { "modified": "2019-03-23T22:26:12.172Z", "contributors": [ @@ -23743,5 +23728,20 @@ "contributors": [ "Grijander81" ] + }, + "Web/API/Document/pointerLockElement": { + "modified": "2019-03-23T22:05:31.350Z", + "contributors": [ + "arquigames" + ] + }, + "Web/API/Document/styleSheets": { + "modified": "2019-03-23T23:58:05.224Z", + "contributors": [ + "fscholz", + "jsx", + "teoli", + "HenryGR" + ] } } \ No newline at end of file diff --git a/files/es/web/api/document/pointerlockelement/index.html b/files/es/web/api/document/pointerlockelement/index.html new file mode 100644 index 0000000000..6225673194 --- /dev/null +++ b/files/es/web/api/document/pointerlockelement/index.html @@ -0,0 +1,106 @@ +--- +title: Document.pointerLockElement +slug: Web/API/Document/pointerLockElement +translation_of: Web/API/DocumentOrShadowRoot/pointerLockElement +original_slug: Web/API/DocumentOrShadowRoot/pointerLockElement +--- +
{{APIRef("DOM")}}
+ +

La propiedad pointerLockElement conserva el elemento adquirido, para el evento del mouse, mientras el bloqueo se encuentre activo .  Es null si el bloqueo se encuentra en estado pendiente para bloqueo, o si el bloqueo se ha liberado, es decir ya no se encuentra en estado bloqueado, o si el elemento bloqueado se encuentra en otro documento.

+ +

Sintaxis

+ +
var elemento = document.pointerLockElement;
+
+ +

Valor retornado

+ +

Un {{domxref("Element")}} o null.

+ +

Especificaciones

+ + + + + + + + + + + + + + +
EspecificaciónEstadoComentario
{{SpecName('Bloquear puntero','l#extension-to-the-document-interface','Document')}}{{Spec2('Pointer lock')}}Extiende de la interfaz Document
+ +

Compatibilidad del Navegador

+ +

{{ CompatibilityTable() }}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CaracterísticaChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Soporte Básico{{ CompatVersionUnknown() }} {{property_prefix("webkit")}}{{CompatVersionUnknown}}{{ CompatVersionUnknown() }} {{property_prefix("moz")}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
Soporte sin prefijar{{ CompatVersionUnknown() }}{{CompatUnknown}}{{CompatGeckoDesktop(50)}}   
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
CaracterísticaAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Soporte Básico{{ CompatUnknown() }}{{CompatVersionUnknown}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
+
+ +

Véase también:

+ + diff --git a/files/es/web/api/document/stylesheets/index.html b/files/es/web/api/document/stylesheets/index.html new file mode 100644 index 0000000000..f17c721fda --- /dev/null +++ b/files/es/web/api/document/stylesheets/index.html @@ -0,0 +1,23 @@ +--- +title: Document.styleSheets +slug: Web/API/Document/styleSheets +translation_of: Web/API/DocumentOrShadowRoot/styleSheets +translation_of_original: Web/API/Document/styleSheets +original_slug: Web/API/DocumentOrShadowRoot/styleSheets +--- +

{{ ApiRef() }}

+

Resumen

+

Devuelve una lista de objetos de tipo stylesheet para las hojas de estilo que están específicamente enlazadas o contenidas en el documento.

+

Propiedades

+

styleSheetList.length - devuelve el número de objetos de tipo stylesheet contenidos en el objeto.

+

Sintaxis

+
styleSheetList = document.styleSheets
+
+

El objeto devuelto es del tipo StyleSheetList.

+

Es una colección ordenada de objetos de tipo stylesheet. styleSheetList.item(index) o simplemente styleSheetList{{ mediawiki.external(' + + index + ') }} devuelve un único objeto de tipo stylesheet con el índice especificado (el índice es de origen 0).

+

Especificación

+

DOM Level 2 Style: styleSheets

+

{{ languages( { "ja": "ja/DOM/document.styleSheets", "pl": "pl/DOM/document.styleSheets" } ) }}

diff --git a/files/es/web/api/documentorshadowroot/pointerlockelement/index.html b/files/es/web/api/documentorshadowroot/pointerlockelement/index.html deleted file mode 100644 index b785328d1c..0000000000 --- a/files/es/web/api/documentorshadowroot/pointerlockelement/index.html +++ /dev/null @@ -1,106 +0,0 @@ ---- -title: Document.pointerLockElement -slug: Web/API/DocumentOrShadowRoot/pointerLockElement -translation_of: Web/API/DocumentOrShadowRoot/pointerLockElement -original_slug: Web/API/Document/pointerLockElement ---- -
{{APIRef("DOM")}}
- -

La propiedad pointerLockElement conserva el elemento adquirido, para el evento del mouse, mientras el bloqueo se encuentre activo .  Es null si el bloqueo se encuentra en estado pendiente para bloqueo, o si el bloqueo se ha liberado, es decir ya no se encuentra en estado bloqueado, o si el elemento bloqueado se encuentra en otro documento.

- -

Sintaxis

- -
var elemento = document.pointerLockElement;
-
- -

Valor retornado

- -

Un {{domxref("Element")}} o null.

- -

Especificaciones

- - - - - - - - - - - - - - -
EspecificaciónEstadoComentario
{{SpecName('Bloquear puntero','l#extension-to-the-document-interface','Document')}}{{Spec2('Pointer lock')}}Extiende de la interfaz Document
- -

Compatibilidad del Navegador

- -

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CaracterísticaChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Soporte Básico{{ CompatVersionUnknown() }} {{property_prefix("webkit")}}{{CompatVersionUnknown}}{{ CompatVersionUnknown() }} {{property_prefix("moz")}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
Soporte sin prefijar{{ CompatVersionUnknown() }}{{CompatUnknown}}{{CompatGeckoDesktop(50)}}   
-
- -
- - - - - - - - - - - - - - - - - - - - - -
CaracterísticaAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Soporte Básico{{ CompatUnknown() }}{{CompatVersionUnknown}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
- -

Véase también:

- - diff --git a/files/es/web/api/documentorshadowroot/stylesheets/index.html b/files/es/web/api/documentorshadowroot/stylesheets/index.html deleted file mode 100644 index 94c43bd765..0000000000 --- a/files/es/web/api/documentorshadowroot/stylesheets/index.html +++ /dev/null @@ -1,23 +0,0 @@ ---- -title: Document.styleSheets -slug: Web/API/DocumentOrShadowRoot/styleSheets -translation_of: Web/API/DocumentOrShadowRoot/styleSheets -translation_of_original: Web/API/Document/styleSheets -original_slug: Web/API/Document/styleSheets ---- -

{{ ApiRef() }}

-

Resumen

-

Devuelve una lista de objetos de tipo stylesheet para las hojas de estilo que están específicamente enlazadas o contenidas en el documento.

-

Propiedades

-

styleSheetList.length - devuelve el número de objetos de tipo stylesheet contenidos en el objeto.

-

Sintaxis

-
styleSheetList = document.styleSheets
-
-

El objeto devuelto es del tipo StyleSheetList.

-

Es una colección ordenada de objetos de tipo stylesheet. styleSheetList.item(index) o simplemente styleSheetList{{ mediawiki.external(' - - index - ') }} devuelve un único objeto de tipo stylesheet con el índice especificado (el índice es de origen 0).

-

Especificación

-

DOM Level 2 Style: styleSheets

-

{{ languages( { "ja": "ja/DOM/document.styleSheets", "pl": "pl/DOM/document.styleSheets" } ) }}

diff --git a/files/fr/_redirects.txt b/files/fr/_redirects.txt index 71050031ab..b2979d133f 100644 --- a/files/fr/_redirects.txt +++ b/files/fr/_redirects.txt @@ -3750,8 +3750,8 @@ /fr/docs/Web/API/Document/domConfig /fr/docs/Web/API/Document /fr/docs/Web/API/Document/elementFromPoint /fr/docs/Web/API/DocumentOrShadowRoot/elementFromPoint /fr/docs/Web/API/Document/getSelection /fr/docs/Web/API/DocumentOrShadowRoot/getSelection -/fr/docs/Web/API/Document/styleSheets /fr/docs/Web/API/DocumentOrShadowRoot/styleSheets /fr/docs/Web/API/DocumentOrShadowRoot/activeElement /fr/docs/Web/API/Document/activeElement +/fr/docs/Web/API/DocumentOrShadowRoot/styleSheets /fr/docs/Web/API/Document/styleSheets /fr/docs/Web/API/Document_Object_Model/Exemples /fr/docs/Web/API/Document_Object_Model/Examples /fr/docs/Web/API/Document_Object_Model/Introduction_au_DOM /fr/docs/Web/API/Document_Object_Model/Introduction /fr/docs/Web/API/Document_Object_Model/Les_évènements_et_le_DOM /fr/docs/Web/API/Document_Object_Model/Events @@ -3891,6 +3891,9 @@ /fr/docs/Web/API/Node/innerText /fr/docs/Web/API/HTMLElement/innerText /fr/docs/Web/API/Node/nodePrincipal /fr/docs/conflicting/Web/API/Node_378aed5ed6869e50853edbc988cf9556 /fr/docs/Web/API/Node/rootNode /fr/docs/conflicting/Web/API/Node/getRootNode +/fr/docs/Web/API/PasswordCredential/additionalData /fr/docs/conflicting/Web/API/PasswordCredential +/fr/docs/Web/API/PasswordCredential/idName /fr/docs/conflicting/Web/API/PasswordCredential_cbf7b306e83a3f58ff06bccf89637c12 +/fr/docs/Web/API/PasswordCredential/passwordName /fr/docs/conflicting/Web/API/PasswordCredential_bc57d5dfa87242b4fb83497887124f41 /fr/docs/Web/API/Performance.now() /fr/docs/Web/API/Performance/now /fr/docs/Web/API/Pointer_events/gestes_pincer_zoom /fr/docs/Web/API/Pointer_events/Pinch_zoom_gestures /fr/docs/Web/API/RandomSource.getRandomValues /fr/docs/Web/API/Crypto/getRandomValues @@ -3999,7 +4002,7 @@ /fr/docs/Web/API/document.querySelector /fr/docs/Web/API/Document/querySelector /fr/docs/Web/API/document.referrer /fr/docs/Web/API/Document/referrer /fr/docs/Web/API/document.scripts /fr/docs/Web/API/Document/scripts -/fr/docs/Web/API/document.styleSheets /fr/docs/Web/API/DocumentOrShadowRoot/styleSheets +/fr/docs/Web/API/document.styleSheets /fr/docs/Web/API/Document/styleSheets /fr/docs/Web/API/event.defaultPrevented /fr/docs/Web/API/Event/defaultPrevented /fr/docs/Web/API/event.preventDefault /fr/docs/Web/API/Event/preventDefault /fr/docs/Web/API/navigator.doNotTrack /fr/docs/Web/API/Navigator/doNotTrack diff --git a/files/fr/_wikihistory.json b/files/fr/_wikihistory.json index 772741df2f..082086a96f 100644 --- a/files/fr/_wikihistory.json +++ b/files/fr/_wikihistory.json @@ -11813,24 +11813,12 @@ "SphinxKnight" ] }, - "Web/API/PasswordCredential/additionalData": { - "modified": "2020-10-15T22:15:45.161Z", - "contributors": [ - "SphinxKnight" - ] - }, "Web/API/PasswordCredential/iconURL": { "modified": "2020-10-15T22:15:45.183Z", "contributors": [ "SphinxKnight" ] }, - "Web/API/PasswordCredential/idName": { - "modified": "2020-10-15T22:15:37.132Z", - "contributors": [ - "SphinxKnight" - ] - }, "Web/API/PasswordCredential/name": { "modified": "2020-10-15T22:15:42.939Z", "contributors": [ @@ -11843,12 +11831,6 @@ "SphinxKnight" ] }, - "Web/API/PasswordCredential/passwordName": { - "modified": "2020-10-15T22:15:42.960Z", - "contributors": [ - "SphinxKnight" - ] - }, "Web/API/Payment_Request_API": { "modified": "2020-10-15T22:20:45.922Z", "contributors": [ @@ -45008,15 +44990,6 @@ "FredPl" ] }, - "Web/API/DocumentOrShadowRoot/styleSheets": { - "modified": "2019-03-23T23:06:00.949Z", - "contributors": [ - "a5er", - "fscholz", - "J.DMB", - "Nothus" - ] - }, "Web/API/HTMLElement/accessKey": { "modified": "2019-03-23T22:24:43.588Z", "contributors": [ @@ -46002,5 +45975,32 @@ "Delapouite", "Goofy" ] + }, + "Web/API/Document/styleSheets": { + "modified": "2019-03-23T23:06:00.949Z", + "contributors": [ + "a5er", + "fscholz", + "J.DMB", + "Nothus" + ] + }, + "conflicting/Web/API/PasswordCredential": { + "modified": "2020-10-15T22:15:45.161Z", + "contributors": [ + "SphinxKnight" + ] + }, + "conflicting/Web/API/PasswordCredential_cbf7b306e83a3f58ff06bccf89637c12": { + "modified": "2020-10-15T22:15:37.132Z", + "contributors": [ + "SphinxKnight" + ] + }, + "conflicting/Web/API/PasswordCredential_bc57d5dfa87242b4fb83497887124f41": { + "modified": "2020-10-15T22:15:42.960Z", + "contributors": [ + "SphinxKnight" + ] } } \ No newline at end of file diff --git a/files/fr/conflicting/web/api/passwordcredential/index.html b/files/fr/conflicting/web/api/passwordcredential/index.html new file mode 100644 index 0000000000..19a567dea9 --- /dev/null +++ b/files/fr/conflicting/web/api/passwordcredential/index.html @@ -0,0 +1,74 @@ +--- +title: PasswordCredential.additionalData +slug: conflicting/Web/API/PasswordCredential +tags: + - API + - Credential Management API + - PasswordCredential + - Propriété + - Reference +translation_of: Web/API/PasswordCredential/additionalData +original_slug: Web/API/PasswordCredential/additionalData +--- +

{{SeeCompatTable}}{{APIRef("")}}{{Deprecated_header}}

+ +

La propriété additionalData, rattachée à l'interface {{domxref("PasswordCredential")}}, est une instance de {{domxref("FormData")}} ou une instane de {{domxref("URLSearchParams")}} ou {{jsxref("null")}}.

+ +

Les données contenues dans l'objet associé seront ajoutées au corps de la requête et envoyées au point distant avec les informations d'authentification.

+ +

Syntaxe

+ +
passwordCredential.additionalData = formData
+formData = passwordCredential.additionalData
+passwordCredential.additionalData = urlSearchParams
+ulrSearchParams = passwordCredential.additionalData
+
+ +

Valeur

+ +

Une instance {{domxref("FormData")}} ou une instance {{domxref("URLSearchParams")}} ou {{jsxref("null")}}.

+ +

Exemples

+ +

Dans l'exemple suivant, on crée un objet {{domxref("FormData")}} auquel on ajoute un jeton CSRF. Ensuite, on stocke l'objet du formulaire dans le paramètre additionalData avant de l'envoyer au serveur avec un appel à {{domxref("fetch")}}.

+ +
// L'objet options a été créé au préalable
+navigator.credentials.get(options).then(function(creds) {
+  if (creds.type == 'password') {
+    var form = new FormData();
+    var csrf_token = document.querySelector('csrf_token').value;
+    form.append('csrf_token', csrf_token);
+
+    creds.additionalData = form;
+
+    fetch('https://www.example.com', {
+      method: 'POST',
+      credentials: creds
+    });
+  };
+});
+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationÉtatCommentaires
{{SpecName('Credential Management')}}{{Spec2('Credential Management')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.PasswordCredential.additionalData")}}

diff --git a/files/fr/conflicting/web/api/passwordcredential_bc57d5dfa87242b4fb83497887124f41/index.html b/files/fr/conflicting/web/api/passwordcredential_bc57d5dfa87242b4fb83497887124f41/index.html new file mode 100644 index 0000000000..e310393334 --- /dev/null +++ b/files/fr/conflicting/web/api/passwordcredential_bc57d5dfa87242b4fb83497887124f41/index.html @@ -0,0 +1,53 @@ +--- +title: PasswordCredential.passwordName +slug: conflicting/Web/API/PasswordCredential_bc57d5dfa87242b4fb83497887124f41 +tags: + - API + - Credential Management API + - PasswordCredential + - Propriété + - Reference +translation_of: Web/API/PasswordCredential/passwordName +original_slug: Web/API/PasswordCredential/passwordName +--- +

{{SeeCompatTable}}{{APIRef("")}}{{Deprecated_header}}

+ +

La propriété passwordName, rattachée à l'interface {{domxref("PasswordCredential")}}, est une chaîne de caractères {{domxref("USVString")}} qui indique le nom utilisé pour dénommer le champ relatif au mot de passe lors de l'envoi de l'objet courant au point d'accès distant avec {{domxref("fetch")}}. Par défaut, cette propriété vaut 'password' mais il est possible de la modifier afin qu'elle corresponde à la valeur attendue par le service distant.

+ +

Syntaxe

+ +
var passwordName = PasswordCredential.passwordName
+PasswordCredential.passwordName = "passcode"
+ +

Valeur

+ +

Une chaîne de caractères  {{domxref("USVString")}} qui représente le nom du champ pour le mot de passe. Ce nom sera utilisé lors de l'envoi de l'objet courant au point d'accès distant avec {{domxref("fetch")}}.

+ +

Exemples

+ +
// TBD
+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationÉtatCommentaires
{{SpecName('Credential Management')}}{{Spec2('Credential Management')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.PasswordCredential.passwordName")}}

diff --git a/files/fr/conflicting/web/api/passwordcredential_cbf7b306e83a3f58ff06bccf89637c12/index.html b/files/fr/conflicting/web/api/passwordcredential_cbf7b306e83a3f58ff06bccf89637c12/index.html new file mode 100644 index 0000000000..8b7273bccd --- /dev/null +++ b/files/fr/conflicting/web/api/passwordcredential_cbf7b306e83a3f58ff06bccf89637c12/index.html @@ -0,0 +1,51 @@ +--- +title: idName +slug: conflicting/Web/API/PasswordCredential_cbf7b306e83a3f58ff06bccf89637c12 +tags: + - API + - PasswordCredential + - Propriété + - Reference + - idName +translation_of: Web/API/PasswordCredential/idName +original_slug: Web/API/PasswordCredential/idName +--- +

{{SeeCompatTable}}{{APIRef("")}}{{Deprecated_header}}

+ +

La propriété idName de l'interface {{domxref("PasswordCredential")}} fournit une chaîne de caractères {{domxref("USVString")}} représentant le nom qui sera utilisé pour le champ d'identifiant, lorsqu'on envoie l'objet courant à un point d'accès distant when submitting the current object to a remote endpoint via {{domxref("fetch")}}. Par défaut, cette propriété vaut 'username', mais on peut la définir avec n'importe quelle valeur qui serait attendue de la part d'un service distant.

+ +

Syntaxe

+ +
var idName = PasswordCredential.idName
+PasswordCredential.idName = "userID"
+ +

Valeur

+ +

Une chaîne de caractères {{domxref("USVString")}} qui représente le nom utilisé pour le champ d'identifiant lorsqu'on envoie l'objet courant à un point distant avec {{domxref("fetch")}}.

+ +

Exemples

+ +
// TBD
+ +

Spécifications

+ + + + + + + + + + + + + + +
SpécificationÉtatCommentaires
{{SpecName('Credential Management')}}{{Spec2('Credential Management')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.PasswordCredential.idName")}}

diff --git a/files/fr/web/api/document/stylesheets/index.html b/files/fr/web/api/document/stylesheets/index.html new file mode 100644 index 0000000000..2965e4eb43 --- /dev/null +++ b/files/fr/web/api/document/stylesheets/index.html @@ -0,0 +1,57 @@ +--- +title: Document.styleSheets +slug: Web/API/Document/styleSheets +translation_of: Web/API/DocumentOrShadowRoot/styleSheets +translation_of_original: Web/API/Document/styleSheets +original_slug: Web/API/DocumentOrShadowRoot/styleSheets +--- +
{{APIRef}}
+ +
La propriété Document.styleSheets est en lecture seule et retourne une liste {{domxref("StyleSheetList")}} d'objets {{domxref("StyleSheet")}}, qui font référence à l'ensemble des feuilles de style contenues ou embarquées dans le document.
+ +
 
+ +

Syntaxe

+ +
var styleSheetList = document.styleSheets;
+
+ +

L'objet retourné est une liste {{domxref("StyleSheetList")}}.

+ +

Il s'agit d'une collection ordonnée d'objets {{domxref("StyleSheet")}}. styleSheetList.item(index) ou  styleSheetList{{ mediawiki.External('index') }} retourne un seul objet stylesheet par son index (index débute par 0).

+ +

Spécification

+ + + + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('CSSOM', '#dom-document-stylesheets', 'styleSheets')}}{{Spec2('CSSOM')}} 
{{SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-DocumentStyle-styleSheets', 'styleSheets')}}{{Spec2('DOM2 Style')}} 
+ +

Voir aussi

+ + + + diff --git a/files/fr/web/api/documentorshadowroot/stylesheets/index.html b/files/fr/web/api/documentorshadowroot/stylesheets/index.html deleted file mode 100644 index e61287ae60..0000000000 --- a/files/fr/web/api/documentorshadowroot/stylesheets/index.html +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: Document.styleSheets -slug: Web/API/DocumentOrShadowRoot/styleSheets -translation_of: Web/API/DocumentOrShadowRoot/styleSheets -translation_of_original: Web/API/Document/styleSheets -original_slug: Web/API/Document/styleSheets ---- -
{{APIRef}}
- -
La propriété Document.styleSheets est en lecture seule et retourne une liste {{domxref("StyleSheetList")}} d'objets {{domxref("StyleSheet")}}, qui font référence à l'ensemble des feuilles de style contenues ou embarquées dans le document.
- -
 
- -

Syntaxe

- -
var styleSheetList = document.styleSheets;
-
- -

L'objet retourné est une liste {{domxref("StyleSheetList")}}.

- -

Il s'agit d'une collection ordonnée d'objets {{domxref("StyleSheet")}}. styleSheetList.item(index) ou  styleSheetList{{ mediawiki.External('index') }} retourne un seul objet stylesheet par son index (index débute par 0).

- -

Spécification

- - - - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('CSSOM', '#dom-document-stylesheets', 'styleSheets')}}{{Spec2('CSSOM')}} 
{{SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-DocumentStyle-styleSheets', 'styleSheets')}}{{Spec2('DOM2 Style')}} 
- -

Voir aussi

- - - - diff --git a/files/fr/web/api/passwordcredential/additionaldata/index.html b/files/fr/web/api/passwordcredential/additionaldata/index.html deleted file mode 100644 index 48af22f69e..0000000000 --- a/files/fr/web/api/passwordcredential/additionaldata/index.html +++ /dev/null @@ -1,73 +0,0 @@ ---- -title: PasswordCredential.additionalData -slug: Web/API/PasswordCredential/additionalData -tags: - - API - - Credential Management API - - PasswordCredential - - Propriété - - Reference -translation_of: Web/API/PasswordCredential/additionalData ---- -

{{SeeCompatTable}}{{APIRef("")}}{{Deprecated_header}}

- -

La propriété additionalData, rattachée à l'interface {{domxref("PasswordCredential")}}, est une instance de {{domxref("FormData")}} ou une instane de {{domxref("URLSearchParams")}} ou {{jsxref("null")}}.

- -

Les données contenues dans l'objet associé seront ajoutées au corps de la requête et envoyées au point distant avec les informations d'authentification.

- -

Syntaxe

- -
passwordCredential.additionalData = formData
-formData = passwordCredential.additionalData
-passwordCredential.additionalData = urlSearchParams
-ulrSearchParams = passwordCredential.additionalData
-
- -

Valeur

- -

Une instance {{domxref("FormData")}} ou une instance {{domxref("URLSearchParams")}} ou {{jsxref("null")}}.

- -

Exemples

- -

Dans l'exemple suivant, on crée un objet {{domxref("FormData")}} auquel on ajoute un jeton CSRF. Ensuite, on stocke l'objet du formulaire dans le paramètre additionalData avant de l'envoyer au serveur avec un appel à {{domxref("fetch")}}.

- -
// L'objet options a été créé au préalable
-navigator.credentials.get(options).then(function(creds) {
-  if (creds.type == 'password') {
-    var form = new FormData();
-    var csrf_token = document.querySelector('csrf_token').value;
-    form.append('csrf_token', csrf_token);
-
-    creds.additionalData = form;
-
-    fetch('https://www.example.com', {
-      method: 'POST',
-      credentials: creds
-    });
-  };
-});
- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationÉtatCommentaires
{{SpecName('Credential Management')}}{{Spec2('Credential Management')}}Définition initiale.
- -

Compatibilité des navigateurs

- - - -

{{Compat("api.PasswordCredential.additionalData")}}

diff --git a/files/fr/web/api/passwordcredential/idname/index.html b/files/fr/web/api/passwordcredential/idname/index.html deleted file mode 100644 index 61b654c9ea..0000000000 --- a/files/fr/web/api/passwordcredential/idname/index.html +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: idName -slug: Web/API/PasswordCredential/idName -tags: - - API - - PasswordCredential - - Propriété - - Reference - - idName -translation_of: Web/API/PasswordCredential/idName ---- -

{{SeeCompatTable}}{{APIRef("")}}{{Deprecated_header}}

- -

La propriété idName de l'interface {{domxref("PasswordCredential")}} fournit une chaîne de caractères {{domxref("USVString")}} représentant le nom qui sera utilisé pour le champ d'identifiant, lorsqu'on envoie l'objet courant à un point d'accès distant when submitting the current object to a remote endpoint via {{domxref("fetch")}}. Par défaut, cette propriété vaut 'username', mais on peut la définir avec n'importe quelle valeur qui serait attendue de la part d'un service distant.

- -

Syntaxe

- -
var idName = PasswordCredential.idName
-PasswordCredential.idName = "userID"
- -

Valeur

- -

Une chaîne de caractères {{domxref("USVString")}} qui représente le nom utilisé pour le champ d'identifiant lorsqu'on envoie l'objet courant à un point distant avec {{domxref("fetch")}}.

- -

Exemples

- -
// TBD
- -

Spécifications

- - - - - - - - - - - - - - -
SpécificationÉtatCommentaires
{{SpecName('Credential Management')}}{{Spec2('Credential Management')}}Définition initiale.
- -

Compatibilité des navigateurs

- - - -

{{Compat("api.PasswordCredential.idName")}}

diff --git a/files/fr/web/api/passwordcredential/passwordname/index.html b/files/fr/web/api/passwordcredential/passwordname/index.html deleted file mode 100644 index d1399f8d18..0000000000 --- a/files/fr/web/api/passwordcredential/passwordname/index.html +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: PasswordCredential.passwordName -slug: Web/API/PasswordCredential/passwordName -tags: - - API - - Credential Management API - - PasswordCredential - - Propriété - - Reference -translation_of: Web/API/PasswordCredential/passwordName ---- -

{{SeeCompatTable}}{{APIRef("")}}{{Deprecated_header}}

- -

La propriété passwordName, rattachée à l'interface {{domxref("PasswordCredential")}}, est une chaîne de caractères {{domxref("USVString")}} qui indique le nom utilisé pour dénommer le champ relatif au mot de passe lors de l'envoi de l'objet courant au point d'accès distant avec {{domxref("fetch")}}. Par défaut, cette propriété vaut 'password' mais il est possible de la modifier afin qu'elle corresponde à la valeur attendue par le service distant.

- -

Syntaxe

- -
var passwordName = PasswordCredential.passwordName
-PasswordCredential.passwordName = "passcode"
- -

Valeur

- -

Une chaîne de caractères  {{domxref("USVString")}} qui représente le nom du champ pour le mot de passe. Ce nom sera utilisé lors de l'envoi de l'objet courant au point d'accès distant avec {{domxref("fetch")}}.

- -

Exemples

- -
// TBD
- -

Spécifications

- - - - - - - - - - - - - - - - -
SpécificationÉtatCommentaires
{{SpecName('Credential Management')}}{{Spec2('Credential Management')}}Définition initiale.
- -

Compatibilité des navigateurs

- - - -

{{Compat("api.PasswordCredential.passwordName")}}

diff --git a/files/it/_redirects.txt b/files/it/_redirects.txt index b49edebd93..2e2a1555d1 100644 --- a/files/it/_redirects.txt +++ b/files/it/_redirects.txt @@ -103,7 +103,7 @@ /it/docs/DOM/document.namespaceURI /it/docs/Web/API/Node/namespaceURI /it/docs/DOM/document.open /it/docs/Web/API/Document/open /it/docs/DOM/document.referrer /it/docs/Web/API/Document/referrer -/it/docs/DOM/document.styleSheets /it/docs/Web/API/DocumentOrShadowRoot/styleSheets +/it/docs/DOM/document.styleSheets /it/docs/Web/API/Document/styleSheets /it/docs/DOM/document.title /it/docs/Web/API/Document/title /it/docs/DOM/document.width /it/docs/Web/API/Document/width /it/docs/DOM/element /it/docs/Web/API/Element @@ -249,7 +249,7 @@ /it/docs/DOM:document.namespaceURI /it/docs/Web/API/Node/namespaceURI /it/docs/DOM:document.open /it/docs/Web/API/Document/open /it/docs/DOM:document.referrer /it/docs/Web/API/Document/referrer -/it/docs/DOM:document.styleSheets /it/docs/Web/API/DocumentOrShadowRoot/styleSheets +/it/docs/DOM:document.styleSheets /it/docs/Web/API/Document/styleSheets /it/docs/DOM:document.title /it/docs/Web/API/Document/title /it/docs/DOM:document.width /it/docs/Web/API/Document/width /it/docs/DOM:element /it/docs/Web/API/Element @@ -492,7 +492,7 @@ /it/docs/Usare_valori_URL_per_la_proprietà_cursor /it/docs/Web/CSS/CSS_Basic_User_Interface/Using_URL_values_for_the_cursor_property /it/docs/Web/API/Document/firstChild /it/docs/conflicting/Web/API/Node/firstChild /it/docs/Web/API/Document/namespaceURI /it/docs/Web/API/Node/namespaceURI -/it/docs/Web/API/Document/styleSheets /it/docs/Web/API/DocumentOrShadowRoot/styleSheets +/it/docs/Web/API/DocumentOrShadowRoot/styleSheets /it/docs/Web/API/Document/styleSheets /it/docs/Web/API/Document_Object_Model/Introduzione /it/docs/Web/API/Document_Object_Model/Introduction /it/docs/Web/API/Element.getElementsByTagName /it/docs/Web/API/Element/getElementsByTagName /it/docs/Web/API/Element.scrollHeight /it/docs/Web/API/Element/scrollHeight diff --git a/files/it/_wikihistory.json b/files/it/_wikihistory.json index ac1d29eaed..0f60d2b45a 100644 --- a/files/it/_wikihistory.json +++ b/files/it/_wikihistory.json @@ -5847,14 +5847,6 @@ "Federico" ] }, - "Web/API/DocumentOrShadowRoot/styleSheets": { - "modified": "2019-03-23T23:46:31.284Z", - "contributors": [ - "teoli", - "khalid32", - "Federico" - ] - }, "Web/API/MouseEvent/altKey": { "modified": "2019-03-23T23:46:44.336Z", "contributors": [ @@ -5994,5 +5986,13 @@ "contributors": [ "teoli" ] + }, + "Web/API/Document/styleSheets": { + "modified": "2019-03-23T23:46:31.284Z", + "contributors": [ + "teoli", + "khalid32", + "Federico" + ] } } \ No newline at end of file diff --git a/files/it/web/api/document/stylesheets/index.html b/files/it/web/api/document/stylesheets/index.html new file mode 100644 index 0000000000..36e27c66c6 --- /dev/null +++ b/files/it/web/api/document/stylesheets/index.html @@ -0,0 +1,45 @@ +--- +title: document.styleSheets +slug: Web/API/Document/styleSheets +tags: + - DOM + - Gecko + - Reference_del_DOM_di_Gecko + - Tutte_le_categorie +translation_of: Web/API/DocumentOrShadowRoot/styleSheets +translation_of_original: Web/API/Document/styleSheets +original_slug: Web/API/DocumentOrShadowRoot/styleSheets +--- +

{{APIRef("DOM")}}

+ +

Restituisce una lista di oggetti stylesheet per i fogli stile esplicitamente linkati o inclusi nel documento.

+ +

Proprietà

+ +

styleSheetList.length - restituisce il numero di oggetti stylesheet contenuti nell'oggetto.

+ +

Sintassi

+ +
styleSheetList =
+document.styleSheets
+
+ +

L'oggetto restituito è di tipo StyleSheetList.

+ +

E' una collezione ordinata di oggetti stylesheet. + styleSheetList + .item( + + indice + ) o semplicemente + styleSheetList + {{ mediawiki.external(' + + indice + ') }} restituisce un singolo oggetto stylesheet indicato dall'indice (indice comincia da 0).

+ +

Specifiche

+ +

DOM Level 2 Style: styleSheets

+ +

{{ languages( { "ja": "ja/DOM/document.styleSheets", "pl": "pl/DOM/document.styleSheets" } ) }}

diff --git a/files/it/web/api/documentorshadowroot/stylesheets/index.html b/files/it/web/api/documentorshadowroot/stylesheets/index.html deleted file mode 100644 index 95f590715d..0000000000 --- a/files/it/web/api/documentorshadowroot/stylesheets/index.html +++ /dev/null @@ -1,45 +0,0 @@ ---- -title: document.styleSheets -slug: Web/API/DocumentOrShadowRoot/styleSheets -tags: - - DOM - - Gecko - - Reference_del_DOM_di_Gecko - - Tutte_le_categorie -translation_of: Web/API/DocumentOrShadowRoot/styleSheets -translation_of_original: Web/API/Document/styleSheets -original_slug: Web/API/Document/styleSheets ---- -

{{APIRef("DOM")}}

- -

Restituisce una lista di oggetti stylesheet per i fogli stile esplicitamente linkati o inclusi nel documento.

- -

Proprietà

- -

styleSheetList.length - restituisce il numero di oggetti stylesheet contenuti nell'oggetto.

- -

Sintassi

- -
styleSheetList =
-document.styleSheets
-
- -

L'oggetto restituito è di tipo StyleSheetList.

- -

E' una collezione ordinata di oggetti stylesheet. - styleSheetList - .item( - - indice - ) o semplicemente - styleSheetList - {{ mediawiki.external(' - - indice - ') }} restituisce un singolo oggetto stylesheet indicato dall'indice (indice comincia da 0).

- -

Specifiche

- -

DOM Level 2 Style: styleSheets

- -

{{ languages( { "ja": "ja/DOM/document.styleSheets", "pl": "pl/DOM/document.styleSheets" } ) }}

diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index bd643a098e..b8f8ea76d9 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -91,7 +91,7 @@ /ja/docs/API/Document/referrer /ja/docs/Web/API/Document/referrer /ja/docs/API/Document/scripts /ja/docs/Web/API/Document/scripts /ja/docs/API/Document/scrollingElement /ja/docs/Web/API/Document/scrollingElement -/ja/docs/API/Document/styleSheets /ja/docs/Web/API/DocumentOrShadowRoot/styleSheets +/ja/docs/API/Document/styleSheets /ja/docs/Web/API/Document/styleSheets /ja/docs/API/Document/title /ja/docs/Web/API/Document/title /ja/docs/API/Document/tooltipNode /ja/docs/Web/API/Document/tooltipNode /ja/docs/API/Document/vlinkColor /ja/docs/Web/API/Document/vlinkColor @@ -1462,7 +1462,7 @@ /ja/docs/DOM/document.querySelectorAll /ja/docs/Web/API/Document/querySelectorAll /ja/docs/DOM/document.readyState /ja/docs/Web/API/Document/readyState /ja/docs/DOM/document.referrer /ja/docs/Web/API/Document/referrer -/ja/docs/DOM/document.styleSheets /ja/docs/Web/API/DocumentOrShadowRoot/styleSheets +/ja/docs/DOM/document.styleSheets /ja/docs/Web/API/Document/styleSheets /ja/docs/DOM/document.title /ja/docs/Web/API/Document/title /ja/docs/DOM/document.tooltipNode /ja/docs/Web/API/Document/tooltipNode /ja/docs/DOM/document.vlinkColor /ja/docs/Web/API/Document/vlinkColor @@ -1781,7 +1781,7 @@ /ja/docs/DOM:document.importNode /ja/docs/Web/API/Document/importNode /ja/docs/DOM:document.links /ja/docs/Web/API/Document/links /ja/docs/DOM:document.open /ja/docs/Web/API/Document/open -/ja/docs/DOM:document.styleSheets /ja/docs/Web/API/DocumentOrShadowRoot/styleSheets +/ja/docs/DOM:document.styleSheets /ja/docs/Web/API/Document/styleSheets /ja/docs/DOM:document.write /ja/docs/Web/API/Document/write /ja/docs/DOM:document.writeln /ja/docs/Web/API/Document/writeln /ja/docs/DOM:element /ja/docs/Web/API/Element @@ -3751,11 +3751,13 @@ /ja/docs/Web/API/Document/getSelection /ja/docs/conflicting/Web/API/DocumentOrShadowRoot/getSelection /ja/docs/Web/API/Document/inputEncoding /ja/docs/conflicting/Web/API/Document/characterSet /ja/docs/Web/API/Document/onselectionchange /ja/docs/Web/API/GlobalEventHandlers/onselectionchange -/ja/docs/Web/API/Document/styleSheets /ja/docs/Web/API/DocumentOrShadowRoot/styleSheets /ja/docs/Web/API/DocumentOrShadowRoot/activeElement /ja/docs/Web/API/Document/activeElement /ja/docs/Web/API/DocumentOrShadowRoot/fullscreenElement /ja/docs/Web/API/Document/fullscreenElement +/ja/docs/Web/API/DocumentOrShadowRoot/msElementsFromRect /ja/docs/orphaned/Web/API/DocumentOrShadowRoot/msElementsFromRect /ja/docs/Web/API/DocumentOrShadowRoot/nodeFromPoint /ja/docs/conflicting/Web/API/DocumentOrShadowRoot /ja/docs/Web/API/DocumentOrShadowRoot/nodesFromPoint /ja/docs/conflicting/Web/API/DocumentOrShadowRoot_20ea0e1d91453a020aad3a16dbce16f1 +/ja/docs/Web/API/DocumentOrShadowRoot/pointerLockElement /ja/docs/Web/API/Document/pointerLockElement +/ja/docs/Web/API/DocumentOrShadowRoot/styleSheets /ja/docs/Web/API/Document/styleSheets /ja/docs/Web/API/Document_Object_Model/Preface /ja/docs/conflicting/Web/API/Document_Object_Model_8435a25d5137b436d5d7161e1b813c02 /ja/docs/Web/API/Element.contentEditable /ja/docs/Web/API/HTMLElement/contentEditable /ja/docs/Web/API/Element.isContentEditable /ja/docs/Web/API/HTMLElement/isContentEditable @@ -4053,7 +4055,7 @@ /ja/docs/Web/API/document.querySelectorAll /ja/docs/Web/API/Document/querySelectorAll /ja/docs/Web/API/document.referrer /ja/docs/Web/API/Document/referrer /ja/docs/Web/API/document.scripts /ja/docs/Web/API/Document/scripts -/ja/docs/Web/API/document.styleSheets /ja/docs/Web/API/DocumentOrShadowRoot/styleSheets +/ja/docs/Web/API/document.styleSheets /ja/docs/Web/API/Document/styleSheets /ja/docs/Web/API/document.title /ja/docs/Web/API/Document/title /ja/docs/Web/API/document.tooltipNode /ja/docs/Web/API/Document/tooltipNode /ja/docs/Web/API/document.vlinkColor /ja/docs/Web/API/Document/vlinkColor diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index d03b74e894..a34c7be177 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -12749,24 +12749,6 @@ "mfuji09" ] }, - "Web/API/DocumentOrShadowRoot/msElementsFromRect": { - "modified": "2020-08-15T02:28:38.346Z", - "contributors": [ - "eltociear" - ] - }, - "Web/API/DocumentOrShadowRoot/pointerLockElement": { - "modified": "2020-10-15T22:25:33.509Z", - "contributors": [ - "mfuji09" - ] - }, - "Web/API/DocumentOrShadowRoot/styleSheets": { - "modified": "2020-10-15T22:33:02.264Z", - "contributors": [ - "eltociear" - ] - }, "Web/API/DocumentType": { "modified": "2020-10-15T22:09:56.256Z", "contributors": [ @@ -53496,5 +53478,23 @@ "contributors": [ "silverskyvicto" ] + }, + "orphaned/Web/API/DocumentOrShadowRoot/msElementsFromRect": { + "modified": "2020-08-15T02:28:38.346Z", + "contributors": [ + "eltociear" + ] + }, + "Web/API/Document/pointerLockElement": { + "modified": "2020-10-15T22:25:33.509Z", + "contributors": [ + "mfuji09" + ] + }, + "Web/API/Document/styleSheets": { + "modified": "2020-10-15T22:33:02.264Z", + "contributors": [ + "eltociear" + ] } } \ No newline at end of file diff --git a/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html b/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html new file mode 100644 index 0000000000..a9c431e07a --- /dev/null +++ b/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html @@ -0,0 +1,55 @@ +--- +title: DocumentOrShadowRoot.msElementsFromRect() +slug: orphaned/Web/API/DocumentOrShadowRoot/msElementsFromRect +tags: + - API + - API:Microsoft Extensions + - Method + - Non-standard + - Reference + - msElementsFromRect +translation_of: Web/API/DocumentOrShadowRoot/msElementsFromRect +original_slug: Web/API/DocumentOrShadowRoot/msElementsFromRect +--- +
{{APIRef("Microsoft Extensions")}}{{Non-standard_Header}}
+ +

msElementsFromRect メソッドは、left、 top、 width、 heighで定義された四角形の下にある要素のノードリストを返します。

+ +

この独自プロパティは Internet Explorer と Microsoft Edge に固有のものです。

+ +

構文

+ +
object.msElementsFromRect(left, top, width, height, retVal)
+
+ +

パラメータ

+ +
+
left [in]
+
型: 浮動小数点
+
top[in]
+
型: 浮動小数点
+
width[in]
+
型: 浮動小数点
+
height [in]
+
型: 浮動小数点
+
retVal [out, reval]
+
型: ノードリスト
+
+ +

+ +

特定のポイントの下にある全ての要素を検索するには、 msElementsFromPoint(x, y) を使用します。長方形を交差する全ての要素を見つけるには、 msElementsFromRect(top, left, width, height) を使用します。

+ +
var nodeList = document.msElementsFromRect(x,y,width,height)
+var nodeList = document.msElementsFromPoint(x,y)
+
+ +

返された nodeList には z-index でソートされているため、要素の相対的なスタック順序を確認できます。

+ +

関連項目

+ + diff --git a/files/ja/web/api/document/pointerlockelement/index.html b/files/ja/web/api/document/pointerlockelement/index.html new file mode 100644 index 0000000000..6b6afcd8e5 --- /dev/null +++ b/files/ja/web/api/document/pointerlockelement/index.html @@ -0,0 +1,61 @@ +--- +title: DocumentOrShadowRoot.pointerLockElement +slug: Web/API/Document/pointerLockElement +tags: + - API + - DOM + - Document + - Property + - Reference + - ShadowRoot + - mouse lock + - プロパティ + - マウスロック +translation_of: Web/API/DocumentOrShadowRoot/pointerLockElement +original_slug: Web/API/DocumentOrShadowRoot/pointerLockElement +--- +
{{APIRef("DOM")}}
+ +

pointerLockElement は {{domxref("Document")}} および {{domxref("ShadowRoot")}} インターフェイスのプロパティで、要素をポインターがロックされている間のマウスイベントの対象として設定します。ロック待ち状態の場合、ポインターがロックされていない場合、対象が他の文書にある場合は null になります。

+ +

構文

+ +
var element = document.pointerLockElement;
+
+ +

返値

+ +

{{domxref("Element")}} または null

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('Pointer Lock','#extensions-to-the-documentorshadowroot-mixin','pointerLockElement')}}{{Spec2('Pointer Lock')}}Document インターフェイスを拡張
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.DocumentOrShadowRoot.pointerLockElement")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/document/stylesheets/index.html b/files/ja/web/api/document/stylesheets/index.html new file mode 100644 index 0000000000..8a793da1fc --- /dev/null +++ b/files/ja/web/api/document/stylesheets/index.html @@ -0,0 +1,62 @@ +--- +title: DocumentOrShadowRoot.styleSheets +slug: Web/API/Document/styleSheets +tags: + - API + - Document + - DocumentOrShadowRoot + - Property + - Reference + - ShadowRoot + - Stylesheets + - shadow dom +translation_of: Web/API/DocumentOrShadowRoot/styleSheets +original_slug: Web/API/DocumentOrShadowRoot/styleSheets +--- +
{{SeeCompatTable}}{{APIRef("Shadow DOM")}}
+ +

{{domxref("DocumentOrShadowRoot")}} インターフェイスの styleSheets 読み取り専用プロパティは、 {{domxref('CSSStyleSheet')}} オブジェクトの {{domxref('StyleSheetList')}} を返します。ドキュメントに明示的にリンクまたは埋め込まれたスタイルシートの場合。

+ +

+ +
function getStyleSheet(unique_title) {
+  for (var i=0; i<document.styleSheets.length; i++) {
+    var sheet = document.styleSheets[i];
+    if (sheet.title == unique_title) {
+      return sheet;
+    }
+  }
+}
+
+ +

Notes

+ +

返されるリストは次の順序で並べられます:

+ + + +

仕様

+ + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName('Shadow DOM','#extensions-to-the-documentorshadowroot-mixin','DocumentOrShadowRoot')}}{{Spec2('Shadow DOM')}}初回定義
+ +

ブラウザー実装状況

+ + + +

{{Compat("api.DocumentOrShadowRoot.styleSheets")}}

diff --git a/files/ja/web/api/documentorshadowroot/mselementsfromrect/index.html b/files/ja/web/api/documentorshadowroot/mselementsfromrect/index.html deleted file mode 100644 index 57d9c2b7b7..0000000000 --- a/files/ja/web/api/documentorshadowroot/mselementsfromrect/index.html +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: DocumentOrShadowRoot.msElementsFromRect() -slug: Web/API/DocumentOrShadowRoot/msElementsFromRect -tags: - - API - - 'API:Microsoft Extensions' - - Method - - Non-standard - - Reference - - msElementsFromRect -translation_of: Web/API/DocumentOrShadowRoot/msElementsFromRect ---- -
{{APIRef("Microsoft Extensions")}}{{Non-standard_Header}}
- -

msElementsFromRect メソッドは、left、 top、 width、 heighで定義された四角形の下にある要素のノードリストを返します。

- -

この独自プロパティは Internet Explorer と Microsoft Edge に固有のものです。

- -

構文

- -
object.msElementsFromRect(left, top, width, height, retVal)
-
- -

パラメータ

- -
-
left [in]
-
型: 浮動小数点
-
top[in]
-
型: 浮動小数点
-
width[in]
-
型: 浮動小数点
-
height [in]
-
型: 浮動小数点
-
retVal [out, reval]
-
型: ノードリスト
-
- -

- -

特定のポイントの下にある全ての要素を検索するには、 msElementsFromPoint(x, y) を使用します。長方形を交差する全ての要素を見つけるには、 msElementsFromRect(top, left, width, height) を使用します。

- -
var nodeList = document.msElementsFromRect(x,y,width,height)
-var nodeList = document.msElementsFromPoint(x,y)
-
- -

返された nodeList には z-index でソートされているため、要素の相対的なスタック順序を確認できます。

- -

関連項目

- - diff --git a/files/ja/web/api/documentorshadowroot/pointerlockelement/index.html b/files/ja/web/api/documentorshadowroot/pointerlockelement/index.html deleted file mode 100644 index 5806f9344e..0000000000 --- a/files/ja/web/api/documentorshadowroot/pointerlockelement/index.html +++ /dev/null @@ -1,60 +0,0 @@ ---- -title: DocumentOrShadowRoot.pointerLockElement -slug: Web/API/DocumentOrShadowRoot/pointerLockElement -tags: - - API - - DOM - - Document - - Property - - Reference - - ShadowRoot - - mouse lock - - プロパティ - - マウスロック -translation_of: Web/API/DocumentOrShadowRoot/pointerLockElement ---- -
{{APIRef("DOM")}}
- -

pointerLockElement は {{domxref("Document")}} および {{domxref("ShadowRoot")}} インターフェイスのプロパティで、要素をポインターがロックされている間のマウスイベントの対象として設定します。ロック待ち状態の場合、ポインターがロックされていない場合、対象が他の文書にある場合は null になります。

- -

構文

- -
var element = document.pointerLockElement;
-
- -

返値

- -

{{domxref("Element")}} または null

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('Pointer Lock','#extensions-to-the-documentorshadowroot-mixin','pointerLockElement')}}{{Spec2('Pointer Lock')}}Document インターフェイスを拡張
- -

ブラウザーの互換性

- - - -

{{Compat("api.DocumentOrShadowRoot.pointerLockElement")}}

- -

関連情報

- - diff --git a/files/ja/web/api/documentorshadowroot/stylesheets/index.html b/files/ja/web/api/documentorshadowroot/stylesheets/index.html deleted file mode 100644 index 48a1e7a169..0000000000 --- a/files/ja/web/api/documentorshadowroot/stylesheets/index.html +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: DocumentOrShadowRoot.styleSheets -slug: Web/API/DocumentOrShadowRoot/styleSheets -tags: - - API - - Document - - DocumentOrShadowRoot - - Property - - Reference - - ShadowRoot - - Stylesheets - - shadow dom -translation_of: Web/API/DocumentOrShadowRoot/styleSheets ---- -
{{SeeCompatTable}}{{APIRef("Shadow DOM")}}
- -

{{domxref("DocumentOrShadowRoot")}} インターフェイスの styleSheets 読み取り専用プロパティは、 {{domxref('CSSStyleSheet')}} オブジェクトの {{domxref('StyleSheetList')}} を返します。ドキュメントに明示的にリンクまたは埋め込まれたスタイルシートの場合。

- -

- -
function getStyleSheet(unique_title) {
-  for (var i=0; i<document.styleSheets.length; i++) {
-    var sheet = document.styleSheets[i];
-    if (sheet.title == unique_title) {
-      return sheet;
-    }
-  }
-}
-
- -

Notes

- -

返されるリストは次の順序で並べられます:

- - - -

仕様

- - - - - - - - - - - - - - -
仕様ステータス備考
{{SpecName('Shadow DOM','#extensions-to-the-documentorshadowroot-mixin','DocumentOrShadowRoot')}}{{Spec2('Shadow DOM')}}初回定義
- -

ブラウザー実装状況

- - - -

{{Compat("api.DocumentOrShadowRoot.styleSheets")}}

diff --git a/files/ko/_redirects.txt b/files/ko/_redirects.txt index 3bd8a48519..256c8c220a 100644 --- a/files/ko/_redirects.txt +++ b/files/ko/_redirects.txt @@ -628,6 +628,7 @@ /ko/docs/Web/API/Document/drag_이벤트 /ko/docs/Web/API/Document/drag_event /ko/docs/Web/API/Document/getSelection /ko/docs/Web/API/DocumentOrShadowRoot/getSelection /ko/docs/Web/API/DocumentOrShadowRoot/activeElement /ko/docs/Web/API/Document/activeElement +/ko/docs/Web/API/DocumentOrShadowRoot/styleSheets /ko/docs/Web/API/Document/styleSheets /ko/docs/Web/API/Document_Object_Model/Preface /ko/docs/Web/API/Document_Object_Model /ko/docs/Web/API/Document_Object_Model/소개 /ko/docs/Web/API/Document_Object_Model/Introduction /ko/docs/Web/API/Document_Object_Model/예제 /ko/docs/Web/API/Document_Object_Model/Examples diff --git a/files/ko/_wikihistory.json b/files/ko/_wikihistory.json index 036383c9bf..4fda3210dc 100644 --- a/files/ko/_wikihistory.json +++ b/files/ko/_wikihistory.json @@ -3620,13 +3620,6 @@ "Sheppy" ] }, - "Web/API/DocumentOrShadowRoot/styleSheets": { - "modified": "2020-10-15T22:11:37.061Z", - "contributors": [ - "alattalatta", - "DeadIntegral" - ] - }, "Web/API/DocumentType": { "modified": "2020-10-15T22:10:02.690Z", "contributors": [ @@ -18704,5 +18697,12 @@ "contributors": [ "connorshea" ] + }, + "Web/API/Document/styleSheets": { + "modified": "2020-10-15T22:11:37.061Z", + "contributors": [ + "alattalatta", + "DeadIntegral" + ] } } \ No newline at end of file diff --git a/files/ko/web/api/document/stylesheets/index.html b/files/ko/web/api/document/stylesheets/index.html new file mode 100644 index 0000000000..326d92d32a --- /dev/null +++ b/files/ko/web/api/document/stylesheets/index.html @@ -0,0 +1,58 @@ +--- +title: DocumentOrShadowRoot.styleSheets +slug: Web/API/Document/styleSheets +tags: + - API + - Document + - Propert + - Reference +translation_of: Web/API/DocumentOrShadowRoot/styleSheets +original_slug: Web/API/DocumentOrShadowRoot/styleSheets +--- +
{{SeeCompatTable}}{{APIRef("Shadow DOM")}}
+ +

{{domxref("DocumentOrShadowRoot")}} 인터페이스의 styleSheets 읽기 전용 속성은 문서에서 명시적으로 링크했거나, 안에 포함된 스타일시트에 대한 {{domxref('CSSStyleSheet')}} 객체의 {{domxref('StyleSheetList')}}를 반환합니다.

+ +

예제

+ +
function getStyleSheet(unique_title) {
+  for(var i=0; i<document.styleSheets.length; i++) {
+    var sheet = document.styleSheets[i];
+    if(sheet.title == unique_title) {
+      return sheet;
+    }
+  }
+}
+
+ +

참고

+ +

반환 된 목록은 다음과 같이 정렬됩니다:

+ + + +

명세

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Shadow DOM','#extensions-to-the-documentorshadowroot-mixin','DocumentOrShadowRoot')}}{{Spec2('Shadow DOM')}}Initial definition.
+ +

브라우저 호환성

+ + + +

{{Compat("api.DocumentOrShadowRoot.styleSheets")}}

diff --git a/files/ko/web/api/documentorshadowroot/stylesheets/index.html b/files/ko/web/api/documentorshadowroot/stylesheets/index.html deleted file mode 100644 index cf6e1c38ce..0000000000 --- a/files/ko/web/api/documentorshadowroot/stylesheets/index.html +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: DocumentOrShadowRoot.styleSheets -slug: Web/API/DocumentOrShadowRoot/styleSheets -tags: - - API - - Document - - Propert - - Reference -translation_of: Web/API/DocumentOrShadowRoot/styleSheets ---- -
{{SeeCompatTable}}{{APIRef("Shadow DOM")}}
- -

{{domxref("DocumentOrShadowRoot")}} 인터페이스의 styleSheets 읽기 전용 속성은 문서에서 명시적으로 링크했거나, 안에 포함된 스타일시트에 대한 {{domxref('CSSStyleSheet')}} 객체의 {{domxref('StyleSheetList')}}를 반환합니다.

- -

예제

- -
function getStyleSheet(unique_title) {
-  for(var i=0; i<document.styleSheets.length; i++) {
-    var sheet = document.styleSheets[i];
-    if(sheet.title == unique_title) {
-      return sheet;
-    }
-  }
-}
-
- -

참고

- -

반환 된 목록은 다음과 같이 정렬됩니다:

- - - -

명세

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('Shadow DOM','#extensions-to-the-documentorshadowroot-mixin','DocumentOrShadowRoot')}}{{Spec2('Shadow DOM')}}Initial definition.
- -

브라우저 호환성

- - - -

{{Compat("api.DocumentOrShadowRoot.styleSheets")}}

diff --git a/files/pl/_redirects.txt b/files/pl/_redirects.txt index 46e052f080..d6d5ec42e2 100644 --- a/files/pl/_redirects.txt +++ b/files/pl/_redirects.txt @@ -361,7 +361,7 @@ /pl/docs/DOM/document.open /pl/docs/Web/API/Document/open /pl/docs/DOM/document.plugins /pl/docs/Web/API/Document/plugins /pl/docs/DOM/document.referrer /pl/docs/Web/API/Document/referrer -/pl/docs/DOM/document.styleSheets /pl/docs/Web/API/DocumentOrShadowRoot/styleSheets +/pl/docs/DOM/document.styleSheets /pl/docs/Web/API/Document/styleSheets /pl/docs/DOM/document.title /pl/docs/Web/API/Document/title /pl/docs/DOM/document.vlinkColor /pl/docs/Web/API/Document/vlinkColor /pl/docs/DOM/document.width /pl/docs/Web/API/Document/width @@ -609,7 +609,7 @@ /pl/docs/DOM:document.open /pl/docs/Web/API/Document/open /pl/docs/DOM:document.plugins /pl/docs/Web/API/Document/plugins /pl/docs/DOM:document.referrer /pl/docs/Web/API/Document/referrer -/pl/docs/DOM:document.styleSheets /pl/docs/Web/API/DocumentOrShadowRoot/styleSheets +/pl/docs/DOM:document.styleSheets /pl/docs/Web/API/Document/styleSheets /pl/docs/DOM:document.title /pl/docs/Web/API/Document/title /pl/docs/DOM:document.vlinkColor /pl/docs/Web/API/Document/vlinkColor /pl/docs/DOM:document.width /pl/docs/Web/API/Document/width @@ -1929,8 +1929,8 @@ /pl/docs/Web/API/Canvas_API/Tutorial/rysowanie_ksztaltow /pl/docs/Web/API/Canvas_API/Tutorial/Drawing_shapes /pl/docs/Web/API/Document/firstChild /pl/docs/conflicting/Web/API/Node/firstChild /pl/docs/Web/API/Document/namespaceURI /pl/docs/conflicting/Web/API/Node/namespaceURI -/pl/docs/Web/API/Document/styleSheets /pl/docs/Web/API/DocumentOrShadowRoot/styleSheets /pl/docs/Web/API/DocumentOrShadowRoot/activeElement /pl/docs/Web/API/Document/activeElement +/pl/docs/Web/API/DocumentOrShadowRoot/styleSheets /pl/docs/Web/API/Document/styleSheets /pl/docs/Web/API/Element/addEventListener /pl/docs/Web/API/EventTarget/addEventListener /pl/docs/Web/API/Element/appendChild /pl/docs/Web/API/Node/appendChild /pl/docs/Web/API/Element/blur /pl/docs/Web/API/HTMLOrForeignElement/blur diff --git a/files/pl/_wikihistory.json b/files/pl/_wikihistory.json index 057aae17c5..79e3503d58 100644 --- a/files/pl/_wikihistory.json +++ b/files/pl/_wikihistory.json @@ -10823,16 +10823,6 @@ "Jan Dudek" ] }, - "Web/API/DocumentOrShadowRoot/styleSheets": { - "modified": "2019-03-23T23:48:20.614Z", - "contributors": [ - "teoli", - "jsx", - "Robson", - "Mgjbot", - "Jan Dudek" - ] - }, "conflicting/Web/API": { "modified": "2019-03-24T00:13:13.340Z", "contributors": [ @@ -11745,5 +11735,15 @@ "Mgjbot", "Flaneur" ] + }, + "Web/API/Document/styleSheets": { + "modified": "2019-03-23T23:48:20.614Z", + "contributors": [ + "teoli", + "jsx", + "Robson", + "Mgjbot", + "Jan Dudek" + ] } } \ No newline at end of file diff --git a/files/pl/web/api/document/stylesheets/index.html b/files/pl/web/api/document/stylesheets/index.html new file mode 100644 index 0000000000..96d97c83c0 --- /dev/null +++ b/files/pl/web/api/document/stylesheets/index.html @@ -0,0 +1,21 @@ +--- +title: document.styleSheets +slug: Web/API/Document/styleSheets +tags: + - DOM + - Dokumentacja_Gecko_DOM + - Gecko + - Wszystkie_kategorie +translation_of: Web/API/DocumentOrShadowRoot/styleSheets +translation_of_original: Web/API/Document/styleSheets +original_slug: Web/API/DocumentOrShadowRoot/styleSheets +--- +

{{ ApiRef() }}

+

Podsumowanie

+

Własność styleSheets zwraca listę obiektów stylesheet w bieżącym dokumencie.

+

Składnia

+
listaWęzłów = document.styleSheets
+
+

Specyfikacja

+

DOM Level 2.

+

{{ languages( { "en": "en/DOM/document.styleSheets", "ja": "ja/DOM/document.styleSheets" } ) }}

diff --git a/files/pl/web/api/documentorshadowroot/stylesheets/index.html b/files/pl/web/api/documentorshadowroot/stylesheets/index.html deleted file mode 100644 index cb2e61d67b..0000000000 --- a/files/pl/web/api/documentorshadowroot/stylesheets/index.html +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: document.styleSheets -slug: Web/API/DocumentOrShadowRoot/styleSheets -tags: - - DOM - - Dokumentacja_Gecko_DOM - - Gecko - - Wszystkie_kategorie -translation_of: Web/API/DocumentOrShadowRoot/styleSheets -translation_of_original: Web/API/Document/styleSheets -original_slug: Web/API/Document/styleSheets ---- -

{{ ApiRef() }}

-

Podsumowanie

-

Własność styleSheets zwraca listę obiektów stylesheet w bieżącym dokumencie.

-

Składnia

-
listaWęzłów = document.styleSheets
-
-

Specyfikacja

-

DOM Level 2.

-

{{ languages( { "en": "en/DOM/document.styleSheets", "ja": "ja/DOM/document.styleSheets" } ) }}

diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt index 46943b1804..9ee008a3bd 100644 --- a/files/zh-cn/_redirects.txt +++ b/files/zh-cn/_redirects.txt @@ -1491,11 +1491,11 @@ /zh-CN/docs/Web/API/Document/mozFullScreenElement /zh-CN/docs/Web/API/Document/fullscreenElement /zh-CN/docs/Web/API/Document/mozFullScreenEnabled /zh-CN/docs/Web/API/Document/fullscreenEnabled /zh-CN/docs/Web/API/Document/onreadystatechange /en-US/docs/Web/API/Document/readystatechange_event -/zh-CN/docs/Web/API/Document/pointerLockElement /zh-CN/docs/Web/API/DocumentOrShadowRoot/pointerLockElement /zh-CN/docs/Web/API/Document/rouchmove_event /zh-CN/docs/Web/API/Document/touchmove_event -/zh-CN/docs/Web/API/Document/styleSheets /zh-CN/docs/conflicting/Web/API/DocumentOrShadowRoot/styleSheets /zh-CN/docs/Web/API/DocumentOrShadowRoot/activeElement /zh-CN/docs/Web/API/Document/activeElement /zh-CN/docs/Web/API/DocumentOrShadowRoot/fullscreenElement /zh-CN/docs/Web/API/Document/fullscreenElement +/zh-CN/docs/Web/API/DocumentOrShadowRoot/pointerLockElement /zh-CN/docs/Web/API/Document/pointerLockElement +/zh-CN/docs/Web/API/DocumentOrShadowRoot/styleSheets /zh-CN/docs/Web/API/Document/styleSheets /zh-CN/docs/Web/API/Document_Object_Model/Preface /zh-CN/docs/conflicting/Web/API/Document_Object_Model /zh-CN/docs/Web/API/Element.classList /zh-CN/docs/Web/API/Element/classList /zh-CN/docs/Web/API/Element.className /zh-CN/docs/Web/API/Element/className diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json index 31836b726e..6bb3beb84a 100644 --- a/files/zh-cn/_wikihistory.json +++ b/files/zh-cn/_wikihistory.json @@ -10390,12 +10390,6 @@ "WuCongMan" ] }, - "Web/API/DocumentOrShadowRoot/styleSheets": { - "modified": "2020-10-19T22:22:59.095Z", - "contributors": [ - "lastVigo" - ] - }, "Web/API/DocumentTouch": { "modified": "2019-03-23T22:57:10.414Z", "contributors": [ @@ -47145,12 +47139,6 @@ "ziyunfei" ] }, - "Web/API/DocumentOrShadowRoot/pointerLockElement": { - "modified": "2019-03-23T22:20:46.971Z", - "contributors": [ - "876843240" - ] - }, "Web/API/Document/touchmove_event": { "modified": "2019-04-30T14:14:32.752Z", "contributors": [ @@ -50798,5 +50786,17 @@ "April421", "xgqfrms" ] + }, + "Web/API/Document/pointerLockElement": { + "modified": "2019-03-23T22:20:46.971Z", + "contributors": [ + "876843240" + ] + }, + "Web/API/Document/styleSheets": { + "modified": "2020-10-19T22:22:59.095Z", + "contributors": [ + "lastVigo" + ] } } \ No newline at end of file diff --git a/files/zh-cn/web/api/document/pointerlockelement/index.html b/files/zh-cn/web/api/document/pointerlockelement/index.html new file mode 100644 index 0000000000..50f2343da8 --- /dev/null +++ b/files/zh-cn/web/api/document/pointerlockelement/index.html @@ -0,0 +1,106 @@ +--- +title: Document.pointerLockElement +slug: Web/API/Document/pointerLockElement +translation_of: Web/API/DocumentOrShadowRoot/pointerLockElement +original_slug: Web/API/DocumentOrShadowRoot/pointerLockElement +--- +
{{APIRef("DOM")}}
+ +

pointerLockElement 特性规定了如在鼠标事件中当目标被锁定时的元素集和。如果指针处于锁定等待中、指针没有被锁定,或者目标在另外一个文档中这几种情况,返回的值null。

+ +

语法

+ +
var element = document.pointerLockElement;
+
+ +

返回值

+ +

An {{domxref("Element")}} or null.

+ +

特性

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Pointer Lock','l#extensions-to-the-document-interface','Document')}}{{Spec2('Pointer Lock')}}Extend the Document interface
+ +

浏览器兼容

+ +

{{ CompatibilityTable() }}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatVersionUnknown() }} {{property_prefix("webkit")}}{{CompatVersionUnknown}}{{ CompatVersionUnknown() }} {{property_prefix("moz")}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
Unprefixed support{{ CompatVersionUnknown() }}{{CompatUnknown}}{{CompatGeckoDesktop(50)}}   
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{CompatVersionUnknown}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
+
+ +

相关链接

+ + diff --git a/files/zh-cn/web/api/document/stylesheets/index.html b/files/zh-cn/web/api/document/stylesheets/index.html new file mode 100644 index 0000000000..f94497ceeb --- /dev/null +++ b/files/zh-cn/web/api/document/stylesheets/index.html @@ -0,0 +1,53 @@ +--- +title: DocumentOrShadowRoot.styleSheets +slug: Web/API/Document/styleSheets +translation_of: Web/API/DocumentOrShadowRoot/styleSheets +original_slug: Web/API/DocumentOrShadowRoot/styleSheets +--- +
{{SeeCompatTable}}{{APIRef("Shadow DOM")}}
+ +

styleSheets是{{domxref("DocumentOrShadowRoot")}}接口定义的只读属性,它会返回一个{{domxref('StyleSheetList')}} / {{domxref('CSSStyleSheet')}} 对象,这个对象对应的是通过引入或者嵌入文档中的样式表。

+ +

示例代码

+ +
function getStyleSheet(unique_title) {
+  for (var i=0; i<document.styleSheets.length; i++) {
+    var sheet = document.styleSheets[i];
+    if (sheet.title == unique_title) {
+      return sheet;
+    }
+  }
+}
+
+ +

说明

+ +

返回的列表中,排序规则如下:

+ + + +

规范

+ + + + + + + + + + + + + + +
规范状态说明
{{SpecName('Shadow DOM','#extensions-to-the-documentorshadowroot-mixin','DocumentOrShadowRoot')}}{{Spec2('Shadow DOM')}}Initial definition.
+ +

浏览器兼容性

+ + + +

{{Compat("api.DocumentOrShadowRoot.styleSheets")}}

diff --git a/files/zh-cn/web/api/documentorshadowroot/pointerlockelement/index.html b/files/zh-cn/web/api/documentorshadowroot/pointerlockelement/index.html deleted file mode 100644 index 38702632bd..0000000000 --- a/files/zh-cn/web/api/documentorshadowroot/pointerlockelement/index.html +++ /dev/null @@ -1,106 +0,0 @@ ---- -title: Document.pointerLockElement -slug: Web/API/DocumentOrShadowRoot/pointerLockElement -translation_of: Web/API/DocumentOrShadowRoot/pointerLockElement -original_slug: Web/API/Document/pointerLockElement ---- -
{{APIRef("DOM")}}
- -

pointerLockElement 特性规定了如在鼠标事件中当目标被锁定时的元素集和。如果指针处于锁定等待中、指针没有被锁定,或者目标在另外一个文档中这几种情况,返回的值null。

- -

语法

- -
var element = document.pointerLockElement;
-
- -

返回值

- -

An {{domxref("Element")}} or null.

- -

特性

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('Pointer Lock','l#extensions-to-the-document-interface','Document')}}{{Spec2('Pointer Lock')}}Extend the Document interface
- -

浏览器兼容

- -

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatVersionUnknown() }} {{property_prefix("webkit")}}{{CompatVersionUnknown}}{{ CompatVersionUnknown() }} {{property_prefix("moz")}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
Unprefixed support{{ CompatVersionUnknown() }}{{CompatUnknown}}{{CompatGeckoDesktop(50)}}   
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{CompatVersionUnknown}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
- -

相关链接

- - diff --git a/files/zh-cn/web/api/documentorshadowroot/stylesheets/index.html b/files/zh-cn/web/api/documentorshadowroot/stylesheets/index.html deleted file mode 100644 index 1c9425a744..0000000000 --- a/files/zh-cn/web/api/documentorshadowroot/stylesheets/index.html +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: DocumentOrShadowRoot.styleSheets -slug: Web/API/DocumentOrShadowRoot/styleSheets -translation_of: Web/API/DocumentOrShadowRoot/styleSheets ---- -
{{SeeCompatTable}}{{APIRef("Shadow DOM")}}
- -

styleSheets是{{domxref("DocumentOrShadowRoot")}}接口定义的只读属性,它会返回一个{{domxref('StyleSheetList')}} / {{domxref('CSSStyleSheet')}} 对象,这个对象对应的是通过引入或者嵌入文档中的样式表。

- -

示例代码

- -
function getStyleSheet(unique_title) {
-  for (var i=0; i<document.styleSheets.length; i++) {
-    var sheet = document.styleSheets[i];
-    if (sheet.title == unique_title) {
-      return sheet;
-    }
-  }
-}
-
- -

说明

- -

返回的列表中,排序规则如下:

- - - -

规范

- - - - - - - - - - - - - - -
规范状态说明
{{SpecName('Shadow DOM','#extensions-to-the-documentorshadowroot-mixin','DocumentOrShadowRoot')}}{{Spec2('Shadow DOM')}}Initial definition.
- -

浏览器兼容性

- - - -

{{Compat("api.DocumentOrShadowRoot.styleSheets")}}

-- cgit v1.2.3-54-g00ecf