From 99efa5cfa34c3f9d38b75352881acdfc99508ebf Mon Sep 17 00:00:00 2001 From: tristantheb Date: Fri, 2 Apr 2021 13:50:14 +0200 Subject: UPDATE: FR-ONLY - Remove all old CompatibilityTable to replace with {{Compat()}} (#311) * UPDATE: Removing CompatibilityTable script - Part 1 * UPDATE: Removing CompatibilityTable script - Part 2 * UPDATE: Removing CompatibilityTable script - Part 3 * UPDATE: Removing CompatibilityTable script - Part 4 * UPDATE: Removing CompatibilityTable script - Part 5/5 * FIX: Repair the EOL of one page * FIX: Fix conflicting file --- .../api/document/caretrangefrompoint/index.html | 60 +--------- .../api/document/createdocumentfragment/index.html | 55 +-------- .../fr/web/api/document/createelementns/index.html | 67 +---------- .../fr/web/api/document/createtextnode/index.html | 52 +-------- .../web/api/document/createtreewalker/index.html | 90 +------------- files/fr/web/api/document/currentscript/index.html | 54 +-------- files/fr/web/api/document/designmode/index.html | 87 ++++---------- files/fr/web/api/document/document/index.html | 52 +-------- files/fr/web/api/document/drag_event/index.html | 54 +-------- files/fr/web/api/document/dragend_event/index.html | 60 +--------- .../fr/web/api/document/dragenter_event/index.html | 56 +-------- .../fr/web/api/document/dragleave_event/index.html | 54 +-------- .../fr/web/api/document/dragover_event/index.html | 56 +-------- .../fr/web/api/document/dragstart_event/index.html | 54 +-------- files/fr/web/api/document/drop_event/index.html | 54 +-------- .../fr/web/api/document/exitfullscreen/index.html | 57 +-------- .../fr/web/api/document/exitpointerlock/index.html | 61 +--------- files/fr/web/api/document/hasfocus/index.html | 66 +---------- files/fr/web/api/document/head/index.html | 93 +++++++-------- files/fr/web/api/document/location/index.html | 48 +------- .../web/api/document/onfullscreenchange/index.html | 56 +-------- files/fr/web/api/document/open/index.html | 96 +++++---------- files/fr/web/api/document/origin/index.html | 50 +------- .../web/api/document/querycommandstate/index.html | 54 +-------- .../api/document/querycommandsupported/index.html | 54 +-------- files/fr/web/api/document/queryselector/index.html | 56 +-------- .../web/api/document/queryselectorall/index.html | 130 +++++---------------- .../fr/web/api/document/registerelement/index.html | 50 +------- files/fr/web/api/document/scripts/index.html | 95 +++++++-------- .../fr/web/api/document/touchend_event/index.html | 63 +--------- .../fr/web/api/document/visibilitystate/index.html | 68 +---------- 31 files changed, 192 insertions(+), 1810 deletions(-) (limited to 'files/fr/web/api/document') diff --git a/files/fr/web/api/document/caretrangefrompoint/index.html b/files/fr/web/api/document/caretrangefrompoint/index.html index 02ec1616a9..e0166becb3 100644 --- a/files/fr/web/api/document/caretrangefrompoint/index.html +++ b/files/fr/web/api/document/caretrangefrompoint/index.html @@ -81,64 +81,6 @@ for (i=0 ; i < paragraphs.length; i++) {

{{ EmbedLiveSample('Example', '', '', '', 'Web/API/Document/caretRangeFromPoint') }}

-

 

-

Compatibilité des navigateurs

-
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéChromeFirefox (Gecko)Internet ExplorerEdgeOperaSafari (WebKit)
Basic support{{CompatChrome(43.0)}}20+{{CompatNo()}}1215+{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéAndroidChrome for AndroidEdgeFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatChrome(43.0)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -

 

+

{{Compat("api.Document.caretRangeFromPoint")}}

diff --git a/files/fr/web/api/document/createdocumentfragment/index.html b/files/fr/web/api/document/createdocumentfragment/index.html index 63d8203bb7..806a9db921 100644 --- a/files/fr/web/api/document/createdocumentfragment/index.html +++ b/files/fr/web/api/document/createdocumentfragment/index.html @@ -76,60 +76,7 @@ element.appe

Compatibilité des navigateurs

-
{{CompatibilityTable}}
- -
 
- -
-
- - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéFirefox (Gecko)ChromeEdgeInternet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéFirefox Mobile (Gecko)AndroidEdgeIE MobileOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+

{{Compat("api.Document.createDocumentFragment")}}

Voir aussi

diff --git a/files/fr/web/api/document/createelementns/index.html b/files/fr/web/api/document/createelementns/index.html index f882f231b9..74f17956dd 100644 --- a/files/fr/web/api/document/createelementns/index.html +++ b/files/fr/web/api/document/createelementns/index.html @@ -104,72 +104,7 @@ translation_of: Web/API/Document/createElementNS

Compatibilité des navigateurs

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
options argument{{CompatVersionUnknown}}[1]{{CompatNo}}{{CompatGeckoDesktop(50)}}[2][3]{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéAndroidEdgeFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -

[1] Dans les versions précédentes de la spécification, cet argument était juste une chaîne de caractères dont la valeur était un nom d'élément personnalisé. Par souci de compatibilité ascendante, Chrome accepte les deux formes .

- -

[2] Voir [1] ci-dessus : comme Chrome, Firefox accepte une chaîne au lieu d'un objet ici, mais seulement à partir de la version 51 et suivantes. Dans la version 50, les options doivent être un objet.

- -

[3] Pour expérimenter avec des éléments personnalisés dans Firefox, vous devez définir les préférences dom.webcomponents.enabled et dom.webcomponents.customelements.enabled à true (vrai).

+

{{Compat("api.Document.createElementNS")}}

Voir aussi

diff --git a/files/fr/web/api/document/createtextnode/index.html b/files/fr/web/api/document/createtextnode/index.html index 8f16aa0440..2455a75c30 100644 --- a/files/fr/web/api/document/createtextnode/index.html +++ b/files/fr/web/api/document/createtextnode/index.html @@ -75,54 +75,4 @@ translation_of: Web/API/Document/createTextNode

Compatibilité des navigateurs

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéAndroidEdgeFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+

{{Compat("api.Document.createTextNode")}}

diff --git a/files/fr/web/api/document/createtreewalker/index.html b/files/fr/web/api/document/createtreewalker/index.html index 87dbad7998..66c736285f 100644 --- a/files/fr/web/api/document/createtreewalker/index.html +++ b/files/fr/web/api/document/createtreewalker/index.html @@ -148,95 +148,7 @@ while(treeWalker.nextNode()) nodeList.push(treeWalker.currentNode);

Compatibilité des navigateurs

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support1.0{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.8.1")}}9.09.03.0
whatToShow and filter optional1.0{{CompatUnknown}}{{CompatGeckoDesktop("12")}}{{CompatNo}}{{CompatVersionUnknown}}3.0
expandEntityReferences1.0{{CompatUnknown}}{{CompatGeckoDesktop("1.8.1")}}
- Removed in {{CompatGeckoDesktop("12")}}
9.09.03.0
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile("1.8.1")}}{{CompatVersionUnknown}}9.03.0
whatToShow and filter optional{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatGeckoDesktop("12")}}{{CompatNo}}{{CompatVersionUnknown}}3.0
expandEntityReferences{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatGeckoDesktop("1.8.1")}}
- Removed in {{CompatGeckoDesktop("12")}}
{{CompatVersionUnknown}}9.03.0
-
+

{{Compat("api.Document.createTreeWalker")}}

Voir aussi

diff --git a/files/fr/web/api/document/currentscript/index.html b/files/fr/web/api/document/currentscript/index.html index 68fd2e0f4b..d0758e6c1e 100644 --- a/files/fr/web/api/document/currentscript/index.html +++ b/files/fr/web/api/document/currentscript/index.html @@ -55,59 +55,7 @@ translation_of: Web/API/Document/currentScript

Compatibilité navigateur

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatChrome(29.0)}}{{CompatVersionUnknown}}{{CompatGeckoDesktop("2.0")}}{{CompatNo}}168
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéAndroidChrome for AndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support4.4{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}8
-
+
{{Compat("api.Document.currentScript")}}

Voir aussi

diff --git a/files/fr/web/api/document/designmode/index.html b/files/fr/web/api/document/designmode/index.html index f3bac92585..e91fdfdf7a 100644 --- a/files/fr/web/api/document/designmode/index.html +++ b/files/fr/web/api/document/designmode/index.html @@ -24,79 +24,32 @@ document.designMode = "off";
iframe_node.contentDocument.designMode = "on";
 
-

Spécifications

+

Spécifications

- - - - - - - - - - - - + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', '#making-entire-documents-editable:-the-designmode-idl-attribute', 'designMode')}}{{Spec2('HTML WHATWG')}}Initial definition.
SpécificationStatutCommentaire
{{SpecName('HTML WHATWG', '#making-entire-documents-editable:-the-designmode-idl-attribute', 'designMode')}}{{Spec2('HTML WHATWG')}}Définition initiale.
-

Compatibilité des navigateurs

+

Compatibilité des navigateurs

-

{{ CompatibilityTable() }}

+

{{Compat("api.Document.designMode")}}

-
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
-
- -

Voir aussi

+

Voir aussi

diff --git a/files/fr/web/api/document/document/index.html b/files/fr/web/api/document/document/index.html index 92f2305c02..b3da3b5f6b 100644 --- a/files/fr/web/api/document/document/index.html +++ b/files/fr/web/api/document/document/index.html @@ -40,54 +40,4 @@ translation_of: Web/API/Document/Document

Compatibilité Navigateurs

-
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - -
FonctionnalitéChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(60)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatOpera(47)}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FonctionnalitéAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatChrome(60)}}{{CompatChrome(60)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatOperaMobile(47)}}{{CompatUnknown}}
-
+
{{Compat("api.Document.Document")}}
diff --git a/files/fr/web/api/document/drag_event/index.html b/files/fr/web/api/document/drag_event/index.html index 7bd2710641..958df729b3 100644 --- a/files/fr/web/api/document/drag_event/index.html +++ b/files/fr/web/api/document/drag_event/index.html @@ -244,59 +244,7 @@ translation_of: Web/API/Document/drag_event

Compatibilités navigateur

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
NavigateurChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Support basique4{{CompatGeckoDesktop("1.9.1")}}10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
NavigateurAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Support basique{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
+

{{Compat("api.Document.drag_event")}}

Voir aussi

diff --git a/files/fr/web/api/document/dragend_event/index.html b/files/fr/web/api/document/dragend_event/index.html index 74508d8303..ac2681db24 100644 --- a/files/fr/web/api/document/dragend_event/index.html +++ b/files/fr/web/api/document/dragend_event/index.html @@ -242,66 +242,10 @@ translation_of: Web/API/Document/dragend_event

Compatibilités navigateurs

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
NavigateurChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Support basique4{{CompatGeckoDesktop("1.9.1")}}[1]10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
NavigateurAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Support basique{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
- -

[1] Avec Gecko, dragend n'est pas envoyé si la source du nœud est déplacée ou supprimée durant l'opération de glissement (par ex. durant un événement drop ou dragover). Voir {{bug("460801")}}.

+

{{Compat("api.Document.dragend_event")}}

Voir aussi

-

 

- - -

 

diff --git a/files/fr/web/api/document/dragenter_event/index.html b/files/fr/web/api/document/dragenter_event/index.html index 50739f9415..2bdc66e42e 100644 --- a/files/fr/web/api/document/dragenter_event/index.html +++ b/files/fr/web/api/document/dragenter_event/index.html @@ -244,61 +244,7 @@ translation_of: Web/API/Document/dragenter_event

Compatiblités navigateurs

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
NavigateurChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Support basique4{{CompatGeckoDesktop("1.9.1")}}[1]10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
NavigateurAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Support basique{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
- -

[1] L'événement dragenter est déclenché deux fois quand la zone de drop est parente de draggable ou gissable elle même. Voir {{bug("804036")}}.

+

{{Compat("api.Document.dragenter_event")}}

Voir aussi

diff --git a/files/fr/web/api/document/dragleave_event/index.html b/files/fr/web/api/document/dragleave_event/index.html index ef32a3fe75..dfccbbc044 100644 --- a/files/fr/web/api/document/dragleave_event/index.html +++ b/files/fr/web/api/document/dragleave_event/index.html @@ -242,59 +242,7 @@ translation_of: Web/API/Document/dragleave_event

Compatibilités navigateur

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
NavigateurChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Support basique4{{CompatGeckoDesktop("1.9.1")}}10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
NavigateurAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Support basique{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
+

{{Compat("api.Document.dragleave_event")}}

Voir aussi

diff --git a/files/fr/web/api/document/dragover_event/index.html b/files/fr/web/api/document/dragover_event/index.html index 2efc385956..86df0e5440 100644 --- a/files/fr/web/api/document/dragover_event/index.html +++ b/files/fr/web/api/document/dragover_event/index.html @@ -243,59 +243,7 @@ translation_of: Web/API/Document/dragover_event

Compatibilités navigateur

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
NavigateurChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Support basique4{{CompatGeckoDesktop("1.9.1")}}10123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
NavigateurAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Support basique{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
+

{{Compat("api.Document.dragover_event")}}

Voir aussi

@@ -309,5 +257,3 @@ translation_of: Web/API/Document/dragover_event
  • {{event("dragexit")}}
  • {{event("drop")}}
  • - -

     

    diff --git a/files/fr/web/api/document/dragstart_event/index.html b/files/fr/web/api/document/dragstart_event/index.html index fb43328e8b..4eed44888d 100644 --- a/files/fr/web/api/document/dragstart_event/index.html +++ b/files/fr/web/api/document/dragstart_event/index.html @@ -247,59 +247,7 @@ translation_of: Web/API/Document/dragstart_event

    Compatibilités navigateur

    -

    {{CompatibilityTable}}

    - -
    - - - - - - - - - - - - - - - - - - - -
    NavigateurChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
    Support basique4{{CompatGeckoDesktop("1.9.1")}}10123.1
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NavigateurAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
    Support basique{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
    -
    +

    {{Compat("api.Document.dragstart_event")}}

    Voir aussi

    diff --git a/files/fr/web/api/document/drop_event/index.html b/files/fr/web/api/document/drop_event/index.html index a67eb0684b..68d66c8116 100644 --- a/files/fr/web/api/document/drop_event/index.html +++ b/files/fr/web/api/document/drop_event/index.html @@ -245,59 +245,7 @@ translation_of: Web/API/Document/drop_event

    Compatibilités navigateur

    -

    {{CompatibilityTable}}

    - -
    - - - - - - - - - - - - - - - - - - - -
    NavigateurChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
    Support basique4{{CompatGeckoDesktop("1.9.1")}}10123.1
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    NavigateurAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
    Support basique{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
    -
    +

    {{Compat("api.Document.drop_event")}}

    Voir aussi

    diff --git a/files/fr/web/api/document/exitfullscreen/index.html b/files/fr/web/api/document/exitfullscreen/index.html index a5c8172182..e91d987e34 100644 --- a/files/fr/web/api/document/exitfullscreen/index.html +++ b/files/fr/web/api/document/exitfullscreen/index.html @@ -50,62 +50,7 @@ document.onclick = function (event) {

    Compatibilité des navigateurs

    -

    {{CompatibilityTable}}

    - -
    - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeFirefox (Gecko)Internet ExplorerOperaSafari
    Basic support{{CompatVersionUnknown}}{{property_prefix("-webkit")}}
    - {{CompatChrome(45)}} (unprefixed)
    {{CompatGeckoDesktop("9.0")}} as mozCancelFullScreen[1]
    - {{CompatGeckoDesktop("47.0")}}[1] (behind full-screen-api.unprefix.enabled
    {{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroid WebkitChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
    Basic support{{CompatVersionUnknown}}{{property_prefix("-webkit")}}
    - {{CompatChrome(45)}} (unprefixed)
    {{CompatVersionUnknown}}{{property_prefix("-webkit")}}
    - {{CompatChrome(45)}} (unprefixed)
    {{CompatGeckoMobile("9.0")}} as mozCancelFullScreen[1]
    - {{CompatGeckoMobile("47.0")}}[1] (behind full-screen-api.unprefix.enabled
    {{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
    -
    - -

    [1] La "pile" du mode plein écran qui permet d'annuler le plein écran pour un élément et de le restaurer pour un élément précédent automatiquement, a été implémentée dans Gecko 11.0 {{geckoRelease("11.0")}}.

    +

    {{Compat("api.Document.exitFullscreen")}}

    Voir aussi

    diff --git a/files/fr/web/api/document/exitpointerlock/index.html b/files/fr/web/api/document/exitpointerlock/index.html index 3337e00ae7..72a24c5f2f 100644 --- a/files/fr/web/api/document/exitpointerlock/index.html +++ b/files/fr/web/api/document/exitpointerlock/index.html @@ -39,66 +39,7 @@ translation_of: Web/API/Document/exitPointerLock

    Compatibilité des navigateurs

    -

    {{CompatibilityTable}}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
    Support simple{{CompatVersionUnknown}} {{property_prefix("webkit")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}} {{property_prefix("moz")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
    Prise en charge sans préfixe{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatGeckoDesktop(50)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
    Support simple{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
    -
    +

    {{Compat("api.Document.exitPointerLock")}}

    Voir aussi

    diff --git a/files/fr/web/api/document/hasfocus/index.html b/files/fr/web/api/document/hasfocus/index.html index 4b70cdaf0a..f33a56bb10 100644 --- a/files/fr/web/api/document/hasfocus/index.html +++ b/files/fr/web/api/document/hasfocus/index.html @@ -65,7 +65,7 @@ translation_of: Web/API/Document/hasFocus </body> </html> -

    Spécification

    +

    Spécification

    @@ -84,68 +84,12 @@ translation_of: Web/API/Document/hasFocus
    -

    Compatibilité des navigateurs

    +

    Compatibilité des navigateurs

    -

    {{ CompatibilityTable() }}

    +

    {{Compat("api.Document.hasFocus")}}

    -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
    Basic support30{{CompatVersionUnknown}}{{ CompatGeckoDesktop("1.9") }}6.0{{ CompatNo() }}{{ CompatVersionUnknown() }}
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
    Basic support{{ CompatUnknown() }}{{CompatVersionUnknown}}{{ CompatGeckoMobile("1.9") }}{{ CompatUnknown() }}{{ CompatNo() }}{{ CompatUnknown() }}
    -
    - -

    Voir aussi

    +

    Voir aussi

    - -

     

    - -
     
    - -

     

    diff --git a/files/fr/web/api/document/head/index.html b/files/fr/web/api/document/head/index.html index 1fa6aa3fa3..9927db3f3b 100644 --- a/files/fr/web/api/document/head/index.html +++ b/files/fr/web/api/document/head/index.html @@ -8,11 +8,16 @@ tags: translation_of: Web/API/Document/head ---

    Résumé

    +

    Retourne l'élément {{HTMLElement("head")}} du document courant. S'il y a plus d'un élément <head>, le premier est retourné.

    +

    Syntaxe

    +
    var objRef = document.head;
     
    +

    Exemple

    +
    // en HTML: <head id="my-document-head">
     var aHead = document.head;
     
    @@ -20,56 +25,46 @@ alert(aHead.id); // "my-document-head";
     
     alert( document.head === document.querySelector("head") ); // true
     
    +

    Notes

    +

    document.head est en lecture seule. Essayer d'assigner une valeur à cettre propriété échouera en silence ou lancera une TypeError si le mode strict d'ECMAScript est activé dans un navigateur Gecko.

    -

    Compatibilité

    -
    - {{CompatibilityTable}}
    -
    - - - - - - - - - - - - - - - - - - - -
    FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
    Basic support4.0{{CompatGeckoDesktop("2")}}9.011.05.0
    -
    -
    - - - - - - - - - - - - - - - - - - - -
    FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
    Basic support{{CompatVersionUnknown}}{{CompatGeckoMobile("2")}}9.0{{CompatVersionUnknown}}{{CompatVersionUnknown}}
    -
    -

    Spécification

    + +

    Spécifications

    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    SpécificationStatutCommentaire
    {{SpecName('HTML5.1','dom.html#dom-document-head','Document.head')}}{{Spec2('HTML5.1')}}
    {{SpecName('HTML5 W3C','dom.html#dom-document-head','Document.head')}}{{Spec2('HTML5 W3C')}}
    {{SpecName('HTML WHATWG','dom.html#dom-document-head','Document.head')}}{{Spec2('HTML WHATWG')}}Initial definition.
    + +

    Compatibilité des navigateurs

    + +

    {{Compat("api.Document.head")}}

    + +

    Voir aussi

    + diff --git a/files/fr/web/api/document/location/index.html b/files/fr/web/api/document/location/index.html index afd9341feb..932929b720 100644 --- a/files/fr/web/api/document/location/index.html +++ b/files/fr/web/api/document/location/index.html @@ -55,53 +55,7 @@ document.location = 'http://www.mozilla.org' // équivalent à document.location

    Compatibilité des navigateurs

    -

    {{CompatibilityTable}}

    - -
    - - - - - - - - - - - - - - - - - - - -
    FonctionChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
    Support de base{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
    -
    - -
    - - - - - - - - - - - - - - - - - - - -
    FonctionAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
    Support de base{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
    -
    +

    {{Compat("api.Document.location")}}

    Voir également

    diff --git a/files/fr/web/api/document/onfullscreenchange/index.html b/files/fr/web/api/document/onfullscreenchange/index.html index 2736f848e7..a3251b0188 100644 --- a/files/fr/web/api/document/onfullscreenchange/index.html +++ b/files/fr/web/api/document/onfullscreenchange/index.html @@ -42,61 +42,7 @@ document.documentElement.onclick = function () {

    Compatibilité des navigateurs

    -

    {{CompatibilityTable}}

    - -
    - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
    Support basic{{CompatUnknown}}{{CompatGeckoDesktop("47")}}[1] (behind full-screen-api.unprefix.enabled{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
    Support basique{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatGeckoDesktop("47")}} [1] (behind full-screen-api.unprefix.enabled{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
    -
    - -

    [1] Depuis Firefox 49, c'était techniquement sur {{domxref("GlobalEventHandlers")}}, mais certains gestionnaires d'événements n'étaient jamais appelés lorsqu'un {{domxref("Element")}} était défini.

    +

    {{Compat("api.Document.onfullscreenchange")}}

    Voir aussi

    diff --git a/files/fr/web/api/document/open/index.html b/files/fr/web/api/document/open/index.html index a4b16f90e4..bb5aba9bc3 100644 --- a/files/fr/web/api/document/open/index.html +++ b/files/fr/web/api/document/open/index.html @@ -40,79 +40,37 @@ document.open();

    Si vous ne voulez pas créer une entrée d'historique, remplacez open() par open("text/html", "replace").

    -

    Spécifications

    +

    Spécifications

    - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
    SpécificationStatusComment
    {{SpecName("DOM2 HTML", "html.html#ID-72161170", "document.open()")}}{{Spec2("DOM2 HTML")}}Définition initiale.
    SpécificationStatusComment
    {{SpecName("HTML WHATWG", "#dom-document-open", "document.open()")}}{{Spec2("HTML WHATWG")}}
    {{SpecName("DOM2 HTML", "html.html#ID-72161170", "document.open()")}}{{Spec2("DOM2 HTML")}}Définition initiale.
    -

    Compatibilité des navigateurs

    - -

    {{ CompatibilityTable() }}

    - -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
    Basic support{{ CompatVersionUnknown() }}{{CompatVersionUnknown}}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroidEdgeFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
    Basic support{{ CompatUnknown() }}{{CompatVersionUnknown}}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
    -
    +

    Compatibilité des navigateurs

    -

    Notes propres à Gecko

    +

    {{Compat("api.Document.open")}}

    -

    À partir de Gecko 1.9, cette méthode est soumise à la même règle d'origine que les autres propriétés et ne fonctionne pas si cela change l'origine du document.

    +

    Voir aussi

    -

    À partir de Gecko 1.9.2, document.open() utilise le principal du document dont il utilise l'URI, au lieu de récupérer le principal hors de la pile. Par conséquent, vous ne pouvez plus appeler {{domxref ("document.write ()")}} dans un document non approuvé à partir de chrome, même en utilisant wrappedJSObject.

    + diff --git a/files/fr/web/api/document/origin/index.html b/files/fr/web/api/document/origin/index.html index 54fed5b8e3..646f4e1242 100644 --- a/files/fr/web/api/document/origin/index.html +++ b/files/fr/web/api/document/origin/index.html @@ -49,55 +49,7 @@ var origin = document.origin;

    Compatibilité des navigateurs

    -

    {{ CompatibilityTable() }}

    - -
    - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeFirefox (Gecko)Internet ExplorerOperaSafari
    Basic support{{CompatChrome(41)}}{{CompatNo}} {{bug(931884)}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
    Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
    -
    +
    {{Compat("api.Document.origin")}}

    Voir aussi

    diff --git a/files/fr/web/api/document/querycommandstate/index.html b/files/fr/web/api/document/querycommandstate/index.html index 7875db98fb..ee8af716d0 100644 --- a/files/fr/web/api/document/querycommandstate/index.html +++ b/files/fr/web/api/document/querycommandstate/index.html @@ -37,59 +37,7 @@ translation_of: Web/API/Document/queryCommandState

    Compatibilité des navigateurs

    -

    {{CompatibilityTable}}

    - -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
    Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroidChrome for AndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
    Basic support{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
    -
    +

    {{Compat("api.Document.queryCommandState")}}

    Voir aussi

    diff --git a/files/fr/web/api/document/querycommandsupported/index.html b/files/fr/web/api/document/querycommandsupported/index.html index a46e4374d5..986cbd52e3 100644 --- a/files/fr/web/api/document/querycommandsupported/index.html +++ b/files/fr/web/api/document/querycommandsupported/index.html @@ -63,59 +63,7 @@ if(flg) {

    Compatibilité des navigateurs

    -
    {{CompatibilityTable}}
    - -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
    Basic support17{{CompatVersionUnknown}}{{CompatGeckoDesktop("9.0")}}[1]4.0{{CompatUnknown}}6.1.6
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
    Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile("9.0")}}[1]{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
    -
    - -

    [1] Avant Firefox 41, pour la commande 'paste' (coller), Firefox renvoyait incorrectement true (vrai) quand la fonctionnalité coller était disponible même si le script appelant avait des privilèges insuffisants pour réaliser l'action.

    +

    {{Compat("api.Document.queryCommandSupported")}}

    Voir aussi

    diff --git a/files/fr/web/api/document/queryselector/index.html b/files/fr/web/api/document/queryselector/index.html index b466aaad25..4d25c91d2b 100644 --- a/files/fr/web/api/document/queryselector/index.html +++ b/files/fr/web/api/document/queryselector/index.html @@ -111,61 +111,9 @@ translation_of: Web/API/Document/querySelector -

    Compatibilité des navigateurs

    +

    Compatibilité des navigateurs

    -

    {{CompatibilityTable()}}

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
    Support de base1{{CompatVersionUnknown}}3.58103.2
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
    machin2.1{{CompatVersionUnknown}}{{CompatVersionUnknown}}910.03.2
    -
    -
    +
    {{Compat("api.Document.querySelector")}}

    Voir aussi

    diff --git a/files/fr/web/api/document/queryselectorall/index.html b/files/fr/web/api/document/queryselectorall/index.html index b9c36f07e7..6347a584c8 100644 --- a/files/fr/web/api/document/queryselectorall/index.html +++ b/files/fr/web/api/document/queryselectorall/index.html @@ -19,14 +19,14 @@ translation_of: Web/API/Document/querySelectorAll

    Syntaxe

    -
    elements = document.querySelectorAll(selecteurs);
    +
    elementList = parentNode.querySelectorAll(selectors);
     

    Paramètres

    selecteurs
    -
    une {{domxref("DOMString")}} (chaîne de caractères) qui contient un ou plusieurs sélecteurs CSS ; s'il n'y en a pas, une exception  SyntaxError est lancée. Voir localisation des éléments DOM avec les sélecteurs pour plus d'informations sur l'utilisation des sélecteurs en vue d'identifier les éléments. Plusieurs sélecteurs peuvent être spécifiés, séparés par une virgule.
    +
    une {{domxref("DOMString")}} (chaîne de caractères) qui contient un ou plusieurs sélecteurs CSS ; s'il n'y en a pas, une exception  SyntaxError est lancée. Voir localisation des éléments DOM avec les sélecteurs pour plus d'informations sur l'utilisation des sélecteurs en vue d'identifier les éléments. Plusieurs sélecteurs peuvent être spécifiés, séparés par une virgule.
    @@ -38,7 +38,7 @@ translation_of: Web/API/Document/querySelectorAll

    Une {{domxref("NodeList")}} statique contenant un objet {{domxref("Element")}} pour chaque élément qui correspond à au-moins un des sélecteurs spécifiés ou une {{domxref("NodeList")}} vide si aucune correspondance n'est trouvée .

    -

    Note :  si les selectors spécifiés contiennent un pseudo-element CSS, la liste retournée sera toujours vide.

    +

    Note :  si les selectors spécifiés contiennent un pseudo-element CSS, la liste retournée sera toujours vide.

    Exceptions

    @@ -52,26 +52,26 @@ translation_of: Web/API/Document/querySelectorAll

    Pour obtenir une {{domxref("NodeList")}} (liste de noeuds) de tous les éléments {{HTMLElement("p")}}  dans le document :

    -
    var matches = document.querySelectorAll("p");
    +
    const matches = document.querySelectorAll("p");

    Cet exemple renvoie la liste de tous les éléments div du document dont l'attribut de classe a pour valeur "note" ou "alert" :

    -
    var matches = document.querySelectorAll("div.note, div.alert");
    +
    const matches = document.querySelectorAll("div.note, div.alert");
     

    Ici, nous obtenons une liste des éléments <p> dont l'élément parent immédiat est un {{domxref("div")}} avec la classe "highlighted" et qui sont situés dans un conteneur dont l'identifiant est "test".

    -
    var container = document.querySelector("#test");
    -var matches = container.querySelectorAll("div.highlighted > p");
    +
    const container = document.querySelector("#test");
    +const matches = container.querySelectorAll("div.highlighted > p");

    Cet exemple utilise un sélecteur d'attribut pour renvoyer une liste d'éléments {{domxref("iframe")}} dans le document qui contient un attribut nommé "data-src" :

    -
    var matches = document.querySelectorAll("iframe[data-src]");
    +
    const matches = document.querySelectorAll("iframe[data-src]");

    Ici, un sélecteur d'attribut est utilisé pour renvoyer une liste d'éléments de liste contenus dans une liste dont l'identifiant est "userlist" lequel a un attribut "data-active" dont la valeur est "1":

    -
    var container = document.querySelector("#userlist");
    -var matches = container.querySelectorAll("li[data-active=1]");
    +
    const container = document.querySelector("#userlist");
    +const matches = container.querySelectorAll("li[data-active='1']");

    Accès aux correspondances

    @@ -79,11 +79,11 @@ translation_of: Web/API/Document/querySelectorAll

    Sinon, vous pouvez simplement utiliser la notation de tableau standard pour accéder au contenu de la liste. Vous pouvez utiliser n'importe quelle instruction de boucle commune, telle que :

    -
    var highlightedItems = userList.querySelectorAll(".highlighted");
    +
    const highlightedItems = userList.querySelectorAll(".highlighted");
     
    -highlightedItems.forEach(function(userItem) {
    -  deleteUser(userItem);
    -});
    +highlightedItems.forEach(function(userItem) { + deleteUser(userItem); +});

    Notes d'utilisation

    @@ -93,26 +93,26 @@ highlightedItems. -
    <div class="outer">
    -  <div class="select">
    -    <div class="inner">
    -    </div>
    -  </div>
    -</div>
    +
    <div class="outer">
    +  <div class="select">
    +    <div class="inner">
    +    </div>
    +  </div>
    +</div>

    JavaScript

    -
    var select = document.querySelector('.select');
    -var inner = select.querySelectorAll('.outer .inner');
    -inner.length; // 1, pas 0!
    +
    const select = document.querySelector('.select');
    +const inner = select.querySelectorAll('.outer .inner');
    +inner.length; // 1, not 0!

    Dans cet exemple, lors de la sélection de ".outer .inner" dans le contexte, le <div> avec la classe "select", l'élément avec la classe ".inner" est toujours trouvé, même si .outer n'est pas un descendant de l'élément de base sur lequel la recherche (".select") est effectuée. Par défaut, querySelectorAll() vérifie uniquement que le dernier élément du sélecteur se trouve dans la portée de la recherche.

    La pseudo-classe {{cssxref (":scope")}} restaure le comportement attendu, ne faisant correspondre les sélecteurs que sur les descendants de l'élément de base :

    -
    var select = document.querySelector('.select');
    -var inner = select.querySelectorAll(':scope .outer .inner');
    -inner.length; // 0
    +
    const select = document.querySelector('.select');
    +const inner = select.querySelectorAll(':scope .outer .inner');
    +inner.length; // 0

    Spécification

    @@ -148,85 +148,17 @@ inner.lengthCompatibilité des navigateurs -
    {{CompatibilityTable}}
    - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
    Basic support1{{CompatGeckoDesktop("1.9.1")}}8103.2 (525.3)
    :scope pseudo-class{{ CompatVersionUnknown }}32{{CompatNo}}15[1]7.0
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
    Basic support{{CompatVersionUnknown}}{{CompatGeckoMobile("1.9.1")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
    :scope pseudo-class{{ CompatUnknown }}32{{CompatNo}}{{CompatNo}}7.0
    -
    - -

    [1] Pris en charge dans Opera 15+ en activant les marques "Enable <style scoped>" ou "Enable experimental Web Platform features" dans chrome://flags.

    -
    +

    {{Compat("api.Document.querySelectorAll")}}

    Voir aussi

    -
    diff --git a/files/fr/web/api/document/registerelement/index.html b/files/fr/web/api/document/registerelement/index.html index 8f937a8180..352cc8b6e9 100644 --- a/files/fr/web/api/document/registerelement/index.html +++ b/files/fr/web/api/document/registerelement/index.html @@ -58,55 +58,7 @@ montag.textContent = "Je suis un élément mon-tag.";

    Compatibilité avec les navigateurs

    -

    {{CompatibilityTable}}

    - -
    - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeFirefox (Gecko)Internet ExplorerOperaSafari
    Basic support3531[1]{{CompatNo}}25{{CompatNo}}
    -
    - -
    - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
    Basic support4.4.431[1]{{CompatNo}}25{{CompatNo}}
    -
    - -

    [1] Cette API est implantée mais doit être activée dans les préférences.

    +

    {{Compat("api.Document.registerElement")}}

    Voir aussi

    diff --git a/files/fr/web/api/document/scripts/index.html b/files/fr/web/api/document/scripts/index.html index 1e7fe75f40..e6b957e69d 100644 --- a/files/fr/web/api/document/scripts/index.html +++ b/files/fr/web/api/document/scripts/index.html @@ -1,72 +1,55 @@ --- title: Document.scripts slug: Web/API/Document/scripts +tags: + - API + - Document + - HTML DOM + - Property + - Reference translation_of: Web/API/Document/scripts --- -
    - {{ApiRef}}
    -

     

    -

    Retourne une liste des scripts (éléments {{HTMLElement("script")}}) présents dans le document. L'objet retourné est une liste du type {{domxref("HTMLCollection")}}.

    -

    Syntaxe

    -
    var scriptList = document.scripts;
    +
    {{ApiRef}}
    + +

    Retourne une liste des scripts (éléments {{HTMLElement("script")}}) présents dans le document. L'objet retourné est une liste du type {{domxref("HTMLCollection")}}.

    + +

    Syntaxe

    + +
    var scriptList = document.scripts;
     
    +

    La liste scriptList est un objet {{domxref("HTMLCollection")}} qu'on peut utiliser comme un tableau pour accéder aux éléments qu'elle contient.

    -

    Exemple

    + +

    Exemple

    +

    Cet exemple détecte la présence d'éléments {{HTMLElement("script")}} dans le document.

    +
    var scripts = document.scripts;
     
     if (scripts.length) {
       alert("This page has scripts!");
     }
     
    -

    Browser compatibility

    -
    - {{CompatibilityTable}}
    -
    - - - - - - - - - - - - - - - - - - - -
    FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
    Basic support{{CompatVersionUnknown}}{{CompatGeckoDesktop("9.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
    -
    -
    - + +

    Spécifications

    + +
    + + + + + + + - - - - - - - - - - - - - - - - + + + + + -
    SpécificationStatutCommentaire
    FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
    Basic support{{CompatVersionUnknown}}{{CompatGeckoMobile("9.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
    {{SpecName('HTML WHATWG', '#dom-document-scripts', 'Document.scripts')}}{{ Spec2('HTML WHATWG') }}
    -
    -

    Specification

    -
      -
    • {{spec("http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-scripts", "DOM: document scripts")}}
    • -
    + + +

    Compatibilité des navigateurs

    + +
    {{Compat("api.Document.scripts")}}
    diff --git a/files/fr/web/api/document/touchend_event/index.html b/files/fr/web/api/document/touchend_event/index.html index f7067637ab..f31ff40c44 100644 --- a/files/fr/web/api/document/touchend_event/index.html +++ b/files/fr/web/api/document/touchend_event/index.html @@ -114,68 +114,7 @@ translation_of: Web/API/Document/touchend_event

    Compatibilité des navigateurs

    -

    {{CompatibilityTable}}

    - -
    - - - - - - - - - - - - - - - - - - - - - -
    FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
    Basic support{{CompatChrome("22.0")}}{{CompatVersionUnknown}}{{CompatGeckoDesktop("18.0")}}[1]
    - {{CompatGeckoDesktop("52.0")}}[2]
    {{CompatNo}}{{CompatNo}}{{CompatNo}}
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    FeatureAndroidAndroid WebviewChrome for AndroidEdgeFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
    Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile("6.0")}}{{CompatVersionUnknown}}11{{CompatVersionUnknown}}{{CompatVersionUnknown}}
    -
    - -

    [1] Les Touch events ont été implémentés dans Gecko 18.0, mais ont été supprimés dans la version 24.0 {{geckoRelease("24.0")}} dans la version bureau en raison de problèmes d'incompatibilités ({{bug(888304)}}).

    - -

    [2] Depuis 52.0, le support des Touch events a été réparé et réactivé dans les versions bureau de Windows.

    +

    {{Compat("api.Document.touchend_event")}}

    Voir aussi

    diff --git a/files/fr/web/api/document/visibilitystate/index.html b/files/fr/web/api/document/visibilitystate/index.html index 4f8c7ec071..2ff5dcc883 100644 --- a/files/fr/web/api/document/visibilitystate/index.html +++ b/files/fr/web/api/document/visibilitystate/index.html @@ -54,70 +54,4 @@ translation_of: Web/API/Document/visibilityState

    Compatibilité des navigateurs

    -

    {{CompatibilityTable}}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
    Basic support13 {{property_prefix("webkit")}}
    - 33
    {{CompatGeckoDesktop(18)}} [2]1012.10[1]7
    prerender{{CompatVersionUnknown}}{{CompatGeckoDesktop(49)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    FonctionnalitéAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
    Basic support4.4 {{property_prefix("webkit")}}{{CompatGeckoMobile(18)}} [2]{{CompatUnknown}}12.10[1]7
    prerender{{CompatVersionUnknown}}{{CompatGeckoMobile(49)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
    -
    - -

    [1] Ne lance pas l'évènement {{event('visibilitychange')}} lorsque la fenêtre du navigateur est réduite, ni si hidden est défini à true.

    - -

    [2] De Firefox 10 à Firefox 51 inclus, cette propriété peut être utilisée avec le préfixe -moz-.

    +

    {{Compat("api.Document.visibilityState")}}

    -- cgit v1.2.3-54-g00ecf