aboutsummaryrefslogtreecommitdiff
path: root/files/ar/web/api
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-04-29 16:16:42 -0700
committerGitHub <noreply@github.com>2021-04-29 16:16:42 -0700
commit95aca4b4d8fa62815d4bd412fff1a364f842814a (patch)
tree5e57661720fe9058d5c7db637e764800b50f9060 /files/ar/web/api
parentee3b1c87e3c8e72ca130943eed260ad642246581 (diff)
downloadtranslated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip
remove retired locales (#699)
Diffstat (limited to 'files/ar/web/api')
-rw-r--r--files/ar/web/api/attr/index.html157
-rw-r--r--files/ar/web/api/canvas_api/index.html169
-rw-r--r--files/ar/web/api/document/designmode/index.html110
-rw-r--r--files/ar/web/api/document/index.html461
-rw-r--r--files/ar/web/api/domtokenlist/index.html117
-rw-r--r--files/ar/web/api/domtokenlist/length/index.html62
-rw-r--r--files/ar/web/api/element/classname/index.html137
-rw-r--r--files/ar/web/api/element/closest/index.html148
-rw-r--r--files/ar/web/api/element/index.html656
-rw-r--r--files/ar/web/api/element/insertadjacenthtml/index.html102
-rw-r--r--files/ar/web/api/event/index.html136
-rw-r--r--files/ar/web/api/geolocation/index.html118
-rw-r--r--files/ar/web/api/geolocation_api/index.html295
-rw-r--r--files/ar/web/api/geolocation_api/using_the_geolocation_api/index.html167
-rw-r--r--files/ar/web/api/history_api/example/index.html417
-rw-r--r--files/ar/web/api/history_api/index.html262
-rw-r--r--files/ar/web/api/htmlelement/contenteditable/index.html75
-rw-r--r--files/ar/web/api/htmlelement/index.html400
-rw-r--r--files/ar/web/api/index.html15
-rw-r--r--files/ar/web/api/navigator/battery/index.html32
-rw-r--r--files/ar/web/api/navigator/index.html155
-rw-r--r--files/ar/web/api/node/index.html381
-rw-r--r--files/ar/web/api/node/removechild/index.html144
-rw-r--r--files/ar/web/api/window/alert/index.html77
-rw-r--r--files/ar/web/api/window/domcontentloaded_event/index.html72
-rw-r--r--files/ar/web/api/window/index.html708
-rw-r--r--files/ar/web/api/xsltprocessor/basic_example/index.html57
-rw-r--r--files/ar/web/api/xsltprocessor/index.html138
28 files changed, 0 insertions, 5768 deletions
diff --git a/files/ar/web/api/attr/index.html b/files/ar/web/api/attr/index.html
deleted file mode 100644
index 0b01877112..0000000000
--- a/files/ar/web/api/attr/index.html
+++ /dev/null
@@ -1,157 +0,0 @@
----
-title: Attr
-slug: Web/API/Attr
-translation_of: Web/API/Attr
----
-<h4 id="APIRefDOM">{{APIRef("DOM")}}</h4>
-
-<p>The <code><strong>Attr</strong></code> interface represents one of a DOM element's attributes as an object. In most DOM methods, you will directly retrieve the attribute as a string (e.g., {{domxref("Element.getAttribute()")}}), but certain functions (e.g., {{domxref("Element.getAttributeNode()")}}) or means of iterating return <code>Attr</code> types.</p>
-
-<p>{{InheritanceDiagram}}</p>
-
-<div class="warning"><strong>Warning: </strong>Starting in Gecko 7.0 {{geckoRelease("7.0")}}, a number of deprecated properties and methods output warning messages to the console. You should revise your code accordingly. See <a href="#Deprecated_properties_and_methods">Deprecated properties and methods</a> for a complete list.</div>
-
-<h2 id="Properties">Properties</h2>
-
-<dl>
- <dt>{{domxref("Attr.name", "name")}} {{readOnlyInline}}</dt>
- <dd>The attribute's name.</dd>
- <dt>{{domxref("Attr.namespaceURI", "namespaceURI")}} {{readOnlyInline}}</dt>
- <dd>A {{domxref("DOMString")}} representing the namespace URI of the attribute, or <code>null</code> if there is no namespace.</dd>
- <dt>{{domxref("Attr.localName", "localName")}} {{readOnlyInline}}</dt>
- <dd>A {{domxref("DOMString")}} representing the local part of the qualified name of the attribute.</dd>
- <dt>{{domxref("Attr.prefix", "prefix")}} {{readOnlyInline}}</dt>
- <dd>A {{domxref("DOMString")}} representing the namespace prefix of the attribute, or <code>null</code> if no prefix is specified.</dd>
- <dt>{{domxref("Attr.ownerElement", "ownerElement")}} {{readOnlyInline}}</dt>
- <dd>
- <p>The element holding the attribute.</p>
-
- <div class="note">
- <p><strong>Note:</strong> DOM Level 4 removed this property. The assumption was that since you get an <code>Attr</code> object from an {{domxref("Element")}}, you should already know the associated element.<br>
- As that doesn't hold true in cases like <code>Attr</code> objects being returned by {{domxref("Document.evaluate")}}, the DOM Living Standard reintroduced the property.</p>
-
- <p>Gecko outputs a deprecation note starting from Gecko 7.0 {{geckoRelease("7.0")}}. This note was removed again in Gecko 49.0 {{geckoRelease("49.0")}}.</p>
- </div>
- </dd>
- <dt>{{domxref("Attr.specified", "specified")}} {{readOnlyInline}}</dt>
- <dd>This property always returns <code>true</code>. Originally, it returned <code>true </code>if the attribute was explicitly specified in the source code or by a script, and <code>false</code> if its value came from the default one defined in the document's <acronym title="Document Type Definition">DTD</acronym>.</dd>
- <dt>{{domxref("Attr.value", "value")}}</dt>
- <dd>The attribute's value.</dd>
-</dl>
-
-<div class="note">
-<p><strong>Note:</strong> DOM Level 3 defined <code>namespaceURI</code>, <code>localName</code> and <code>prefix</code> on the {{domxref("Node")}} interface. In DOM4 they were moved to <code>Attr</code>.</p>
-
-<p>This change is implemented in Chrome since version 46.0 and Firefox since version 48.0.</p>
-</div>
-
-<h2 id="Deprecated_properties_and_methods">Deprecated properties and methods</h2>
-
-<p>The following properties have been deprecated. Where available, the appropriate replacement is noted.</p>
-
-<dl>
- <dt><code>attributes</code></dt>
- <dd>This property now always returns <code>NULL</code>.</dd>
- <dt><code>childNodes</code> {{obsolete_inline(14)}}</dt>
- <dd>This property now always returns an empty {{domxref("NodeList")}}.</dd>
- <dt><code>firstChild</code> {{obsolete_inline(14)}}</dt>
- <dd>This property now always returns <code>NULL</code>.</dd>
- <dt><code>isId</code> {{readOnlyInline}}</dt>
- <dd>Indicates whether the attribute is an "ID attribute". An "ID attribute" being an attribute which value is expected to be unique across a DOM Document. In HTML DOM, "id" is the only ID attribute, but XML documents could define others. Whether or not an attribute is unique is often determined by a {{Glossary("DTD")}} or other schema description.</dd>
- <dt><code>lastChild</code> {{obsolete_inline(14)}}</dt>
- <dd>This property now always returns <code>NULL</code>.</dd>
- <dt><code>nextSibling</code></dt>
- <dd>This property now always returns <code>NULL</code>.</dd>
- <dt><code>nodeName</code></dt>
- <dd>Use {{domxref("Attr.name")}} instead.</dd>
- <dt><code>nodeType</code></dt>
- <dd>This property now always returns 2 (<code>ATTRIBUTE_NODE</code>).</dd>
- <dt><code>nodeValue</code></dt>
- <dd>Use {{domxref("Attr.value")}} instead.</dd>
- <dt><code>ownerDocument</code></dt>
- <dd>You shouldn't have been using this in the first place, so you probably don't care that this is going away.</dd>
- <dt><code>parentNode</code></dt>
- <dd>This property now always returns <code>NULL</code>.</dd>
- <dt><code>previousSibling</code></dt>
- <dd>This property now always returns <code>NULL</code>.</dd>
- <dt><code>schemaTypeInfo</code> {{obsolete_inline}} {{readOnlyInline}}</dt>
- <dd>The type information associated with this attribute. While the type information contained in this attribute is guaranteed to be correct after loading the document or invoking {{domxref("Document.normalizeDocument")}}, this property may not be reliable if the node was moved.</dd>
- <dt><code>specified</code></dt>
- <dd>This property now always returns <code>true</code>.</dd>
- <dt><code>textContent</code></dt>
- <dd>Use {{domxref("Attr.value")}} instead.</dd>
-</dl>
-
-<p>The following methods have been deprecated:</p>
-
-<dl>
- <dt><code>appendChild()</code> {{obsolete_inline(14)}}</dt>
- <dd>Modify the value of {{domxref("Attr.value")}} instead.</dd>
- <dt><code>cloneNode()</code></dt>
- <dd>You shouldn't have been using this in the first place, so you probably don't care that this is going away.</dd>
- <dt><code>createAttribute()</code></dt>
- <dd>Use {{domxref("Element.setAttribute()")}} instead.</dd>
- <dt><code>createAttributeNS()</code></dt>
- <dd>Use {{domxref("Element.setAttributeNS()")}} instead.</dd>
- <dt><code>getAttributeNode()</code></dt>
- <dd>Use {{domxref("Element.getAttribute()")}} instead.</dd>
- <dt><code>getAttributeNodeNS()</code></dt>
- <dd>Use {{domxref("Element.getAttributeNS()")}} instead.</dd>
- <dt><code>hasAttributes()</code> {{obsolete_inline("21.0")}}</dt>
- <dd>This method now always returns false.</dd>
- <dt><code>hasChildNodes()</code></dt>
- <dd>This method now always returns false.</dd>
- <dt><code>insertBefore()</code></dt>
- <dd>Modify the value of {{domxref("Attr.value")}} instead.</dd>
- <dt><code>isSupported()</code></dt>
- <dd>You shouldn't have been using this in the first place, so you probably don't care that this is going away.</dd>
- <dt><code>isEqualNode()</code></dt>
- <dd>You shouldn't have been using this in the first place, so you probably don't care that this is going away.</dd>
- <dt><code>normalize()</code></dt>
- <dd>You shouldn't have been using this in the first place, so you probably don't care that this is going away.</dd>
- <dt><code>removeAttributeNode()</code></dt>
- <dd>Use {{domxref("Element.removeAttribute()")}} instead.</dd>
- <dt><code>removeChild()</code> {{obsolete_inline(14)}}</dt>
- <dd>Modify the value of {{domxref("Attr.value")}} instead.</dd>
- <dt><code>replaceChild()</code> {{obsolete_inline(14)}}</dt>
- <dd>Modify the value of {{domxref("Attr.value")}} instead.</dd>
- <dt><code>setAttributeNode()</code></dt>
- <dd>Use {{domxref("Element.setAttribute()")}} instead.</dd>
- <dt><code>setAttributeNodeNS()</code></dt>
- <dd>Use {{domxref("Element.setAttributeNS()")}} instead.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("DOM WHATWG", "#interface-attr", "Attr")}}</td>
- <td>{{Spec2("DOM WHATWG")}}</td>
- <td>Added <code>ownerElement</code> property back</td>
- </tr>
- <tr>
- <td>{{SpecName("DOM4", "#interface-attr", "Attr")}}</td>
- <td>{{Spec2("DOM4")}}</td>
- <td>Moved <code>namespaceURI</code>, <code>prefix</code> and <code>localName</code> from {{domxref("Node")}} to this API and removed <code>ownerElement</code>, <code>schemaTypeInfo</code> and <code>isId</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName("DOM3 Core", "core.html#ID-637646024", "Attr")}}</td>
- <td>{{Spec2("DOM3 Core")}}</td>
- <td>Initial definition</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.Attr")}}</p>
diff --git a/files/ar/web/api/canvas_api/index.html b/files/ar/web/api/canvas_api/index.html
deleted file mode 100644
index e28c5e7a96..0000000000
--- a/files/ar/web/api/canvas_api/index.html
+++ /dev/null
@@ -1,169 +0,0 @@
----
-title: الواجهة البرمجية لرقعة الرسم
-slug: Web/API/Canvas_API
-tags:
- - API
- - رقعة رسم
- - مرجع
- - نظرة عامة
-translation_of: Web/API/Canvas_API
----
-<div>{{CanvasSidebar}}</div>
-
-<p class="summary">في <a href="/en-US/docs/HTML/HTML5">HTML5</a>، أُضيف عنصر HTML ‏{{HTMLElement("canvas")}} والذي يمكن استخدامه لرسم الرسوميات ببرمجتها عبر <a href="/en-US/docs/Web/JavaScript">جافاسكربت</a>. فمثلا، يمكن استخدامها لرسم الرسوم البيانية، أو تراكبات الصور، أو إنشاء الحركات أو حتى معالجة الفديوهات آنيا وتصييرها.</p>
-
-<p>حصلت تطبيقات موزيلا على دعم <code>&lt;canvas&gt;</code> بدءًا من إصدارة جيكو رقم ١٫٨ (أي <a href="/en-US/docs/Mozilla/Firefox/Releases/1.5">فَيَرفُكس ١٫٥</a>). طُوّر هذا العنصر على يد شركة آبل للوحة أوإس إكس وسفاري. يدعم إنترنت إكسبلورر <code>&lt;canvas&gt;</code> بدءًا من الإصدارة التاسعة فما فوق، بينما الإصدارات الأقدم منه تحتاج سكربتا ليعمل عنصر رقعة الرسم بكفاءة، هذا السكربت هو من مشروع جوجل باسم <a href="https://github.com/arv/explorercanvas">Explorer Canvas</a>. يدعم جوجل كروم وأوبرا ٩ عتصر <code>&lt;canvas&gt;</code> أيضا.</p>
-
-<p>يُستخدم عنصر <code>&lt;canvas&gt;</code> في تقنية <a href="/en-US/docs/Web/WebGL">WebGL</a> أيضا لرسم الرسومات ثلاثية الأبعاد على صفحات الوب بتسريع عتادي.</p>
-
-<h2 id="مثال">مثال</h2>
-
-<p>هذه عيّنة مقتطفة من كود يستخدم طريقة {{domxref("CanvasRenderingContext2D.fillRect()")}}.</p>
-
-<h3 id="HTML">HTML</h3>
-
-<pre class="brush: html">&lt;canvas id="canvas"&gt;&lt;/canvas&gt;
-</pre>
-
-<h3 id="جافاسكربت">جافاسكربت</h3>
-
-<pre class="brush: js">var canvas = document.getElementById('canvas');
-var ctx = canvas.getContext('2d');
-
-ctx.fillStyle = 'green';
-ctx.fillRect(10, 10, 100, 100);
-</pre>
-
-<p>حرّر الكود أدناه لترى التغييرات تحدث آنيا في رقعة الرسم:</p>
-
-<div class="hidden">
-<h6 id="Playable_code">Playable code</h6>
-
-<pre class="brush: html">&lt;canvas id="canvas" width="400" height="200" class="playable-canvas"&gt;&lt;/canvas&gt;
-&lt;div class="playable-buttons"&gt;
-  &lt;input id="edit" type="button" value="Edit" /&gt;
-  &lt;input id="reset" type="button" value="Reset" /&gt;
-&lt;/div&gt;
-&lt;textarea id="code" class="playable-code"&gt;
-ctx.fillStyle = 'green';
-ctx.fillRect(10, 10, 100, 100);&lt;/textarea&gt;
-</pre>
-
-<pre class="brush: js">var canvas = document.getElementById('canvas');
-var ctx = canvas.getContext("2d");
-var textarea = document.getElementById('code');
-var reset = document.getElementById('reset');
-var edit = document.getElementById('edit');
-var code = textarea.value;
-
-function drawCanvas() {
- ctx.clearRect(0, 0, canvas.width, canvas.height);
- eval(textarea.value);
-}
-
-reset.addEventListener('click', function() {
- textarea.value = code;
- drawCanvas();
-});
-
-edit.addEventListener('click', function() {
- textarea.focus();
-})
-
-textarea.addEventListener('input', drawCanvas);
-window.addEventListener('load', drawCanvas);
-</pre>
-</div>
-
-<p>{{ EmbedLiveSample('Playable_code', 700, 360) }}</p>
-
-<h2 id="المرجع">المرجع</h2>
-
-<div class="index">
-<ul>
- <li>{{domxref("HTMLCanvasElement")}}</li>
- <li>{{domxref("CanvasRenderingContext2D")}}</li>
- <li>{{domxref("CanvasGradient")}}</li>
- <li>{{domxref("CanvasImageSource")}}</li>
- <li>{{domxref("CanvasPattern")}}</li>
- <li>{{domxref("ImageBitmap")}}</li>
- <li>{{domxref("ImageData")}}</li>
- <li>{{domxref("RenderingContext")}}</li>
- <li>{{domxref("TextMetrics")}}</li>
- <li>{{domxref("OffscreenCanvas")}}{{experimental_inline}}</li>
- <li>{{domxref("Path2D")}} {{experimental_inline}}{{domxref("ImageBitmapRenderingContext")}}{{experimental_inline}}</li>
-</ul>
-</div>
-
-<p>الواجهات المتعلقة بِ‍ <code>WebGLRenderingContext</code> مذكورة في مرجع <a href="/en-US/docs/Web/WebGL" title="/en-US/docs/Web/WebGL">WebGL</a>.</p>
-
-<p>واجهة {{domxref("CanvasCaptureMediaStream")}} لها علاقة أيضا.</p>
-
-<h2 id="الأدلة_والدروس">الأدلة والدروس</h2>
-
-<dl>
- <dt><a href="/en-US/docs/Web/API/Canvas_API/Tutorial">درس رقعة الرسم</a></dt>
- <dd>درس شامل يغطي كلا من الاستخدام البسيط لرقعة الرسم <code>&lt;canvas&gt;</code> وأيضا مزاياها المتقدمة.</dd>
- <dt><a href="/en-US/Add-ons/Code_snippets/Canvas">مقتطفات من كود: رقعة الرسم</a></dt>
- <dd>بعض المقتطفات المخصصة لمطوري الامتدادات والتي تستخدم  <code>&lt;canvas&gt;</code>.</dd>
- <dt><a href="/en-US/docs/Web/API/Canvas_API/A_basic_ray-caster">Demo: A basic ray-caster</a></dt>
- <dd>عرض لحركة تعقّب الأشعة باستخدام رقعة الرسم.</dd>
- <dt><a href="/en-US/docs/Web/API/Canvas_API/Drawing_DOM_objects_into_a_canvas">رسم كائنات DOM في رقعة رسم</a></dt>
- <dd>طريقة رسم محتوى DOM (مثل عناصر HTML) في رقعة رسم.</dd>
- <dt><a href="/en-US/docs/Web/API/Canvas_API/Manipulating_video_using_canvas">التعديل على الفديو باستخدام رقعة الرسم</a></dt>
- <dd>يمكنك بدمج {{HTMLElement("video")}} و{{HTMLElement("canvas")}} التلاعب والتعديل على الفديو آنيا.</dd>
-</dl>
-
-<h2 id="الموارد">الموارد</h2>
-
-<h3 id="عامة">عامة</h3>
-
-<ul>
- <li><a href="http://joshondesign.com/p/books/canvasdeepdive/title.html">HTML5 Canvas Deep Dive</a></li>
- <li><a href="http://bucephalus.org/text/CanvasHandbook/CanvasHandbook.html">كتيّب رقعة الرسم</a></li>
-</ul>
-
-<h3 id="المكتبات">المكتبات</h3>
-
-<ul>
- <li><a href="http://fabricjs.com">Fabric.js</a> مكتبة رقعة رسم مفتوحة المصدر تأتي بإمكانيات تحليل SVG.</li>
- <li><a href="https://github.com/ericdrowell/KineticJS">Kinetic.js</a> مكتبة رقعة رسم مفتوحة المصدر تركز على التفاعل في تطبيقات سطح المكتب والمحمول.</li>
- <li><a href="http://paperjs.org/">Paper.js</a> إطار عمل رسوميات متجهية مفتوح المصدر يعمل على رقعة رسم HTML5.</li>
- <li><a href="http://origamijs.com/docs/">Origami.js</a> مكتبة رقعة رسم خفيفة مفتوحة المصدر.</li>
- <li><a href="http://libcanvas.github.com/">libCanvas</a> إطار عمل رقعة رسم خفيف وقوي.</li>
- <li><a href="http://processingjs.org">Processing.js</a> نقل للغة التمثيل Processing.</li>
- <li><a href="https://playcanvas.com/">PlayCanvas</a> محرّك ألعاب مفتوح المصدر.</li>
- <li><a href="http://www.pixijs.com/">Pixi.js</a> محرّك ألعاب مفتوح المصدر.</li>
- <li><a href="http://www.liquidx.net/plotkit/">PlotKit</a> مكتبة للرسوم البيانية.</li>
- <li><a class="link-https" href="https://github.com/jeremyckahn/rekapi">Rekapi</a> واجهة برمجة تطبيقات تتعامل مع الإطارات المفتاحية للحركات لرقعة الرسم.</li>
- <li><a href="http://senchalabs.github.com/philogl/">PhiloGL</a> إطار عمل WebGL لتمثيل البيانات، والبرمجة الخلّاقة وتطوير الألعاب.</li>
- <li><a href="http://thejit.org/">JavaScript InfoVis Toolkit</a> تُنشئ تمثيلات بيانات لرقعة الرسم ثنائية الأبعاد تفاعلية للوب.</li>
- <li><a href="http://www.createjs.com/easeljs">EaselJS</a> مكتبة مفتوحة المصدر حرة تسهّل استخدام رقعة الرسم للألعاب والفنون.</li>
- <li><a href="http://scrawl.rikweb.org.uk/">Scrawl-canvas</a> مكتبة جافاسكربت مفتوحة المصدر لإنشاء وتعديل عناصر رقعة الرسم ثنائية الأبعاد.</li>
- <li><a href="https://www.patrick-wied.at/static/heatmapjs/">heatmap.js</a> مكتبة مفتوحة المصدر لإنشاء خرائط حرارية بناء على رقعة الرسم.</li>
-</ul>
-
-<h2 id="المواصفات">المواصفات</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">المواصفة</th>
- <th scope="col">الحالة</th>
- <th scope="col">تعليق</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'scripting.html#the-canvas-element', '&lt;canvas&gt;')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="طالع_أيضا">طالع أيضا</h2>
-
-<ul>
- <li><a href="/en-US/docs/Web/WebGL">WebGL</a></li>
-</ul>
diff --git a/files/ar/web/api/document/designmode/index.html b/files/ar/web/api/document/designmode/index.html
deleted file mode 100644
index 2300a50dd1..0000000000
--- a/files/ar/web/api/document/designmode/index.html
+++ /dev/null
@@ -1,110 +0,0 @@
----
-title: Document.designMode
-slug: Web/API/Document/designMode
-translation_of: Web/API/Document/designMode
----
-<div>{{ ApiRef() }}</div>
-
-<div> </div>
-
-<h2 id="Summary" name="Summary">نبذه مختصره</h2>
-
-<p><code>document.designMode</code></p>
-
-<p>يتحكم بطبيعة عرض كامل المحتوى كـ قابل للتعديل. القيم التي يقبلها هي "<code style="font-style: normal; font-weight: 700;">off"</code> <sup><code>معطل</code></sup>​ و <code style="font-style: normal; font-weight: 700;">"on" مشغل </code> .بحسب تخصيصه. القيمة الافتراضية لهذه الخاصية معطله <code style="font-style: normal; font-weight: 700;">"off"</code>. فايرفوكس يتبع هذا النمط. الاصدارات الحديثة من كروم و إنترنت اكسبلورر القيمة الافتراضية فيها <code style="font-style: normal; font-weight: 700;">"inherit"</code>. بدأً من الاصدار 43 لمتصفح كروم، القيمة الافتراضية هي "<code style="font-style: normal; font-weight: 700;">off</code>" و <code style="font-style: normal; font-weight: 700;">"inherit"</code> لم تعد مدعومه اكثر. في إنترنت اكسبلورر 6 حتى 10، القيمة هي مستثمرة</p>
-
-<h2 id="الصيغة">الصيغة</h2>
-
-<pre class="brush: js">var mode = document.designMode;
-document.designMode = "on";
-document.designMode = "off";</pre>
-
-<h2 id="Example" name="Example">مثال</h2>
-
-<p>جعل عنصر/عناصر <code>ifram </code> قابله للتعديل:</p>
-
-<pre>iframeNode.contentDocument.designMode = "on";
-</pre>
-
-<h2 id="التخصيص">التخصيص</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">الخاصية</th>
- <th scope="col">الحالة</th>
- <th scope="col">تعليق</th>
- </tr>
- <tr>
- <td>{{SpecName('HTML WHATWG', '#making-entire-documents-editable:-the-designmode-idl-attribute', 'designMode')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td>Initial definition.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="دعم_المتصفحات" style="font-size: 2.14285714285714rem;">دعم المتصفحات</h2>
-
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th style="line-height: 16px;">الدعم</th>
- <th style="line-height: 16px;">كروم</th>
- <th style="line-height: 16px;">ايدج</th>
- <th style="line-height: 16px;">فايرفوكس</th>
- <th style="line-height: 16px;">إنترنت اكسبلورر</th>
- <th style="line-height: 16px;">اوبرا</th>
- <th style="line-height: 16px;">سفاري</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th style="line-height: 16px;">Feature</th>
- <th style="line-height: 16px;">Android</th>
- <th style="line-height: 16px;">Android Webview</th>
- <th style="line-height: 16px;">Edge</th>
- <th style="line-height: 16px;">Firefox Mobile (Gecko)</th>
- <th style="line-height: 16px;">IE Mobile</th>
- <th style="line-height: 16px;">Opera Mobile</th>
- <th style="line-height: 16px;">Safari Mobile</th>
- <th style="line-height: 16px;">Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatVersionUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="See_also" name="See_also">شاهد ايضاً</h2>
-
-<ul>
- <li><a href="/en-US/docs/Rich-Text_Editing_in_Mozilla">Rich-Text Editing in Mozilla</a></li>
- <li>{{domxref("HTMLElement.contentEditable")}}</li>
- <li><a href="https://msdn.microsoft.com/en-us/library/ms533720(v=vs.85).aspx">designMode property</a> on MSDN</li>
-</ul>
diff --git a/files/ar/web/api/document/index.html b/files/ar/web/api/document/index.html
deleted file mode 100644
index 0813f488e0..0000000000
--- a/files/ar/web/api/document/index.html
+++ /dev/null
@@ -1,461 +0,0 @@
----
-title: Document
-slug: Web/API/Document
-tags:
- - API
- - DOM
- - Document
- - Interface
- - NeedsTranslation
- - Reference
- - TopicStub
- - whereas
-translation_of: Web/API/Document
----
-<div>{{APIRef}}</div>
-
-<div> </div>
-
-<p><span class="seoSummary">The <strong><code>Document</code></strong> interface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the <a href="/en-US/docs/Using_the_W3C_DOM_Level_1_Core" title="Using_the_W3C_DOM_Level_1_Core">DOM tree</a>.</span> The DOM tree includes elements such as {{HTMLElement("body")}} and {{HTMLElement("table")}}, among <a href="/en-US/docs/Web/HTML/Element">many others</a>. It provides functionality globally to the document, like how to obtain the page's URL and create new elements in the document.</p>
-
-<p>{{inheritanceDiagram}}</p>
-
-<p>The <code>Document</code> interface describes the common properties and methods for any kind of document. Depending on the document's type (e.g. <a href="/en-US/docs/HTML" title="HTML">HTML</a>, <a href="/en-US/docs/XML" title="XML">XML</a>, SVG, …), a larger API is available: HTML documents, served with the <code>text/html</code> content type, also implement the {{domxref("HTMLDocument")}} interface, whereas XML and SVG documents implement the {{domxref("XMLDocument")}} interface.</p>
-
-<h2 id="Properties" name="Properties">Constructor</h2>
-
-<dl>
- <dt>{{domxref("Document.Document","Document()")}}{{non-standard_inline}}</dt>
- <dd>Creates a new <code>Document</code> object.</dd>
-</dl>
-
-<h2 id="Properties" name="Properties">Properties</h2>
-
-<p><em>This interface also inherits from the {{domxref("Node")}} and {{domxref("EventTarget")}} interfaces.</em></p>
-
-<dl>
- <dt>{{domxref("Document.all")}} {{Deprecated_inline}} {{non-standard_inline}}</dt>
- <dd>Provides access to all elements in the document. This is a legacy, non-standard interface and should not be used.</dd>
- <dt>{{domxref("Document.async")}} {{Deprecated_inline}}</dt>
- <dd>Used with {{domxref("Document.load")}} to indicate an asynchronous request.</dd>
- <dt>{{domxref("Document.characterSet")}} {{readonlyinline}}</dt>
- <dd>Returns the character set being used by the document.</dd>
- <dt>{{domxref("Document.charset")}} {{readonlyinline}} {{Deprecated_inline}}</dt>
- <dd>Alias of {{domxref("Document.characterSet")}}. Use this property instead.</dd>
- <dt>{{domxref("Document.compatMode")}} {{readonlyinline}} {{experimental_inline}}</dt>
- <dd>Indicates whether the document is rendered in <em>quirks</em> or <em>strict</em> mode.</dd>
- <dt>{{domxref("Document.contentType")}} {{readonlyinline}} {{experimental_inline}}</dt>
- <dd>Returns the Content-Type from the MIME Header of the current document.</dd>
- <dt>{{domxref("Document.doctype")}} {{readonlyinline}}</dt>
- <dd>Returns the Document Type Definition (DTD) of the current document.</dd>
- <dt>{{domxref("Document.documentElement")}} {{readonlyinline}}</dt>
- <dd>Returns the {{domxref("Element")}} that is a direct child of the document. For HTML documents, this is normally the {{HTMLElement("html")}} element.</dd>
- <dt>{{domxref("Document.documentURI")}} {{readonlyinline}}</dt>
- <dd>Returns the document location as a string.</dd>
- <dt>{{domxref("Document.domConfig")}} {{Deprecated_inline}}</dt>
- <dd>Should return a {{domxref("DOMConfiguration")}} object.</dd>
- <dt>{{domxref("Document.fullscreen")}} {{obsolete_inline}}</dt>
- <dd><code>true</code> when the document is in {{domxref("Using_full-screen_mode","full-screen mode")}}.</dd>
- <dt>{{domxref("Document.hidden")}} {{readonlyinline}}</dt>
- <dd>…</dd>
- <dt>{{domxref("Document.implementation")}} {{readonlyinline}}</dt>
- <dd>Returns the DOM implementation associated with the current document.</dd>
- <dt>{{domxref("Document.inputEncoding")}} {{readonlyinline}} {{Deprecated_inline}}</dt>
- <dd>Alias of {{domxref("Document.characterSet")}}. Use this property instead.</dd>
- <dt>{{domxref("Document.lastStyleSheetSet")}} {{readonlyinline}}</dt>
- <dd>Returns the name of the style sheet set that was last enabled. Has the value <code>null</code> until the style sheet is changed by setting the value of {{domxref("document.selectedStyleSheetSet","selectedStyleSheetSet")}}.</dd>
- <dt>{{domxref("Document.mozSyntheticDocument")}} {{non-standard_inline}} {{gecko_minversion_inline("8.0")}}</dt>
- <dd>Returns a {{jsxref("Boolean")}} that is <code>true</code> only if this document is synthetic, such as a standalone image, video, audio file, or the like.</dd>
- <dt>{{domxref("Document.mozFullScreenElement")}} {{readonlyinline}} {{non-standard_inline}} {{gecko_minversion_inline("9.0")}}</dt>
- <dd>The element that's currently in full screen mode for this document.</dd>
- <dt>{{domxref("Document.mozFullScreenEnabled")}} {{readonlyinline}} {{non-standard_inline}} {{gecko_minversion_inline("9.0")}}</dt>
- <dd><code>true</code> if calling {{domxref("Element.mozRequestFullscreen()")}} would succeed in the curent document.</dd>
- <dt>{{domxref("Document.pointerLockElement")}} {{readonlyinline}} {{experimental_inline}}</dt>
- <dd>Returns the element set as the target for mouse events while the pointer is locked. <code>null</code> if lock is pending, pointer is unlocked, or if the target is in another document.</dd>
- <dt>{{domxref("Document.preferredStyleSheetSet")}} {{readonlyinline}}</dt>
- <dd>Returns the preferred style sheet set as specified by the page author.</dd>
- <dt>{{domxref("Document.scrollingElement")}} {{experimental_inline}} {{readonlyinline}}</dt>
- <dd>Returns a reference to the {{domxref("Element")}} that scrolls the document.</dd>
- <dt>{{domxref("Document.selectedStyleSheetSet")}}</dt>
- <dd>Returns which style sheet set is currently in use.</dd>
- <dt>{{domxref("Document.styleSheets")}} {{readonlyinline}}</dt>
- <dd>Returns a list of the style sheet objects on the current document.</dd>
- <dt>{{domxref("Document.styleSheetSets")}} {{readonlyinline}}</dt>
- <dd>Returns a list of the style sheet sets available on the document.</dd>
- <dt>{{domxref("Document.timeline")}} {{readonlyinline}}</dt>
- <dd>…</dd>
- <dt>{{domxref("Document.undoManager")}} {{readonlyinline}} {{experimental_inline}}</dt>
- <dd>…</dd>
- <dt>{{domxref("Document.visibilityState")}} {{readonlyinline}}</dt>
- <dd>
- <p>Returns a <code>string</code> denoting the visibility state of the document. Possible values are <code>visible</code>,  <code>hidden</code>,  <code>prerender</code>, and <code>unloaded</code>.</p>
- </dd>
- <dt>{{domxref("Document.xmlEncoding")}} {{Deprecated_inline}}</dt>
- <dd>Returns the encoding as determined by the XML declaration.</dd>
- <dt>{{domxref("Document.xmlStandalone")}} {{obsolete_inline("10.0")}}</dt>
- <dd>Returns <code>true</code> if the XML declaration specifies the document to be standalone (<em>e.g.,</em> An external part of the DTD affects the document's content), else <code>false</code>.</dd>
- <dt>{{domxref("Document.xmlVersion")}} {{obsolete_inline("10.0")}}</dt>
- <dd>Returns the version number as specified in the XML declaration or <code>"1.0"</code> if the declaration is absent.</dd>
-</dl>
-
-<p>The <code>Document</code> interface is extended with the {{domxref("ParentNode")}} interface:</p>
-
-<p>{{page("/en-US/docs/Web/API/ParentNode","Properties")}}</p>
-
-<h3 id="Extension_for_HTML_document">Extension for HTML document</h3>
-
-<p><em>The <code>Document</code> interface for HTML documents inherits from the {{domxref("HTMLDocument")}} interface or, since HTML5,  is extended for such documents.</em></p>
-
-<dl>
- <dt>{{domxref("Document.activeElement")}} {{readonlyinline}}</dt>
- <dd>Returns the currently focused element.</dd>
- <dt>{{domxref("Document.alinkColor")}} {{Deprecated_inline}}</dt>
- <dd>Returns or sets the color of active links in the document body.</dd>
- <dt>{{domxref("Document.anchors")}}</dt>
- <dd>Returns a list of all of the anchors in the document.</dd>
- <dt>{{domxref("Document.applets")}} {{Deprecated_inline}}</dt>
- <dd>Returns an ordered list of the applets within a document.</dd>
- <dt>{{domxref("Document.bgColor")}} {{Deprecated_inline}}</dt>
- <dd>Gets/sets the background color of the current document.</dd>
- <dt>{{domxref("Document.body")}}</dt>
- <dd>Returns the {{HTMLElement("body")}} element of the current document.</dd>
- <dt>{{domxref("Document.cookie")}}</dt>
- <dd>Returns a semicolon-separated list of the cookies for that document or sets a single cookie.</dd>
- <dt>{{domxref("Document.defaultView")}} {{readonlyinline}}</dt>
- <dd>Returns a reference to the window object.</dd>
- <dt>{{domxref("Document.designMode")}}</dt>
- <dd>Gets/sets the ability to edit the whole document.</dd>
- <dt>{{domxref("Document.dir")}} {{readonlyinline}}</dt>
- <dd>Gets/sets directionality (rtl/ltr) of the document.</dd>
- <dt>{{domxref("Document.domain")}}</dt>
- <dd>Gets/sets the domain of the current document.</dd>
- <dt>{{domxref("Document.embeds")}} {{readonlyinline}}</dt>
- <dd>Returns a list of the embedded {{HTMLElement('embed')}} elements within the current document.</dd>
- <dt>{{domxref("document.fgColor")}} {{Deprecated_inline}}</dt>
- <dd>Gets/sets the foreground color, or text color, of the current document.</dd>
- <dt>{{domxref("Document.forms")}} {{readonlyinline}}</dt>
- <dd>Returns a list of the {{HTMLElement("form")}} elements within the current document.</dd>
- <dt>{{domxref("Document.head")}} {{readonlyinline}}</dt>
- <dd>Returns the {{HTMLElement("head")}} element of the current document.</dd>
- <dt>{{domxref("Document.height")}} {{non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Gets/sets the height of the current document.</dd>
- <dt>{{domxref("Document.images")}} {{readonlyinline}}</dt>
- <dd>Returns a list of the images in the current document.</dd>
- <dt>{{domxref("Document.lastModified")}} {{readonlyinline}}</dt>
- <dd>Returns the date on which the document was last modified.</dd>
- <dt>{{domxref("Document.linkColor")}} {{Deprecated_inline}}</dt>
- <dd>Gets/sets the color of hyperlinks in the document.</dd>
- <dt>{{domxref("Document.links")}} {{readonlyinline}}</dt>
- <dd>Returns a list of all the hyperlinks in the document.</dd>
- <dt>{{domxref("Document.location")}} {{readonlyinline}}</dt>
- <dd>Returns the URI of the current document.</dd>
- <dt>{{domxref("Document.plugins")}} {{readonlyinline}}</dt>
- <dd>Returns a list of the available plugins.</dd>
- <dt>{{domxref("Document.readyState")}} {{readonlyinline}}  {{gecko_minversion_inline("1.9.2")}}</dt>
- <dd>Returns loading status of the document.</dd>
- <dt>{{domxref("Document.referrer")}} {{readonlyinline}}</dt>
- <dd>Returns the URI of the page that linked to this page.</dd>
- <dt>{{domxref("Document.scripts")}} {{readonlyinline}}</dt>
- <dd>Returns all the {{HTMLElement("script")}} elements on the document.</dd>
- <dt>{{domxref("Document.title")}}</dt>
- <dd>Sets or gets the title of the current document.</dd>
- <dt>{{domxref("Document.URL")}} {{readonlyInline}}</dt>
- <dd>Returns<span style="line-height: 19.0909080505371px;"> the document location as a string.</span></dd>
- <dt>{{domxref("Document.vlinkColor")}} {{Deprecated_inline}}</dt>
- <dd>Gets/sets the color of visited hyperlinks.</dd>
- <dt>{{domxref("Document.width")}} {{non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Returns the width of the current document.</dd>
-</dl>
-
-<h3 id="Event_handlers" name="Event_handlers">Event handlers</h3>
-
-<dl>
- <dt>{{domxref("Document.onafterscriptexecute")}} {{non-standard_inline}}</dt>
- <dd>Represents the event handling code for the {{event("afterscriptexecute")}} event.</dd>
- <dt>{{domxref("Document.onbeforescriptexecute")}} {{non-standard_inline}}</dt>
- <dd>Represents the event handling code for the {{event("beforescriptexecute")}} event.</dd>
- <dt>{{domxref("Document.oncopy")}} {{non-standard_inline}}</dt>
- <dd>Represents the event handling code for the {{event("copy")}} event.</dd>
- <dt>{{domxref("Document.oncut")}} {{non-standard_inline}}</dt>
- <dd>Represents the event handling code for the {{event("cut")}} event.</dd>
- <dt>{{domxref("Document.onfullscreenchange")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.</dd>
- <dt>{{domxref("Document.onfullscreenerror")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.</dd>
- <dt>{{domxref("Document.onpaste")}} {{non-standard_inline}}</dt>
- <dd>Represents the event handling code for the {{event("paste")}} event.</dd>
- <dt>{{domxref("Document.onpointerlockchange")}} {{experimental_inline}}</dt>
- <dd>Represents the event handling code for the {{event("pointerlockchange")}} event.</dd>
- <dt>{{domxref("Document.onpointerlockerror")}} {{experimental_inline}}</dt>
- <dd>Represetnts the event handling code for the {{event("pointerlockerror")}} event.</dd>
- <dt>{{domxref("Document.onreadystatechange")}} {{gecko_minversion_inline("1.9.2")}}</dt>
- <dd>Represents the event handling code for the {{event("readystatechange")}} event.</dd>
- <dt>{{domxref("Document.onselectionchange")}} {{experimental_inline}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.</dd>
- <dt>{{domxref("Document.onvisibilitychange")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("visibilitychange")}} event is raised.</dd>
- <dt>{{domxref("Document.onwheel")}} {{non-standard_inline}}</dt>
- <dd>Represents the event handling code for the {{event("wheel")}} event.</dd>
-</dl>
-
-<p>The <code>Document</code> interface is extended with the {{domxref("GlobalEventHandlers")}} interface:</p>
-
-<p>{{Page("/en-US/docs/Web/API/GlobalEventHandlers", "Properties")}}</p>
-
-<h2 id="Methods" name="Methods">Methods</h2>
-
-<p><em>This interface also inherits from the {{domxref("Node")}} and {{domxref("EventTarget")}} interfaces.</em></p>
-
-<dl>
- <dt>{{domxref("Document.adoptNode()")}}</dt>
- <dd>Adopt node from an external document.</dd>
- <dt>{{domxref("Document.captureEvents()")}} {{Deprecated_inline}}</dt>
- <dd>See {{domxref("Window.captureEvents")}}.</dd>
- <dt>{{domxref("Document.caretPositionFromPoint()")}}{{experimental_inline}}</dt>
- <dd>Gets the {{domxref("CaretPosition")}} at or near the specified coordinates.</dd>
- <dt>{{domxref("Document.caretRangeFromPoint()")}}{{non-standard_inline}}</dt>
- <dd>Gets a {{Domxref("Range")}} object for the document fragment under the specified coordinates.</dd>
- <dt>{{domxref("Document.createAttribute()")}}</dt>
- <dd>Creates a new {{domxref("Attr")}} object and returns it.</dd>
- <dt>{{domxref("Document.createAttributeNS()")}}</dt>
- <dd>Creates a new attribute node in a given namespace and returns it.</dd>
- <dt>{{domxref("Document.createCDATASection()")}}</dt>
- <dd>Creates a new CDATA node and returns it.</dd>
- <dt>{{domxref("Document.createComment()")}}</dt>
- <dd>Creates a new comment node and returns it.</dd>
- <dt>{{domxref("Document.createDocumentFragment()")}}</dt>
- <dd>Creates a new document fragment.</dd>
- <dt>{{domxref("Document.createElement()")}}</dt>
- <dd>Creates a new element with the given tag name.</dd>
- <dt>{{domxref("Document.createElementNS()")}}</dt>
- <dd>Creates a new element with the given tag name and namespace URI.</dd>
- <dt>{{domxref("Document.createEntityReference()")}} {{obsolete_inline}}</dt>
- <dd>Creates a new entity reference object and returns it.</dd>
- <dt>{{domxref("Document.createEvent()")}}</dt>
- <dd>Creates an event object.</dd>
- <dt>{{domxref("Document.createNodeIterator()")}}</dt>
- <dd>Creates a {{domxref("NodeIterator")}} object.</dd>
- <dt>{{domxref("Document.createProcessingInstruction()")}}</dt>
- <dd>Creates a new {{domxref("ProcessingInstruction")}} object.</dd>
- <dt>{{domxref("Document.createRange()")}}</dt>
- <dd>Creates a {{domxref("Range")}} object.</dd>
- <dt>{{domxref("Document.createTextNode()")}}</dt>
- <dd>Creates a text node.</dd>
- <dt>{{domxref("Document.createTouch()")}} {{Deprecated_inline}}</dt>
- <dd>Creates a {{domxref("Touch")}} object.</dd>
- <dt>{{domxref("Document.createTouchList()")}}</dt>
- <dd>Creates a {{domxref("TouchList")}} object.</dd>
- <dt>{{domxref("Document.createTreeWalker()")}}</dt>
- <dd>Creates a {{domxref("TreeWalker")}} object.</dd>
- <dt>{{domxref("Document.elementFromPoint()")}}{{experimental_inline}}</dt>
- <dd>Returns the topmost element at the specified coordinates. </dd>
- <dt>{{domxref("Document.elementsFromPoint()")}}{{experimental_inline}}</dt>
- <dd>Returns an array of all elements at the specified coordinates.</dd>
- <dt>{{domxref("Document.enableStyleSheetsForSet()")}}</dt>
- <dd>Enables the style sheets for the specified style sheet set.</dd>
- <dt>{{domxref("Document.exitPointerLock()")}} {{experimental_inline}}</dt>
- <dd>Release the pointer lock.</dd>
- <dt>{{domxref("Document.getAnimations()")}} {{experimental_inline}}</dt>
- <dd>Returns an array of all {{domxref("Animation")}} objects currently in effect, whose target elements are descendants of the <code>document</code>.</dd>
- <dt>{{domxref("Document.getElementsByClassName()")}}</dt>
- <dd>Returns a list of elements with the given class name.</dd>
- <dt>{{domxref("Document.getElementsByTagName()")}}</dt>
- <dd>Returns a list of elements with the given tag name.</dd>
- <dt>{{domxref("Document.getElementsByTagNameNS()")}}</dt>
- <dd>Returns a list of elements with the given tag name and namespace.</dd>
- <dt>{{domxref("Document.importNode()")}}</dt>
- <dd>Returns a clone of a node from an external document.</dd>
- <dt>{{domxref("Document.normalizeDocument()")}} {{obsolete_inline}}</dt>
- <dd>Replaces entities, normalizes text nodes, etc.</dd>
- <dt>{{domxref("Document.registerElement()")}} {{experimental_inline}}</dt>
- <dd>Registers a web component.</dd>
- <dt>{{domxref("Document.releaseCapture()")}} {{non-standard_inline}} {{gecko_minversion_inline("2.0")}}</dt>
- <dd>Releases the current mouse capture if it's on an element in this document.</dd>
- <dt>{{domxref("Document.releaseEvents()")}} {{non-standard_inline}} {{Deprecated_inline}}</dt>
- <dd>See {{domxref("Window.releaseEvents()")}}.</dd>
- <dt>{{domxref("Document.routeEvent()")}} {{non-standard_inline}} {{obsolete_inline(24)}}</dt>
- <dd>See {{domxref("Window.routeEvent()")}}.</dd>
- <dt>{{domxref("Document.mozSetImageElement()")}} {{non-standard_inline}} {{gecko_minversion_inline("2.0")}}</dt>
- <dd>Allows you to change the element being used as the background image for a specified element ID.</dd>
-</dl>
-
-<p>The <code>Document</code> interface is extended with the {{domxref("ParentNode")}} interface:</p>
-
-<dl>
- <dt>{{domxref("document.getElementById","document.getElementById(String id)")}}</dt>
- <dd>Returns an object reference to the identified element.</dd>
- <dt>{{domxref("document.querySelector","document.querySelector(String selector)")}} {{gecko_minversion_inline("1.9.1")}}</dt>
- <dd>Returns the first Element node within the document, in document order, that matches the specified selectors.</dd>
- <dt>{{domxref("document.querySelectorAll","document.querySelectorAll(String selector)")}} {{gecko_minversion_inline("1.9.1")}}</dt>
- <dd>Returns a list of all the Element nodes within the document that match the specified selectors.</dd>
-</dl>
-
-<p>The <code>Document</code> interface is extended with the {{domxref("XPathEvaluator")}} interface:</p>
-
-<dl>
- <dt>{{domxref("document.createExpression","document.createExpression(String expression, XPathNSResolver resolver)")}}</dt>
- <dd>Compiles an <code><a href="/en-US/docs/XPathExpression" title="XPathExpression">XPathExpression</a></code> which can then be used for (repeated) evaluations.</dd>
- <dt>{{domxref("document.createNSResolver","document.createNSResolver(Node resolver)")}}</dt>
- <dd>Creates an {{domxref("XPathNSResolver")}} object.</dd>
- <dt>{{domxref("document.evaluate","document.evaluate(String expression, Node contextNode, XPathNSResolver resolver, Number type, Object result)")}}</dt>
- <dd>Evaluates an XPath expression.</dd>
-</dl>
-
-<h3 id="Extension_for_HTML_documents">Extension for HTML documents</h3>
-
-<p>The <code>Document</code> interface for HTML documents inherit from the {{domxref("HTMLDocument")}} interface or, since HTML5,  is extended for such documents:</p>
-
-<dl>
- <dt>{{domxref("document.clear()")}} {{non-standard_inline}} {{Deprecated_inline}}</dt>
- <dd>In majority of modern browsers, including recent versions of Firefox and Internet Explorer, this method does nothing.</dd>
- <dt>{{domxref("document.close()")}}</dt>
- <dd>Closes a document stream for writing.</dd>
- <dt>{{domxref("document.execCommand","document.execCommand(String command[, Boolean showUI[, String value]])")}}</dt>
- <dd>On an editable document, executes a formating command.</dd>
- <dt>{{domxref("document.getElementsByName","document.getElementsByName(String name)")}}</dt>
- <dd>Returns a list of elements with the given name.</dd>
- <dt>{{domxref("document.getSelection()")}}</dt>
- <dd>Returns a {{domxref("Selection")}} object related to text selected in the document.</dd>
- <dt>{{domxref("document.hasFocus()")}}</dt>
- <dd>Returns <code>true</code> if the focus is currently located anywhere inside the specified document.</dd>
- <dt>{{domxref("document.open()")}}</dt>
- <dd>Opens a document stream for writing.</dd>
- <dt>{{domxref("document.queryCommandEnabled","document.queryCommandEnabled(String command)")}}</dt>
- <dd>Returns true if the formating command can be executed on the current range.</dd>
- <dt>{{domxref("document.queryCommandIndeterm","document.queryCommandIndeterm(String command)")}}</dt>
- <dd>Returns true if the formating command is in an indeterminate state on the current range.</dd>
- <dt>{{domxref("document.queryCommandState","document.queryCommandState(String command)")}}</dt>
- <dd>Returns true if the formating command has been executed on the current range.</dd>
- <dt>{{domxref("document.queryCommandSupported","document.queryCommandSupported(String command)")}}</dt>
- <dd>Returns true if the formating command is supported on the current range.</dd>
- <dt>{{domxref("document.queryCommandValue","document.queryCommandValue(String command)")}}</dt>
- <dd>Returns the current value of the current range for a formating command.</dd>
- <dt>{{domxref("document.write","document.write(String text)")}}</dt>
- <dd>Writes text in a document.</dd>
- <dt>{{domxref("document.writeln","document.writeln(String text)")}}</dt>
- <dd>Writes a line of text in a document.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('Page Visibility API', '#onvisiblitychange-event-handler', 'onvisibilitychange')}}</td>
- <td>{{Spec2('Page Visibility API')}}</td>
- <td>Adds <code>onvisibility</code><code>change</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName('Selection API', '', 'Extend Document and GlobalEventHandlers')}}</td>
- <td>{{Spec2('Selection API')}}</td>
- <td>Adds <code>onselectstart</code> and <code>onselectionchange</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM1','#i-Document','Document')}}</td>
- <td>{{Spec2('DOM1')}}</td>
- <td>Initial definition for the interface</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM2 Core','#i-Document','Document')}}</td>
- <td>{{Spec2('DOM2 Core')}}</td>
- <td>Supersede DOM 1</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM3 Core','#i-Document','Document')}}</td>
- <td>{{Spec2('DOM3 Core')}}</td>
- <td>Supersede DOM 2</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM WHATWG','#interface-document','Document')}}</td>
- <td>{{Spec2('DOM WHATWG')}}</td>
- <td>Intend to supersede DOM 3</td>
- </tr>
- <tr>
- <td>{{SpecName('HTML WHATWG','dom.html#the-document-object','Document')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td>Turn the {{domxref("HTMLDocument")}} interface into a <code>Document</code> extension.</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM3 XPath','xpath.html#XPathEvaluator','XPathEvaluator')}}</td>
- <td>{{Spec2('DOM3 XPath')}}</td>
- <td>Define the {{domxref("XPathEvaluator")}} interface which extend document.</td>
- </tr>
- <tr>
- <td>{{SpecName('Page Visibility API', '#sec-document-interface', 'Document')}}</td>
- <td>{{Spec2('Page Visibility API')}}</td>
- <td>Extend the <code>Document</code> interface with the <code>visibilityState</code> and <code>hidden</code> attributes</td>
- </tr>
- <tr>
- <td>{{SpecName('HTML Editing','#dom-document-getselection','Document')}}</td>
- <td>{{Spec2('HTML Editing')}}</td>
- <td>Extend the <code>Document</code> interface</td>
- </tr>
- <tr>
- <td>{{SpecName('CSSOM View','#extensions-to-the-document-interface','Document')}}</td>
- <td>{{Spec2('CSSOM View')}}</td>
- <td>Extend the <code>Document</code> interface</td>
- </tr>
- <tr>
- <td>{{SpecName('CSSOM','#extensions-to-the-document-interface','Document')}}</td>
- <td>{{Spec2('CSSOM')}}</td>
- <td>Extend the <code>Document</code> interface</td>
- </tr>
- <tr>
- <td>{{SpecName('Pointer Lock','#extensions-to-the-document-interface','Document')}}</td>
- <td>{{Spec2('Pointer Lock')}}</td>
- <td>Extend the <code>Document</code> interface</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility_notes">Browser compatibility notes</h2>
-
-<h3 id="Firefox_notes">Firefox notes</h3>
-
-<p>Mozilla defines a set of non-standard properties made only for XUL content:</p>
-
-<dl>
- <dt>{{domxref("document.currentScript")}} {{non-standard_inline}} {{gecko_minversion_inline("2.0")}}</dt>
- <dd>Returns the {{HTMLElement("script")}} element that is currently executing.</dd>
- <dt>{{domxref("document.documentURIObject")}} {{gecko_minversion_inline("1.9")}}</dt>
- <dd>(<strong>Mozilla add-ons only!</strong>) Returns the {{Interface("nsIURI")}} object representing the URI of the document. This property only has special meaning in privileged JavaScript code (with UniversalXPConnect privileges).</dd>
- <dt>{{domxref("document.popupNode")}}</dt>
- <dd>Returns the node upon which a popup was invoked.</dd>
- <dt>{{domxref("document.tooltipNode")}}</dt>
- <dd>Returns the node which is the target of the current tooltip.</dd>
-</dl>
-
-<p>Mozilla also define some non-standard methods:</p>
-
-<dl>
- <dt>{{domxref("document.execCommandShowHelp")}} {{obsolete_inline("14.0")}}</dt>
- <dd>This method never did anything and always threw an exception, so it was removed in Gecko 14.0 {{geckoRelease("14.0")}}.</dd>
- <dt>{{domxref("document.getBoxObjectFor")}} {{obsolete_inline}}</dt>
- <dd>Use the {{domxref("Element.getBoundingClientRect()")}} method instead.</dd>
- <dt>{{domxref("document.loadOverlay")}}</dt>
- <dd>Loads a <a href="/en-US/docs/XUL_Overlays" title="XUL_Overlays">XUL overlay</a> dynamically. This only works in XUL documents.</dd>
- <dt>{{domxref("document.queryCommandText")}} {{obsolete_inline("14.0")}}</dt>
- <dd>This method never did anything but throw an exception, and was removed in Gecko 14.0 {{geckoRelease("14.0")}}.</dd>
-</dl>
-
-<h3 id="Internet_Explorer_notes">Internet Explorer notes</h3>
-
-<p>Microsoft defines some non-standard properties:</p>
-
-<dl>
- <dt>{{domxref("document.fileSize")}}* {{non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Returns size in bytes of the document. Starting with Internet Explorer 11, that property is no longer supported. See <a href="http://msdn.microsoft.com/en-us/library/ms533752%28v=VS.85%29.aspx" title="http://msdn.microsoft.com/en-us/library/ms533752%28v=VS.85%29.aspx">MSDN</a>.</dd>
- <dt><span style="font-weight: normal; line-height: 1.5;">Internet Explorer does not support all methods from the <code>Node</code> interface in the <code>Document</code> interface:</span></dt>
-</dl>
-
-<dl>
- <dt>{{domxref("document.contains")}}</dt>
- <dd>As a work-around, <code>document.body.contains()</code> can be used.</dd>
-</dl>
-
-<p> </p>
diff --git a/files/ar/web/api/domtokenlist/index.html b/files/ar/web/api/domtokenlist/index.html
deleted file mode 100644
index a4981c8649..0000000000
--- a/files/ar/web/api/domtokenlist/index.html
+++ /dev/null
@@ -1,117 +0,0 @@
----
-title: DOMTokenList
-slug: Web/API/DOMTokenList
-tags:
- - API
- - DOM
- - DOMTokenList
- - Interface
- - NeedsTranslation
- - Reference
- - TopicStub
-translation_of: Web/API/DOMTokenList
----
-<div>{{APIRef("DOM")}}</div>
-
-<p>The <code><strong>DOMTokenList</strong></code> interface represents a set of space-separated tokens. Such a set is returned by {{domxref("Element.classList")}}, {{domxref("HTMLLinkElement.relList")}}, {{domxref("HTMLAnchorElement.relList")}}, {{domxref("HTMLAreaElement.relList")}}, {{domxref("HTMLIframeElement.sandbox")}}, or {{domxref("HTMLOutputElement.htmlFor")}}. It is indexed beginning with <code>0</code> as with JavaScript {{jsxref("Array")}} objects. <code>DOMTokenList</code> is always case-sensitive.</p>
-
-<h2 id="Properties">Properties</h2>
-
-<dl>
- <dt>{{domxref("DOMTokenList.length")}} {{ReadOnlyInline}}</dt>
- <dd>Is an <code>integer</code> representing the number of objects stored in the object.</dd>
- <dt>{{domxref("DOMTokenList.value")}}</dt>
- <dd>The value of the list as a {{domxref("DOMString")}}.</dd>
-</dl>
-
-<h2 id="Methods">Methods</h2>
-
-<dl>
- <dt>{{domxref("DOMTokenList.item()")}}</dt>
- <dd>Returns an item in the list by its index (returns undefined if the number is greater than or equal to the length of the list).</dd>
- <dt>{{domxref("DOMTokenList.contains()")}}</dt>
- <dd>Returns <code>true</code> if the list contains the given <em>token</em>, otherwise <code>false</code>.</dd>
- <dt>{{domxref("DOMTokenList.add()")}}</dt>
- <dd>Adds the given <em>token</em> to the list.</dd>
- <dt>{{domxref("DOMTokenList.remove()")}}</dt>
- <dd>Removes the specified <em>token</em> from the list.</dd>
- <dt>{{domxref("DOMTokenList.replace()")}}</dt>
- <dd>Replaces an existing <em>token</em> with a new token.</dd>
- <dt>{{domxref("DOMTokenList.supports()")}}</dt>
- <dd>Returns <code>true</code> if a given <em>token</em> is in the associated attribute's supported tokens.</dd>
- <dt>{{domxref("DOMTokenList.toggle()")}}</dt>
- <dd>Removes a given <em>token</em> from the list and returns false. If <em>token</em> doesn't exist it's added and the function returns <code>true</code>.</dd>
- <dt>{{domxref("DOMTokenList.entries()")}}</dt>
- <dd>Returns an {{jsxref("Iteration_protocols","iterator")}} allowing you to go through all key/value pairs contained in this object.</dd>
- <dt>{{domxref("DOMTokenList.forEach()")}}</dt>
- <dd>Executes a provided function once per <code>DOMTokenList</code> element.</dd>
- <dt>{{domxref("DOMTokenList.keys()")}}</dt>
- <dd>Returns an {{jsxref("Iteration_protocols", "iterator")}} allowing you to go through all keys of the key/value pairs contained in this object.</dd>
- <dt>{{domxref("DOMTokenList.values()")}}</dt>
- <dd>Returns an {{jsxref("Iteration_protocols", "iterator")}} allowing you to go through all values of the key/value pairs contained in this object.</dd>
-</dl>
-
-<h2 id="Examples">Examples</h2>
-
-<p>In the following simple example we retrieve the list of classes set on a {{htmlelement("p")}} element as a <code>DOMTokenList</code> using {{domxref("Element.classList")}}, add a class using {{domxref("DOMTokenList.add()")}}, and then update the {{domxref("Node.textContent")}} of the <code>&lt;p&gt;</code> to equal the <code>DOMTokenList</code>.</p>
-
-<p>First, the HTML:</p>
-
-<pre class="brush: html">&lt;p class="a b c"&gt;&lt;/p&gt;</pre>
-
-<p>Now the JavaScript:</p>
-
-<pre class="brush: js">var para = document.querySelector("p");
-var classes = para.classList;
-para.classList.add("d");
-para.textContent = 'paragraph classList is "' + classes + '"';</pre>
-
-<p>The output looks like this:</p>
-
-<p>{{ EmbedLiveSample('Examples', '100%', 60) }}</p>
-
-<h2 id="Trimming_of_whitespace_and_removal_of_duplicates">Trimming of whitespace and removal of duplicates</h2>
-
-<p>Methods that modify the <code>DOMTokenList</code> (such as {{domxref("DOMTokenList.add()")}}) automatically trim any excess whitespace and remove duplicate values from the list. For example:</p>
-
-<pre class="brush: html">&lt;span class=" d d e f"&gt;&lt;/span&gt;</pre>
-
-<pre class="brush: js">var span = document.querySelector("span");
-var classes = span.classList;
-span.classList.add("x");
-span.textContent = 'span classList is "' + classes + '"';</pre>
-
-<p>The output looks like this:</p>
-
-<p>{{ EmbedLiveSample('Trimming_of_whitespace_and_removal_of_duplicates', '100%', 60) }}</p>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("DOM WHATWG", "#interface-domtokenlist", "DOMTokenList")}}</td>
- <td>{{Spec2("DOM WHATWG")}}</td>
- <td>Initial definition</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.DOMTokenList")}}</p>
-
-<h2 id="See_Also">See Also</h2>
-
-<ul>
- <li>{{domxref("DOMSettableTokenList")}} (object that extends <code>DOMTokenList</code> with settable <em>.value</em> property)</li>
-</ul>
diff --git a/files/ar/web/api/domtokenlist/length/index.html b/files/ar/web/api/domtokenlist/length/index.html
deleted file mode 100644
index c65f931027..0000000000
--- a/files/ar/web/api/domtokenlist/length/index.html
+++ /dev/null
@@ -1,62 +0,0 @@
----
-title: DOMTokenList.length
-slug: Web/API/DOMTokenList/length
-translation_of: Web/API/DOMTokenList/length
----
-<p>{{APIRef("DOM")}}</p>
-
-<p>The <code><strong>length</strong></code> read-only property of the {{domxref("DOMTokenList")}} interface is an <code>integer</code> representing the number of objects stored in the object.</p>
-
-<h2 id="بنية_الجملة">بنية الجملة</h2>
-
-<pre class="syntaxbox">tokenList.length;</pre>
-
-<h3 id="القيمة_العائدة">القيمة العائدة</h3>
-
-<p>تُعيد <code>رقم صحيح</code>.</p>
-
-<h2 id="أمثلة">أمثلة</h2>
-
-<p>في المثال التالي نقوم بإسترداد قيمة الـ classes الموضوعة داخل {{htmlelement("span")}} element as a <code>DOMTokenList</code> using {{domxref("Element.classList")}}, then write the length of the list to the <code>&lt;span&gt;</code>'s {{domxref("Node.textContent")}}.</p>
-
-<p>أولاً، الـ HTML:</p>
-
-<pre class="brush: html">&lt;span class="a b c"&gt;&lt;/span&gt;</pre>
-
-<p>الآن الـ JavaScript:</p>
-
-<pre class="brush: js">var span = document.querySelector("span");
-var classes = span.classList;
-var length = classes.length;
-
-span.textContent = 'classList length = ' + length;
-</pre>
-
-<p>نتيجة الكود ستكون بالشكل التالي:</p>
-
-<p>{{ EmbedLiveSample('Examples', '100%', 60) }}</p>
-
-<h2 id="الخصائص">الخصائص</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('DOM WHATWG','#dom-domtokenlist-length','length')}}</td>
- <td>{{Spec2('DOM WHATWG')}}</td>
- <td>Initial definition</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="دعم_المتصفحات">دعم المتصفحات</h2>
-
-<div>
-
-
-<p>{{Compat("api.DOMTokenList.length")}}</p>
-</div>
diff --git a/files/ar/web/api/element/classname/index.html b/files/ar/web/api/element/classname/index.html
deleted file mode 100644
index cd37ae178e..0000000000
--- a/files/ar/web/api/element/classname/index.html
+++ /dev/null
@@ -1,137 +0,0 @@
----
-title: Element.className سمة العنصر
-slug: Web/API/Element/className
-tags:
- - API
- - DOM
- - Gecko
- - Property
- - Reference
- - خاصية
- - مرجع
-translation_of: Web/API/Element/className
----
-<div>{{APIRef("DOM")}}</div>
-
-<h2 id="الخلاصة">الخلاصة</h2>
-
-<p>تقوم <strong>className</strong> بجلب أو ضبط  قيمة سمة class الخاصة بالعنصر.</p>
-
-<h2 id="بنية_الجملة">بنية الجملة</h2>
-
-<pre class="syntaxbox"><var>var cName</var> = <var>elementNodeReference</var>.className;
-<var>elementNodeReference</var>.className = <var>cName</var>;
-</pre>
-
-<ul>
- <li>إن <em>cName</em> هو متغير نصي يعبر عن اسم class العنصر أو أكثر من class واحد يفصل بينها مسافات للعنصر الحالي.</li>
-</ul>
-
-<h2 id="مثال">مثال</h2>
-
-<pre class="brush: js">let elm = document.getElementById('item');
-
-if(elm.className === 'active'){
-    elm.className = 'inactive';
-} else {
-    elm.className = 'active';
-}</pre>
-
-<h2 id="Notes" name="Notes">ملاحظات</h2>
-
-<p>تم استخدام <code>className</code> عوضًا عن <code>class</code> فقط لكي لا يتم خلطها مع كلمة class التي تستخدم في البرمجة الكائنية</p>
-
-<p>يمكن استخدام <code>className</code>  في حالة {{domxref("SVGAnimatedString")}} إذا كان العنصر عبارة عن {{domxref("SVGElement")}}، من الأفضل أن تجلب قيمة <code>className</code> أو تضبطها باستخدام {{domxref("Element.getAttribute")}} و{{domxref("Element.setAttribute")}} إذا كنت تتعامل مع عنصر من نوع SVG.</p>
-
-<pre class="brush: js">elm.setAttribute('class', elm.getAttribute('class'))</pre>
-
-<p> </p>
-
-<h2 id="الخواص">الخواص</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">الخاصية</th>
- <th scope="col">الحالة</th>
- <th scope="col">تعليق</th>
- </tr>
- <tr>
- <td>{{SpecName("DOM WHATWG", "#dom-element-classname", "element.className")}}</td>
- <td>{{Spec2("DOM WHATWG")}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName("DOM4", "#dom-element-classname", "element.className")}}</td>
- <td>{{Spec2("DOM4")}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName("DOM2 HTML", "html.html#ID-95362176", "element.className")}}</td>
- <td>{{Spec2("DOM2 HTML")}}</td>
- <td>Initial definition</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="التوافق_مع_المتصفحات">التوافق مع المتصفحات</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="اقرأ_ايضًا">اقرأ ايضًا</h2>
-
-<ul>
- <li>{{domxref("element.classList")}}</li>
-</ul>
diff --git a/files/ar/web/api/element/closest/index.html b/files/ar/web/api/element/closest/index.html
deleted file mode 100644
index 5ad476bb9d..0000000000
--- a/files/ar/web/api/element/closest/index.html
+++ /dev/null
@@ -1,148 +0,0 @@
----
-title: Element.closest()
-slug: Web/API/Element/closest
-tags:
- - دوم
- - مرجع
- - واجهة برمجة تطبيقات
-translation_of: Web/API/Element/closest
----
-<div>{{APIRef('DOM')}}</div>
-
-<div dir="rtl">ال <code><strong>closest()</strong></code> method تجتاز {{domxref ("Element")}} والأصل(يتجهون نحو جذر المستند) حتى يعثروا على عقدة تتطابق مع الstring المحدد. سيعود نفسه أو أسلاف مطابقة. إذا لم يكن هناك مثل هذا العنصر ، فإنه يعيد <code>null</code>.</div>
-
-<h2 id="تركيب_الجملة">تركيب الجملة</h2>
-
-<pre class="syntaxbox notranslate">var <var>closestElement</var> = <var>targetElement</var>.closest(<var>selectors</var>);
-</pre>
-
-<h3 id="المعاملات">المعاملات</h3>
-
-<ul>
- <li><code><var>selectors</var></code> is a {{domxref("DOMString")}} containing a selector list.<br>
- ex: <code>p:hover, .toto + q</code></li>
-</ul>
-
-<h3 id="القيمة_المرجعة">القيمة المرجعة</h3>
-
-<ul>
- <li><code><var>closestElement</var></code> is the {{domxref("Element")}} which is the closest ancestor of the selected element. It may be <code>null</code>.</li>
-</ul>
-
-<h3 id="استثناءات">استثناءات</h3>
-
-<ul>
- <li>{{exception("SyntaxError")}} is thrown if the <code><var>selectors</var></code> is not a valid selector list string.</li>
-</ul>
-
-<h2 id="مثال">مثال</h2>
-
-<h3 id="HTML">HTML</h3>
-
-<pre class="brush: html notranslate">&lt;article&gt;
- &lt;div id="div-01"&gt;Here is div-01
- &lt;div id="div-02"&gt;Here is div-02
- &lt;div id="div-03"&gt;Here is div-03&lt;/div&gt;
- &lt;/div&gt;
- &lt;/div&gt;
-&lt;/article&gt;</pre>
-
-<h3 id="JavaScript">JavaScript</h3>
-
-<pre class="brush: js notranslate">var el = document.getElementById('div-03');
-
-var r1 = el.closest("#div-02");
-// returns the element with the id=div-02
-
-var r2 = el.closest("div div");
-// returns the closest ancestor which is a div in div, here it is the div-03 itself
-
-var r3 = el.closest("article &gt; div");
-// returns the closest ancestor which is a div and has a parent article, here it is the div-01
-
-var r4 = el.closest(":not(div)");
-// returns the closest ancestor which is not a div, here it is the outmost article</pre>
-
-<h2 id="Polyfill">Polyfill</h2>
-
-<p dir="rtl">بالنسبة للمتصفحات التي لا تدعم ()Element.closest ، ولكنها تدعم ال()element.matches (أو ما يعادله سابقًا ، بمعنى IE9 +) ، توجد تعبئة متعددة:</p>
-
-<pre class="brush: js notranslate">if (!Element.prototype.matches) {
- Element.prototype.matches = Element.prototype.msMatchesSelector ||
- Element.prototype.webkitMatchesSelector;
-}
-
-if (!Element.prototype.closest) {
- Element.prototype.closest = function(s) {
- var el = this;
-
- do {
- if (Element.prototype.matches.call(el, s)) return el;
- el = el.parentElement || el.parentNode;
- } while (el !== null &amp;&amp; el.nodeType === 1);
- return null;
- };
-}</pre>
-
-<p dir="rtl">ومع ذلك ، إذا كنت تحتاج بالفعل إلى دعم IE 8 ، فإن polyfill التالي سيقوم بالمهمة ببطء شديد ، ولكن في النهاية. ومع ذلك ، ستدعم فقط محددات CSS 2.1 في IE 8 ، ويمكن أن تسبب تأخر كبير في إنتاج المواقع .</p>
-
-<pre class="brush: js notranslate">if (window.Element &amp;&amp; !Element.prototype.closest) {
- Element.prototype.closest =
- function(s) {
- var matches = (this.document || this.ownerDocument).querySelectorAll(s),
- i,
- el = this;
- do {
- i = matches.length;
- while (--i &gt;= 0 &amp;&amp; matches.item(i) !== el) {};
- } while ((i &lt; 0) &amp;&amp; (el = el.parentElement));
- return el;
- };
-}
-</pre>
-
-<h2 id="مواصفات">مواصفات</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">مواصفات</th>
- <th scope="col">الحالة</th>
- <th scope="col">تعليق</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('DOM WHATWG', '#dom-element-closest', 'Element.closest()')}}</td>
- <td>{{Spec2('DOM WHATWG')}}</td>
- <td>تعريف ابتدائي.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="التوافق_مع_المتصفحات">التوافق مع المتصفحات</h2>
-
-<div>
-<div class="hidden" dir="rtl">يتم إنشاء جدول التوافق في هذه الصفحة من البيانات المنظمة. إذا كنت ترغب في المساهمة في البيانات ، يرجى مراجعة https://github.com/mdn/browser-compat-data وإرسال طلب سحب إلينا.</div>
-
-<p>{{Compat("api.Element.closest")}}</p>
-
-<h3 id="ملاحظات_التوافق">ملاحظات التوافق</h3>
-
-<ul dir="rtl">
- <li>في Edge 15-18 <code>document.createElement(tagName).closest(tagName)</code> ستعيد <code>null</code> ذا كان العنصر غير متصل أولاً (بشكل مباشر أو غير مباشر) بObject السياق ، على سبيل المثال {{domxref ("Document")}}<br>
- Object في حالة DOM العادي.</li>
-</ul>
-</div>
-
-<h2 id="إقرأ_أيضا">إقرأ أيضا</h2>
-
-<ul>
- <li>The {{domxref("Element")}} interface.</li>
- <li>
- <div class="syntaxbox"><a href="/en-US/docs/Web/Guide/CSS/Getting_started/Selectors">The syntax of Selectors</a></div>
- </li>
- <li>
- <div class="syntaxbox">Other methods that take selectors: {{domxref("element.querySelector()")}} and {{domxref("element.matches()")}}.</div>
- </li>
-</ul>
diff --git a/files/ar/web/api/element/index.html b/files/ar/web/api/element/index.html
deleted file mode 100644
index 070f2c26a5..0000000000
--- a/files/ar/web/api/element/index.html
+++ /dev/null
@@ -1,656 +0,0 @@
----
-title: Element
-slug: Web/API/Element
-tags:
- - API
- - DOM
- - DOM Reference
- - Element
- - Interface
- - NeedsTranslation
- - Reference
- - TopicStub
- - Web API
-translation_of: Web/API/Element
----
-<p>{{ APIRef("DOM") }}</p>
-
-<p><span class="seoSummary"><strong><code>Element</code></strong> is the most general base class from which all objects in a {{domxref("Document")}} inherit. It only has methods and properties common to all kinds of element. More specific classes inherit from <code>Element</code>.</span> For example, the {{domxref("HTMLElement")}} interface is the base interface for HTML elements, while the {{domxref("SVGElement")}} interface is the basis for all SVG elements. Most functionality is specified further down the class hierarchy.</p>
-
-<p>Languages outside the realm of the Web platform, like XUL through the <code>XULElement</code> interface, also implement <code>Element</code>.</p>
-
-<p>{{InheritanceDiagram}}</p>
-
-<h2 id="Properties" name="Properties">Properties</h2>
-
-<p><em>Inherits properties from its parent interface, {{domxref("Node")}}, and by extension that interface's parent, {{domxref("EventTarget")}}. It implements the properties of {{domxref("ParentNode")}}, {{domxref("ChildNode")}}, {{domxref("NonDocumentTypeChildNode")}}, </em>and {{domxref("Animatable")}}.</p>
-
-<dl>
- <dt>{{ domxref("Element.assignedSlot")}} {{experimental_inline}} {{readOnlyInline}}</dt>
- <dd>Returns the {{domxref("HTMLSlotElement")}} interface associated with the element.</dd>
- <dt>{{ domxref("Element.attributes") }} {{readOnlyInline}}</dt>
- <dd>Returns a {{ domxref("NamedNodeMap") }} object containing the assigned attributes of the corresponding HTML element.</dd>
- <dt>{{ domxref("Element.classList") }} {{readOnlyInline}}</dt>
- <dd>Returns a {{ domxref("DOMTokenList") }} containing the list of class attributes.</dd>
- <dt>{{ domxref("Element.className") }}</dt>
- <dd>Is a {{domxref("DOMString")}} representing the class of the element.</dd>
- <dt>{{ domxref("Element.clientHeight") }} {{experimental_inline}} {{readOnlyInline}}</dt>
- <dd>Returns a {{jsxref("Number")}} representing the inner height of the element.</dd>
- <dt>{{ domxref("Element.clientLeft") }} {{experimental_inline}} {{readOnlyInline}}</dt>
- <dd>Returns a {{jsxref("Number")}} representing the width of the left border of the element.</dd>
- <dt>{{ domxref("Element.clientTop") }} {{experimental_inline}} {{readOnlyInline}}</dt>
- <dd>Returns a {{jsxref("Number")}} representing the width of the top border of the element.</dd>
- <dt>{{ domxref("Element.clientWidth") }} {{experimental_inline}} {{readOnlyInline}}</dt>
- <dd>Returns a {{jsxref("Number")}} representing the inner width of the element.</dd>
- <dt>{{domxref("Element.computedName")}} {{readOnlyInline}}</dt>
- <dd>Returns a {{domxref("DOMString")}} containing the label exposed to accessibility.</dd>
- <dt>{{domxref("Element.computedRole")}} {{readOnlyInline}}</dt>
- <dd>Returns a {{domxref("DOMString")}} containing the ARIA role that has been applied to a particular element. </dd>
- <dt>{{ domxref("Element.id") }}</dt>
- <dd>Is a {{domxref("DOMString")}} representing the id of the element.</dd>
- <dt>{{ domxref("Element.innerHTML") }}</dt>
- <dd>Is a {{domxref("DOMString")}} representing the markup of the element's content.</dd>
- <dt>{{ domxref("Element.localName") }} {{readOnlyInline}}</dt>
- <dd>A {{domxref("DOMString")}} representing the local part of the qualified name of the element.</dd>
- <dt>{{domxref("Element.namespaceURI")}} {{readonlyInline}}</dt>
- <dd>The namespace URI of the element, or <code>null</code> if it is no namespace.
- <div class="note">
- <p><strong>Note:</strong> In Firefox 3.5 and earlier, HTML elements are in no namespace. In later versions, HTML elements are in the <code><a class="linkification-ext external" href="http://www.w3.org/1999/xhtml" title="Linkification: http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a></code> namespace in both HTML and XML trees. {{ gecko_minversion_inline("1.9.2") }}</p>
- </div>
- </dd>
- <dt>{{ domxref("NonDocumentTypeChildNode.nextElementSibling") }} {{readOnlyInline}}</dt>
- <dd>Is a {{ domxref("Element") }}, the element immediately following the given one in the tree, or <code>null</code> if there's no sibling node.</dd>
- <dt>{{ domxref("Element.outerHTML") }} {{experimental_inline}}</dt>
- <dd>Is a {{domxref("DOMString")}} representing the markup of the element including its content. When used as a setter, replaces the element with nodes parsed from the given string.</dd>
- <dt>{{ domxref("Element.prefix") }} {{readOnlyInline}}</dt>
- <dd>A {{domxref("DOMString")}} representing the namespace prefix of the element, or <code>null</code> if no prefix is specified.</dd>
- <dt>{{ domxref("NonDocumentTypeChildNode.previousElementSibling") }} {{readOnlyInline}}</dt>
- <dd>Is a {{ domxref("Element") }}, the element immediately preceding the given one in the tree, or <code>null</code> if there is no sibling element.</dd>
- <dt>{{ domxref("Element.scrollHeight") }} {{experimental_inline}} {{readOnlyInline}}</dt>
- <dd>Returns a {{jsxref("Number")}} representing the scroll view height of an element.</dd>
- <dt>{{ domxref("Element.scrollLeft") }} {{experimental_inline}}</dt>
- <dd>Is a {{jsxref("Number")}} representing the left scroll offset of the element.</dd>
- <dt>{{ domxref("Element.scrollLeftMax") }} {{non-standard_inline}} {{readOnlyInline}}</dt>
- <dd>Returns a {{jsxref("Number")}} representing the maximum left scroll offset possible for the element.</dd>
- <dt>{{ domxref("Element.scrollTop") }} {{experimental_inline}}</dt>
- <dd>Is a {{jsxref("Number")}} representing the top scroll offset the element.</dd>
- <dt>{{ domxref("Element.scrollTopMax") }} {{non-standard_inline}} {{readOnlyInline}}</dt>
- <dd>Returns a {{jsxref("Number")}} representing the maximum top scroll offset possible for the element.</dd>
- <dt>{{ domxref("Element.scrollWidth") }} {{experimental_inline}} {{readOnlyInline}}</dt>
- <dd>Returns a {{jsxref("Number")}} representing the scroll view width of the element.</dd>
- <dt>{{domxref("Element.shadowRoot") }} {{experimental_inline}} {{readOnlyInline}}</dt>
- <dd>Returns the youngest shadow root that is hosted by the element.</dd>
- <dt>{{domxref("Element.slot")}} {{experimental_inline}}</dt>
- <dd>Returns the name of the shadow DOM slot attached to the element. A slot is a placeholder inside a web component that users can fill with their own markup.</dd>
- <dt>{{domxref("Element.tabStop")}} {{non-standard_inline}}</dt>
- <dd>Is a {{jsxref("Boolean")}} indicating if the element can receive input focus via the tab key.</dd>
- <dt>{{ domxref("Element.tagName") }} {{readOnlyInline}}</dt>
- <dd>Returns a {{domxref("String")}} with the name of the tag for the given element.</dd>
- <dt>{{ domxref("Element.undoManager")}} {{experimental_inline}} {{readOnlyInline}}</dt>
- <dd>Returns the {{domxref("UndoManager")}} associated with the element.</dd>
- <dt>{{ domxref("Element.undoScope")}} {{experimental_inline}}</dt>
- <dd>Is a {{jsxref("Boolean")}} indicating if the element is an undo scope host, or not.</dd>
-</dl>
-
-<div class="note">
-<p><strong>Note:</strong> DOM Level 3 defined <code>namespaceURI</code>, <code>localName</code> and <code>prefix</code> on the {{domxref("Node")}} interface. In DOM4 they were moved to <code>Element</code>.</p>
-
-<p>This change is implemented in Chrome since version 46.0 and Firefox since version 48.0.</p>
-</div>
-
-<h3 id="Handlers" name="Handlers">Event handlers</h3>
-
-<dl>
- <dt>{{ domxref("Element.ongotpointercapture") }}</dt>
- <dd>Returns the event handler for the {{event("gotpointercapture")}} event type.</dd>
- <dt>{{ domxref("Element.onlostpointercapture") }}</dt>
- <dd>Returns the event handler for the {{event("lostpointercapture")}} event type.</dd>
-</dl>
-
-<h4 id="Obsolete_event_handlers">Obsolete event handlers</h4>
-
-<dl>
- <dt>{{ domxref("Element.onwheel") }}</dt>
- <dd>Returns the event handling code for the <code>wheel</code> event. <strong>This is now implemented on {{domxref("GlobalEventHandlers.onwheel", "GlobalEventHandlers")}}.</strong></dd>
-</dl>
-
-<h2 id="Methods" name="Methods">Methods</h2>
-
-<p><em>Inherits methods from its parents {{domxref("Node")}}, and its own parent, {{domxref("EventTarget")}}<em>, and implements those of {{domxref("ParentNode")}}, {{domxref("ChildNode")}}<em>, {{domxref("NonDocumentTypeChildNode")}}, </em></em>and {{domxref("Animatable")}}.</em></p>
-
-<dl>
- <dt>{{ domxref("EventTarget.addEventListener()") }}</dt>
- <dd>Registers an event handler to a specific event type on the element.</dd>
- <dt>{{domxref("Element.attachShadow()")}} {{experimental_inline}}</dt>
- <dd>Attatches a shadow DOM tree to the specified element and returns a reference to its {{domxref("ShadowRoot")}}.</dd>
- <dt>{{domxref("Element.animate()")}} {{experimental_inline}}</dt>
- <dd>A shortcut method to create and run an animation on an element. Returns the created Animation object instance.</dd>
- <dt>{{ domxref("Element.closest()")}} {{experimental_inline}}</dt>
- <dd>Returns the {{domxref("Element")}} which is the closest ancestor of the current element (or the current element itself) which matches the selectors given in parameter.</dd>
- <dt>{{ domxref("Element.createShadowRoot()")}} {{experimental_inline}} {{deprecated_inline()}}</dt>
- <dd>Creates a <a href="/en-US/docs/Web/Web_Components/Shadow_DOM">shadow DOM</a> on on the element, turning it into a shadow host. Returns a {{domxref("ShadowRoot")}}.</dd>
- <dt>{{ domxref("EventTarget.dispatchEvent()") }}</dt>
- <dd>Dispatches an event to this node in the DOM and returns a {{jsxref("Boolean")}} that indicates that at least one handler has not canceled it.</dd>
- <dt>{{domxref("Element.getAnimations()")}} {{experimental_inline}}</dt>
- <dd>Returns an array of Animation objects currently active on the element.</dd>
- <dt>{{ domxref("Element.getAttribute()") }}</dt>
- <dd>Retrieves the value of the named attribute from the current node and returns it as an {{jsxref("Object")}}.</dd>
- <dt>{{ domxref("Element.getAttributeNames()") }}</dt>
- <dd>Returns an array of attribute names from the current element.</dd>
- <dt>{{ domxref("Element.getAttributeNS()") }}</dt>
- <dd>Retrieves the value of the attribute with the specified name and namespace, from the current node and returns it as an {{jsxref("Object")}}.</dd>
- <dt>{{ domxref("Element.getAttributeNode()") }} {{obsolete_inline}}</dt>
- <dd>Retrieves the node representation of the named attribute from the current node and returns it as an {{ domxref("Attr") }}.</dd>
- <dt>{{ domxref("Element.getAttributeNodeNS()") }} {{obsolete_inline}}</dt>
- <dd>Retrieves the node representation of the attribute with the specified name and namespace, from the current node and returns it as an {{ domxref("Attr") }}.</dd>
- <dt>{{ domxref("Element.getBoundingClientRect()") }}</dt>
- <dd>Returns the size of an element and its position relative to the viewport.</dd>
- <dt>{{ domxref("Element.getClientRects()") }}</dt>
- <dd>Returns a collection of rectangles that indicate the bounding rectangles for each line of text in a client.</dd>
- <dt>{{ domxref("Element.getElementsByClassName()") }}</dt>
- <dd>Returns a live {{ domxref("HTMLCollection") }} that contains all descendants of the current element that possess the list of classes given in the parameter.</dd>
- <dt>{{ domxref("Element.getElementsByTagName()") }}</dt>
- <dd>Returns a live {{ domxref("HTMLCollection") }} containing all descendant elements, of a particular tag name, from the current element.</dd>
- <dt>{{ domxref("Element.getElementsByTagNameNS()") }}</dt>
- <dd>Returns a live {{ domxref("HTMLCollection") }} containing all descendant elements, of a particular tag name and namespace, from the current element.</dd>
- <dt>{{ domxref("Element.hasAttribute()") }}</dt>
- <dd>Returns a {{jsxref("Boolean")}} indicating if the element has the specified attribute or not.</dd>
- <dt>{{ domxref("Element.hasAttributeNS()") }}</dt>
- <dd>Returns a {{jsxref("Boolean")}} indicating if the element has the specified attribute, in the specified namespace, or not.</dd>
- <dt>{{ domxref("Element.hasAttributes()") }}</dt>
- <dd>Returns a {{jsxref("Boolean")}} indicating if the element has one or more HTML attributes present.</dd>
- <dt>{{ domxref("Element.insertAdjacentElement") }} {{experimental_inline}}</dt>
- <dd>Inserts a given element node at a given position relative to the element it is invoked upon.</dd>
- <dt>{{ domxref("Element.insertAdjacentHTML") }} {{experimental_inline}}</dt>
- <dd>Parses the text as HTML or XML and inserts the resulting nodes into the tree in the position given.</dd>
- <dt>{{ domxref("Element.insertAdjacentText") }} {{experimental_inline}}</dt>
- <dd>Inserts a given text node at a given position relative to the element it is invoked upon.</dd>
- <dt>{{ domxref("Element.matches()") }}<code> </code>{{experimental_inline}}</dt>
- <dd>Returns a {{jsxref("Boolean")}} indicating whether or not the element would be selected by the specified selector string.</dd>
- <dt>{{ domxref("Element.querySelector()") }}</dt>
- <dd>Returns the first {{ domxref("Node") }} which matches the specified selector string relative to the element.</dd>
- <dt>{{ domxref("Element.querySelectorAll") }}</dt>
- <dd>Returns a {{ domxref("NodeList") }} of nodes which match the specified selector string relative to the element.</dd>
- <dt>{{ domxref("Element.releasePointerCapture")}}</dt>
- <dd>Releases (stops) pointer capture that was previously set for a specific {{domxref("PointerEvent","pointer event")}}.</dd>
- <dt>{{domxref("ChildNode.remove()")}} {{experimental_inline}}</dt>
- <dd>Removes the element from the children list of its parent.</dd>
- <dt>{{ domxref("Element.removeAttribute()") }}</dt>
- <dd>Removes the named attribute from the current node.</dd>
- <dt>{{ domxref("Element.removeAttributeNS()") }}</dt>
- <dd>Removes the attribute with the specified name and namespace, from the current node.</dd>
- <dt>{{ domxref("Element.removeAttributeNode()") }} {{obsolete_inline}}</dt>
- <dd>Removes the node representation of the named attribute from the current node.</dd>
- <dt>{{ domxref("EventTarget.removeEventListener()") }}</dt>
- <dd>Removes an event listener from the element.</dd>
- <dt>{{ domxref("Element.requestFullscreen()") }} {{experimental_inline}}</dt>
- <dd>Asynchronously asks the browser to make the element full-screen.</dd>
- <dt>{{ domxref("Element.requestPointerLock()")}} {{experimental_inline}}</dt>
- <dd>Allows to asynchronously ask for the pointer to be locked on the given element.</dd>
-</dl>
-
-<dl>
- <dt>{{ domxref("Element.scrollIntoView()") }} {{experimental_inline}}</dt>
- <dd>Scrolls the page until the element gets into the view.</dd>
- <dt>{{ domxref("Element.setAttribute()") }}</dt>
- <dd>Sets the value of a named attribute of the current node.</dd>
- <dt>{{ domxref("Element.setAttributeNS()") }}</dt>
- <dd>Sets the value of the attribute with the specified name and namespace, from the current node.</dd>
- <dt>{{ domxref("Element.setAttributeNode()") }} {{obsolete_inline}}</dt>
- <dd>Sets the node representation of the named attribute from the current node.</dd>
- <dt>{{ domxref("Element.setAttributeNodeNS()") }} {{obsolete_inline}}</dt>
- <dd>Setw the node representation of the attribute with the specified name and namespace, from the current node.</dd>
- <dt>{{ domxref("Element.setCapture()") }} {{non-standard_inline}}</dt>
- <dd>Sets up mouse event capture, redirecting all mouse events to this element.</dd>
- <dt>{{domxref("Element.setPointerCapture()")}}</dt>
- <dd>Designates a specific element as the capture target of future {{domxref("PointerEvent","pointer events")}}.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("Web Animations", '', '')}}</td>
- <td>{{Spec2("Web Animations")}}</td>
- <td>Added the <code>getAnimations()</code> method.</td>
- </tr>
- <tr>
- <td>{{SpecName('Undo Manager', '', 'Element')}}</td>
- <td>{{Spec2('Undo Manager')}}</td>
- <td>Added the <code>undoScope</code> and <code>undoManager</code> properties.</td>
- </tr>
- <tr>
- <td>{{SpecName('Pointer Events 2', '#extensions-to-the-element-interface', 'Element')}}</td>
- <td>{{Spec2('Pointer Events 2')}}</td>
- <td>Added the following event handlers: <code>ongotpointercapture</code> and <code>onlostpointercapture</code>.<br>
- Added the following methods: <code>setPointerCapture()</code> and <code>releasePointerCapture()</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName('Pointer Events', '#extensions-to-the-element-interface', 'Element')}}</td>
- <td>{{Spec2('Pointer Events')}}</td>
- <td>Added the following event handlers: <code>ongotpointercapture</code> and <code>onlostpointercapture</code>.<br>
- Added the following methods: <code>setPointerCapture()</code> and <code>releasePointerCapture()</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName('Selectors API Level 1', '#interface-definitions', 'Element')}}</td>
- <td>{{Spec2('Selectors API Level 1')}}</td>
- <td>Added the following methods: <code>querySelector()</code> and <code>querySelectorAll()</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName('Pointer Lock', 'index.html#element-interface', 'Element')}}</td>
- <td>{{Spec2('Pointer Lock')}}</td>
- <td>Added the <code>requestPointerLock()</code> method.</td>
- </tr>
- <tr>
- <td>{{SpecName('Fullscreen', '#api', 'Element')}}</td>
- <td>{{Spec2('Fullscreen')}}</td>
- <td>Added the <code>requestFullscreen()</code> method.</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM Parsing', '#extensions-to-the-element-interface', 'Element')}}</td>
- <td>{{Spec2('DOM Parsing')}}</td>
- <td>Added the following properties: <code>innerHTML</code>, and <code>outerHTML</code>.<br>
- Added the following method: <code>insertAdjacentHTML()</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName('CSSOM View', '#extensions-to-the-element-interface', 'Element')}}</td>
- <td>{{Spec2('CSSOM View')}}</td>
- <td>Added the following properties: <code>scrollTop</code>, <code>scrollLeft</code>, <code>scrollWidth</code>, <code>scrollHeight</code>, <code>clientTop</code>, <code>clientLeft</code>, <code>clientWidth</code>, and <code>clientHeight</code>.<br>
- Added the following methods: <code>getClientRects()</code>, <code>getBoundingClientRect()</code>, and <code>scrollIntoView()</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName('Element Traversal', '#ecmascript-bindings', 'Element')}}</td>
- <td>{{Spec2('Element Traversal')}}</td>
- <td>Added inheritance of the {{domxref("ElementTraversal")}} interface.</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM WHATWG', '#interface-element', 'Element')}}</td>
- <td>{{Spec2('DOM WHATWG')}}</td>
- <td>Removed the following methods: <code>closest()</code>, <code>setIdAttribute()</code>, <code>setIdAttributeNS()</code>, and <code>setIdAttributeNode()</code>.<br>
- Removed the <code>schemaTypeInfo</code> property.<br>
- Modified the return value of <code>getElementsByTag()</code> and <code>getElementsByTagNS()</code>.<br>
- Moved <code>hasAttributes()</code> from the <code>Node</code> interface to this one.<br>
- Inserted <code>insertAdjacentElement()</code> and <code>insertAdjacentText()</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM3 Core', 'core.html#ID-745549614', 'Element')}}</td>
- <td>{{Spec2('DOM3 Core')}}</td>
- <td>Added the following methods: <code>setIdAttribute()</code>, <code>setIdAttributeNS()</code>, and <code>setIdAttributeNode()</code>. These methods were never implemented and have been removed in later specifications.<br>
- Added the <code>schemaTypeInfo</code> property. This property was never implemented and has been removed in later specifications.</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM2 Core', 'core.html#ID-745549614', 'Element')}}</td>
- <td>{{Spec2('DOM2 Core')}}</td>
- <td>The <code>normalize()</code> method has been moved to {{domxref("Node")}}.</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM1', 'level-one-core.html#ID-745549614', 'Element')}}</td>
- <td>{{Spec2('DOM1')}}</td>
- <td>Initial definition.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>1.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>1.0</td>
- </tr>
- <tr>
- <td><code>children</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9")}}</td>
- <td>7.0 with a significant bug [1]<br>
- 9.0 according to the spec</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>childElementCount</code>, <code>nextElementSibling</code>, <code>previousElementSibling</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9.1")}}</td>
- <td>9.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>firstElementChild</code>, <code>lastElementChild</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9")}}</td>
- <td>9.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>classList</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9.2")}}</td>
- <td> </td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>outerHTML</code> {{experimental_inline}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("11")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>clientLeft</code>, <code>clientTop</code> {{experimental_inline}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9.1")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>getBoundingClientRect()</code>, <code>getClientRects()</code> {{experimental_inline}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>querySelector()</code>, <code>querySelectorAll()</code></td>
- <td>1.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9.1")}}</td>
- <td>8.0</td>
- <td>10.0</td>
- <td>3.2 (525.3)</td>
- </tr>
- <tr>
- <td><code>insertAdjacentHTML()</code> {{experimental_inline}}</td>
- <td>1.0</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("8")}}</td>
- <td>4.0</td>
- <td>7.0</td>
- <td>4.0 (527)</td>
- </tr>
- <tr>
- <td><code>setCapture() </code>{{non-standard_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("2")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>oncopy</code>, <code>oncut</code>, <code>onpaste</code> {{non-standard_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("1.9")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td> </td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>onwheel</code> {{non-standard_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("17")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>ongotpointercapture</code>, <code>onlostpointercapture</code>, <code>setPointerCapture()</code>, and <code>releasePointerCapture()</code></td>
- <td>{{CompatChrome(52.0)}} [4]</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}} <sup>[3]</sup></td>
- <td>10.0</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>matches()</code> {{experimental_inline}}</td>
- <td>{{CompatVersionUnknown}} with the non-standard name <code>webkitMatchesSelector</code></td>
- <td>{{CompatVersionUnknown}} {{property_prefix("webkit")}} {{property_prefix("ms")}}</td>
- <td>{{CompatGeckoDesktop("1.9.2")}} with the non-standard name <code>mozMatchesSelector</code><br>
- {{CompatGeckoDesktop("34")}} with the standard name</td>
- <td>9.0 with the non-standard name <code>msMatchesSelector</code></td>
- <td>11.5 with the non-standard name <code>oMatchesSelector</code><br>
- 15.0 with the non-standard name <code>webkitMatchesSelector</code></td>
- <td>5.0 with the non-standard name <code>webkitMatchesSelector</code></td>
- </tr>
- <tr>
- <td><code>requestPointerLock()</code></td>
- <td>16.0 {{property_prefix("webkit")}}, behind an about:flags<br>
- 22.0 {{property_prefix("webkit")}} (with special cases, progressively lifted see [2])</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("14")}}{{property_prefix("moz")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>requestFullscreen()</code></td>
- <td>14.0 {{property_prefix("webkit")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("10")}} {{property_prefix("moz")}}</td>
- <td>11.0 {{property_prefix("ms")}}</td>
- <td>12.10<br>
- 15.0 {{property_prefix("webkit")}}</td>
- <td>5.1 {{property_prefix("webkit")}}</td>
- </tr>
- <tr>
- <td><code>undoManager</code> and <code>undoScope</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}} (behind the <code>dom.undo_manager.enabled</code> pref)</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>attributes</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("22")}}<br>
- Before this it was available via the {{domxref("Node")}} interface that any <code>element</code> inherits.</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>scrollTopMax()</code> and <code>scrollLeftMax()</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("16")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td><code>closest()</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("35")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>hasAttributes()</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("1.0")}} (on the {{domxref("Node")}} interface)<br>
- {{CompatGeckoDesktop("35")}} (on this interface</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>insertAdjacentElement()</code>, <code>insertAdjacentText()</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("48.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td><code>assignedSlot</code>, <code>attatchShadow</code>, <code>shadowRoot</code>, and <code>slot</code></td>
- <td>{{CompatChrome(53)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>computedRole</code> and <code>computedName</code></td>
- <td>{{CompatChrome(41)}}[4]</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>28[4]</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>1.0</td>
- <td> </td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>1.0</td>
- <td> </td>
- </tr>
- <tr>
- <td><code>scrollTopMax()</code> and <code>scrollLeftMax()</code></td>
- <td>{{CompatNo}}</td>
- <td> </td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("16")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td> </td>
- </tr>
- <tr>
- <td><code>closest()</code></td>
- <td>{{CompatUnknown}}</td>
- <td> </td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("35")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td> </td>
- </tr>
- <tr>
- <td><code>hasAttributes()</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td> </td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("1.0")}} (on the {{domxref("Node")}} interface)<br>
- {{CompatGeckoMobile("35")}} (on this interface</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td> </td>
- </tr>
- <tr>
- <td><code>insertAdjacentElement()</code>, <code>insertAdjacentText()</code></td>
- <td>{{CompatVersionUnknown}}</td>
- <td> </td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("48.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td> </td>
- </tr>
- <tr>
- <td><code>assignedSlot</code>, <code>attatchShadow</code>, <code>shadowRoot</code>, and <code>slot</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatChrome(53.0)}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatChrome(53)}}</td>
- </tr>
- <tr>
- <td><code>computedRole</code> and <code>computedName</code></td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>28[4]</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Internet Explorer 7 and 8 incorrectly return the comments as part of the children of an Element. This is fixed in Internet Explorer 9 and later.</p>
-
-<p>[2] Chrome 16 allowed <code>webkitRequestPointerLock()</code> only in fullscreen; Chrome 21 for trusted web site (permission asked); Chrome 22 allowed it by default for all same-origin document; Chrome 23 allowed it in sandboxed {{HTMLElement("iframe")}} if the non-standard value <code>webkit-allow-pointer-lock</code> is set to the {{htmlattrxref("sandbox", "iframe")}} attribute.</p>
-
-<p>[3] Implementation withdrawn. See {{Bug("1166347")}}.</p>
-
-<p>[4] Behind a flag.</p>
diff --git a/files/ar/web/api/element/insertadjacenthtml/index.html b/files/ar/web/api/element/insertadjacenthtml/index.html
deleted file mode 100644
index 3b02d86986..0000000000
--- a/files/ar/web/api/element/insertadjacenthtml/index.html
+++ /dev/null
@@ -1,102 +0,0 @@
----
-title: Element.insertAdjacentHTML()
-slug: Web/API/Element/insertAdjacentHTML
-tags:
- - دوم
- - عنصر إدخال
-translation_of: Web/API/Element/insertAdjacentHTML
----
-<div dir="rtl">{{APIRef("DOM")}}</div>
-
-<p dir="rtl">تعمل طريقة  ()insertAdjacentHTML ل {{domxref ("Element")}}</p>
-
-<p dir="rtl">للواجهة على تحليل النص المحدد بتنسيق HTML أو XML وإدراج العقد الناتجة في شجرة DOM في موضع محدد. لا يعيد العنصر الذي يتم استخدامه عليه، وبالتالي لا يفسد العناصر الموجودة داخل هذا العنصر. هذا يتجنب الخطوة الإضافية للتسلسل، مما يجعلها أسرع بكثير من المعالجة المباشر</p>
-
-<p dir="rtl">{{domxref ("Element.innerHTML","innerHTML")}}.</p>
-
-<h2 dir="rtl" id="بناء_الجملة">بناء الجملة</h2>
-
-<pre class="syntaxbox notranslate"><em>element</em>.insertAdjacentHTML(<em>position</em>, <em>text</em>);</pre>
-
-<h3 dir="rtl" id="العوامل">العوامل</h3>
-
-<dl>
- <dt><code>position الموضع </code></dt>
- <dd dir="rtl">{{domxref ("DOMString")}} يمثل الموضع المتعلق بالعنصر element ؛ يجب أن يكون أحد السلاسل strings التالية:</dd>
- <dd>
- <ul>
- <li dir="rtl"><code style="color: red;">'beforebegin'</code>:   قبل العنصر <code>element نفسه</code>.</li>
- <li dir="rtl"><code style="color: green;">'afterbegin'</code>: داخل العنصر <code>element</code>, قبل التابع الأول له (child).</li>
- <li dir="rtl"><code style="color: blue;">'beforeend'</code>: داخل العنصر <code>element</code>, بعد آخر تابع له (child).</li>
- <li dir="rtl"><code style="color: magenta;">'afterend'</code>: بعد العنصر <code>element</code> نفسه.</li>
- </ul>
- </dd>
- <dt><code>text النص</code></dt>
- <dd dir="rtl">السلسلة (string) المطلوب تحليلها كـ HTML أو XML وإدراجها في الشجرة.</dd>
-</dl>
-
-<h3 dir="rtl" id="تصور_مرئي_لأسماء_المواقع">تصور مرئي لأسماء المواقع</h3>
-
-<pre class="notranslate">&lt;!-- <strong><code style="color: red;">beforebegin</code></strong> --&gt;
-<code style="font-weight: bold;">&lt;p&gt;</code>
- &lt;!-- <strong><code style="color: green;">afterbegin</code></strong> --&gt;
- foo
- &lt;!-- <strong><code style="color: blue;">beforeend</code></strong> --&gt;
-<code style="font-weight: bold;">&lt;/p&gt;</code>
-&lt;!-- <strong><code style="color: magenta;">afterend</code></strong> --&gt;</pre>
-
-<div class="note" dir="rtl"><strong>ملحوظة</strong>: لا يعمل الوضع قبل البداية والنهاية إلا إذا كانت العقدة في شجرة DOM ولها عنصر أصل.</div>
-
-<h2 dir="rtl" id="مثال">مثال</h2>
-
-<pre class="brush: js notranslate">// &lt;div id="one"&gt;one&lt;/div&gt;
-var d1 = document.getElementById('one');
-d1.insertAdjacentHTML('afterend', '&lt;div id="two"&gt;two&lt;/div&gt;');
-
-// </pre>
-
-<pre class="notranslate">At this point, the new structure is:</pre>
-
-<pre class="brush: js notranslate">// &lt;div id="one"&gt;one&lt;/div&gt;&lt;div id="two"&gt;two&lt;/div&gt;</pre>
-
-<h2 dir="rtl" id="ملاحظات">ملاحظات</h2>
-
-<h3 dir="rtl" id="إعتبارات_أمنية">إعتبارات أمنية</h3>
-
-<p dir="rtl">عند إدراج HTML في صفحة باستخدام insertAdjacentHTML () ، احرص على عدم استخدام إدخال المستخدم الذي لم يتم تجاوزه.</p>
-
-<p dir="rtl">لا يُنصح باستخدام insertAdjacentHTML () عند إدراج نص عادي ؛ بدلاً من ذلك ، استخدم خاصية {{domxref ("Node.textContent")}} أو طريقة method {{domxref ("Element.insertAdjacentText ()")}}. هذا لا يفسر المحتوى الذي تم تمريره على أنه HTML ، ولكن بدلاً من ذلك يُدرجه كنص خام.</p>
-
-<h2 dir="rtl" id="مواصفات">مواصفات</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">مواصفات</th>
- <th scope="col">الحالة</th>
- <th scope="col">تعليق</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('DOM Parsing', '#dom-element-insertadjacenthtml', 'Element.insertAdjacentHTML()')}}</td>
- <td>{{ Spec2('DOM Parsing') }}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
-
-<h2 dir="rtl" id="التوافق_مع_المتصفحات">التوافق مع المتصفحات</h2>
-
-<div class="hidden" dir="rtl">يتم إنشاء جدول التوافق في هذه الصفحة من البيانات المهيكلة. إذا كنت ترغب في المساهمة في البيانات ، يرجى مراجعة https://github.com/mdn/browser-compat-data وإرسال طلب سحب إلينا.</div>
-
-<p dir="rtl">{{Compat("api.Element.insertAdjacentHTML")}}</p>
-
-<h2 dir="rtl" id="شاهد_أيضا">شاهد أيضا</h2>
-
-<ul>
- <li>{{domxref("Element.insertAdjacentElement()")}}</li>
- <li>{{domxref("Element.insertAdjacentText()")}}</li>
- <li>{{domxref("XMLSerializer")}}: Construct a DOM representation of XML text</li>
- <li><a class="external" href="https://hacks.mozilla.org/2011/11/insertadjacenthtml-enables-faster-html-snippet-injection/">hacks.mozilla.org guest post</a><span class="external"> by Henri Sivonen including benchmark showing that insertAdjacentHTML can be way faster in some cases.</span></li>
-</ul>
diff --git a/files/ar/web/api/event/index.html b/files/ar/web/api/event/index.html
deleted file mode 100644
index bd9bc76522..0000000000
--- a/files/ar/web/api/event/index.html
+++ /dev/null
@@ -1,136 +0,0 @@
----
-title: Event
-slug: Web/API/Event
-translation_of: Web/API/Event
----
-<p>{{APIRef("DOM")}}</p>
-
-<p>The <code><strong>Event</strong></code> interface represents any event of the DOM. It contains common properties and methods to any event.</p>
-
-<p>A lot of other interfaces inherits, directly or not, from this base interface:</p>
-
-<div class="index">
-<ul>
- <li>{{domxref("AnimationEvent")}}</li>
- <li>{{domxref("AudioProcessingEvent")}}</li>
- <li>{{domxref("BeforeInputEvent")}}</li>
- <li>{{domxref("BeforeUnloadEvent")}}</li>
- <li>{{domxref("BlobEvent")}}</li>
- <li>{{domxref("ClipboardEvent")}}</li>
- <li>{{domxref("CloseEvent")}}</li>
- <li>{{domxref("CompositionEvent")}}</li>
- <li>{{domxref("CSSFontFaceLoadEvent")}}</li>
- <li>{{domxref("CustomEvent")}}</li>
- <li>{{domxref("DeviceLightEvent")}}</li>
- <li>{{domxref("DeviceMotionEvent")}}</li>
- <li>{{domxref("DeviceOrientationEvent")}}</li>
- <li>{{domxref("DeviceProximityEvent")}}</li>
- <li>{{domxref("DOMTransactionEvent")}}</li>
- <li>{{domxref("DragEvent")}}</li>
- <li>{{domxref("EditingBeforeInputEvent")}}</li>
- <li>{{domxref("ErrorEvent")}}</li>
- <li>{{domxref("FocusEvent")}}</li>
- <li>{{domxref("GamepadEvent")}}</li>
- <li>{{domxref("HashChangeEvent")}}</li>
- <li>{{domxref("IDBVersionChangeEvent")}}</li>
- <li>{{domxref("InputEvent")}}</li>
- <li>{{domxref("KeyboardEvent")}}</li>
- <li>{{domxref("MediaStreamEvent")}}</li>
- <li>{{domxref("MessageEvent")}}</li>
- <li>{{domxref("MouseEvent")}}</li>
- <li>{{domxref("MutationEvent")}}</li>
- <li>{{domxref("OfflineAudioCompletionEvent")}}</li>
- <li>{{domxref("PageTransitionEvent")}}</li>
- <li>{{domxref("PointerEvent")}}</li>
- <li>{{domxref("PopStateEvent")}}</li>
- <li>{{domxref("ProgressEvent")}}</li>
- <li>{{domxref("RelatedEvent")}}</li>
- <li>{{domxref("RTCDataChannelEvent")}}</li>
- <li>{{domxref("RTCIdentityErrorEvent")}}</li>
- <li>{{domxref("RTCIdentityEvent")}}</li>
- <li>{{domxref("RTCPeerConnectionIceEvent")}}</li>
- <li>{{domxref("SensorEvent")}}</li>
- <li>{{domxref("StorageEvent")}}</li>
- <li>{{domxref("SVGEvent")}}</li>
- <li>{{domxref("SVGZoomEvent")}}</li>
- <li>{{domxref("TimeEvent")}}</li>
- <li>{{domxref("TouchEvent")}}</li>
- <li>{{domxref("TrackEvent")}}</li>
- <li>{{domxref("TransitionEvent")}}</li>
- <li>{{domxref("UIEvent")}}</li>
- <li>{{domxref("UserProximityEvent")}}</li>
- <li>{{domxref("WheelEvent")}}</li>
-</ul>
-</div>
-
-<h2 id="Properties" name="Properties">Constructor</h2>
-
-<dl>
- <dt>{{domxref("Event.Event", "Event()")}}</dt>
- <dd>Creates an <code>Event</code> object.</dd>
-</dl>
-
-<h2 id="Properties" name="Properties">Properties</h2>
-
-<p><em>This interface doesn't inherit any property.</em></p>
-
-<dl>
- <dt>{{domxref("Event.bubbles")}} {{readonlyinline}}</dt>
- <dd>A boolean indicating whether the event bubbles up through the DOM or not.</dd>
- <dt>{{domxref("Event.cancelable")}} {{readonlyinline}}</dt>
- <dd>A boolean indicating whether the event is cancelable.</dd>
- <dt>{{domxref("Event.currentTarget")}} {{readonlyinline}}</dt>
- <dd>A reference to the currently registered target for the event.</dd>
- <dt>{{domxref("Event.defaultPrevented")}} {{readonlyinline}}</dt>
- <dd>Indicates whether or not {{domxref("event.preventDefault()")}} has been called on the event.</dd>
- <dt>{{domxref("Event.eventPhase")}} {{readonlyinline}}</dt>
- <dd>Indicates which phase of the event flow is being processed.</dd>
- <dt>{{domxref("Event.explicitOriginalTarget")}} {{non-standard_inline}} {{readonlyinline}}</dt>
- <dd>The explicit original target of the event (Mozilla-specific).</dd>
- <dt>{{domxref("Event.originalTarget")}} {{non-standard_inline}} {{readonlyinline}}</dt>
- <dd>The original target of the event, before any retargetings (Mozilla-specific).</dd>
- <dt>{{domxref("Event.target")}} {{readonlyinline}}</dt>
- <dd>A reference to the target to which the event was originally dispatched.</dd>
- <dt>{{domxref("Event.timeStamp")}} {{readonlyinline}}</dt>
- <dd>The time that the event was created.</dd>
- <dt>{{domxref("Event.type")}} {{readonlyinline}}</dt>
- <dd>The name of the event (case-insensitive).</dd>
- <dt>{{domxref("Event.isTrusted")}} {{readonlyinline}}</dt>
- <dd>Indicates whether or not the event was initiated by the browser (after a user click for instance) or by a script (using an event creation method, like <a href="/en-US/docs/DOM/event.initEvent">event.initEvent</a>)</dd>
-</dl>
-
-<h2 id="Methods" name="Methods">Methods</h2>
-
-<p><em>This interface doesn't inherit any method.</em></p>
-
-<dl>
- <dt>{{domxref("Event.initEvent()")}} {{deprecated_inline}}</dt>
- <dd>Initializes the value of an Event created. If the event has already being dispatched, this method does nothing.</dd>
- <dt>{{domxref("Event.preventBubble()")}} {{non-standard_inline}} {{Obsolete_inline(24)}}</dt>
- <dd>Prevents the event from bubbling. Obsolete, use {{domxref("event.stopPropagation")}} instead.</dd>
- <dt>{{domxref("Event.preventCapture()")}} {{non-standard_inline}} {{Obsolete_inline(24)}}</dt>
- <dd>Obsolete, use {{domxref("event.stopPropagation")}} instead.</dd>
- <dt>{{domxref("Event.preventDefault()")}}</dt>
- <dd>Cancels the event (if it is cancelable).</dd>
- <dt>{{domxref("Event.stopImmediatePropagation()")}}</dt>
- <dd>For this particular event, no other listener will be called. Neither those attached on the same element, nor those attached on elements which will be traversed later (in capture phase, for instance)</dd>
- <dt>{{domxref("Event.stopPropagation()")}}</dt>
- <dd>Stops the propagation of events further along in the DOM.</dd>
- <dt>{{domxref("Event.getPreventDefault()")}} {{non-standard_inline}}</dt>
- <dd>?</dd>
-</dl>
-
-<h2 id="See_also" name="See_also">See also</h2>
-
-<ul>
- <li>Types of events available: <a href="/en-US/docs/Web/Reference/Events">Event reference</a></li>
- <li><a href="/en-US/docs/Web/API/Event/Comparison_of_Event_Targets">Comparison of Event Targets</a> (target vs currentTarget vs relatedTarget vs originalTarget)</li>
- <li><a href="/en-US/docs/Web/Guide/DOM/Events/Creating_and_triggering_events">Creating and triggering custom events</a></li>
- <li>For Firefox add-on developers:
- <ul>
- <li><a href="/en-US/docs/Listening_to_events_in_Firefox_extensions">Listening to events in Firefox extensions</a></li>
- <li><a href="/en-US/docs/Listening_to_events_on_all_tabs">Listening to events on all tabs</a></li>
- </ul>
- </li>
- <li><a class="link-https" href="https://wiki.mozilla.org/Events">Mozilla related events in real life at wiki.mozilla.org </a></li>
-</ul>
diff --git a/files/ar/web/api/geolocation/index.html b/files/ar/web/api/geolocation/index.html
deleted file mode 100644
index 81d4548549..0000000000
--- a/files/ar/web/api/geolocation/index.html
+++ /dev/null
@@ -1,118 +0,0 @@
----
-title: Geolocation
-slug: Web/API/Geolocation
-tags:
- - API
- - Advanced
- - Geolocation API
- - Interface
- - NeedsTranslation
- - Reference
- - TopicStub
-translation_of: Web/API/Geolocation
----
-<div>{{APIRef("Geolocation API")}}</div>
-
-<p>The <code><strong>Geolocation</strong></code> interface represents an object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location.</p>
-
-<p>An object with this interface is obtained using the {{domxref("NavigatorGeolocation.geolocation")}} property implemented by the {{domxref("Navigator")}} object.</p>
-
-<div class="note">
-<p><strong>Note:</strong> For security reasons, when a web page tries to access location information, the user is notified and asked to grant permission. Be aware that each browser has its own policies and methods for requesting this permission.</p>
-</div>
-
-<h2 id="Properties">Properties</h2>
-
-<p><em>The <code>Geolocation</code> interface neither implements, nor inherits any property.</em></p>
-
-<h2 id="Methods">Methods</h2>
-
-<p><em><em>The <code>Geolocation</code> interface doesn't inherit any </em>method</em>.</p>
-
-<dl>
- <dt>{{domxref("Geolocation.getCurrentPosition()")}}</dt>
- <dd>Determines the device's current location and gives back a {{domxref("Position")}} object with the data.</dd>
- <dt>{{domxref("Geolocation.watchPosition()")}}</dt>
- <dd>Returns a <code>long</code> value representing the newly established callback function to be invoked whenever the device location changes.</dd>
- <dt>{{domxref("Geolocation.clearWatch()")}}</dt>
- <dd>Removes the particular handler previously installed using <code>watchPosition()</code>.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('Geolocation')}}</td>
- <td>{{Spec2('Geolocation')}}</td>
- <td>Initial specification.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>5</td>
- <td>{{CompatGeckoDesktop("1.9.1")}}</td>
- <td>9</td>
- <td>10.60<br>
- Removed in 15.0<br>
- Reintroduced in 16.0</td>
- <td>5</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown()}}</td>
- <td>{{CompatUnknown()}}</td>
- <td>{{CompatGeckoMobile("4")}}</td>
- <td>{{CompatUnknown()}}</td>
- <td>10.60</td>
- <td>{{CompatUnknown()}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/WebAPI/Using_geolocation" title="/en-US/docs/WebAPI/Using_geolocation">Using geolocation</a></li>
-</ul>
diff --git a/files/ar/web/api/geolocation_api/index.html b/files/ar/web/api/geolocation_api/index.html
deleted file mode 100644
index 74cf4c6caf..0000000000
--- a/files/ar/web/api/geolocation_api/index.html
+++ /dev/null
@@ -1,295 +0,0 @@
----
-title: Using geolocation
-slug: Web/API/Geolocation_API
-translation_of: Web/API/Geolocation_API
-original_slug: Web/API/Geolocation/Using_geolocation
----
-<p>The <strong>geolocation API</strong> allows the user to provide their location to web applications if they so desire. For privacy reasons, the user is asked for permission to report location information.</p>
-
-<h2 id="The_geolocation_object">The geolocation object</h2>
-
-<p>The geolocation API is published through the {{domxref("navigator.geolocation")}} object.</p>
-
-<p>If the object exists, geolocation services are available. You can test for the presence of geolocation thusly:</p>
-
-<pre class="brush: js">if ("geolocation" in navigator) {
- /* geolocation is available */
-} else {
- /* geolocation IS NOT available */
-}
-</pre>
-
-<div class="note">
-<p><strong>Note:</strong> On Firefox 24 and older versions, <code>"geolocation" in navigator</code> always returned <code>true</code> even if the API was disabled. This has been fixed with <a href="/en-US/docs/Mozilla/Firefox/Releases/25/Site_Compatibility">Firefox 25</a> to comply with the spec. ({{bug(884921)}}).</p>
-</div>
-
-<h3 id="Getting_the_current_position">Getting the current position</h3>
-
-<p>To obtain the user's current location, you can call the {{domxref("geolocation.getCurrentPosition()","getCurrentPosition()")}} method. This initiates an asynchronous request to detect the user's position, and queries the positioning hardware to get up-to-date information. When the position is determined, the defined callback function is executed. You can optionally provide a second callback function to be executed if an error occurs. A third, optional, parameter is an options object where you can set the maximum age of the position returned, the time to wait for a request, and if you want high accuracy for the position.</p>
-
-<div class="note">
-<p><strong>Note:</strong> By default, {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}} tries to answer as fast as possible with a low accuracy result. It is useful if you need a quick answer regardless of the accuracy. Devices with a GPS, for example, can take a minute or more to get a GPS fix, so less accurate data (IP location or wifi) may be returned to {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}}.</p>
-</div>
-
-<pre class="brush: js">navigator.geolocation.getCurrentPosition(function(position) {
- do_something(position.coords.latitude, position.coords.longitude);
-});</pre>
-
-<p>The above example will cause the <code>do_something()</code> function to execute when the location is obtained.</p>
-
-<h3 id="Watching_the_current_position">Watching the current position</h3>
-
-<p>If the position data changes (either by device movement or if more accurate geo information arrives), you can set up a callback function that is called with that updated position information. This is done using the {{domxref("Geolocation.watchPosition()","watchPosition()")}} function, which has the same input parameters as {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}}. The callback function is called multiple times, allowing the browser to either update your location as you move, or provide a more accurate location as different techniques are used to geolocate you. The error callback function, which is optional just as it is for {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}}, can be called repeatedly.</p>
-
-<div class="note">
-<p><strong>Note:</strong> You can use {{domxref("Geolocation.watchPosition()","watchPosition()")}} without an initial {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}} call.</p>
-</div>
-
-<pre class="brush: js">var watchID = navigator.geolocation.watchPosition(function(position) {
- do_something(position.coords.latitude, position.coords.longitude);
-});</pre>
-
-<p>The {{domxref("Geolocation.watchPosition()","watchPosition()")}} method returns an ID number that can be used to uniquely identify the requested position watcher; you use this value in tandem with the {{domxref("Geolocation.clearWatch()","clearWatch()")}} method to stop watching the user's location.</p>
-
-<pre class="brush: js">navigator.geolocation.clearWatch(watchID);
-</pre>
-
-<h3 id="Fine_tuning_response">Fine tuning response</h3>
-
-<p>Both {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}} and {{domxref("Geolocation.watchPosition()","watchPosition()")}} accept a success callback, an optional error callback, and an optional <a href="/en-US/docs/Web/API/PositionOptions">PositionOptions</a> object.</p>
-
-<p>{{page("/en-US/docs/DOM/navigator.geolocation.getCurrentPosition","PositionOptions")}}</p>
-
-<p>A call to {{domxref("Geolocation.watchPosition()","watchPosition")}} could look like:</p>
-
-<pre class="brush: js">function geo_success(position) {
- do_something(position.coords.latitude, position.coords.longitude);
-}
-
-function geo_error() {
- alert("Sorry, no position available.");
-}
-
-var geo_options = {
- enableHighAccuracy: true,
- maximumAge : 30000,
- timeout : 27000
-};
-
-var wpid = navigator.geolocation.watchPosition(geo_success, geo_error, geo_options);</pre>
-
-<p><a id="fck_paste_padding">A demo of watchPosition in use: </a><a href="http://www.thedotproduct.org/experiments/geo/">http://www.thedotproduct.org/experiments/geo/</a><br>
- <a id="fck_paste_padding"></a></p>
-
-<h2 id="Describing_a_position">Describing a position</h2>
-
-<p>The user's location is described using a <code>Position</code> object referencing a <code>Coordinates</code> object.</p>
-
-<p>{{page("/en-US/docs/DOM/navigator/geolocation/getCurrentPosition","Position")}}</p>
-
-<p>{{page("/en-US/docs/DOM/navigator/geolocation/getCurrentPosition","Coordinates")}}</p>
-
-<h2 id="Handling_errors">Handling errors</h2>
-
-<p>The error callback function, if provided when calling <code>getCurrentPosition()</code> or <code>watchPosition()</code>, expects a <a href="/en-US/docs/Web/API/PositionError">PositionError</a> object as its first parameter.</p>
-
-<pre class="brush: js">function errorCallback(error) {
- alert('ERROR(' + error.code + '): ' + error.message);
-};
-</pre>
-
-<p>{{page("/en-US/docs/DOM/navigator/geolocation/getCurrentPosition","PositionError")}}</p>
-
-<h2 id="Geolocation_Live_Example">Geolocation Live Example</h2>
-
-<div class="hidden">
-<pre class="brush: css">body {
- padding: 20px;
- background-color:#ffffc9
-}
-
-p { margin : 0; }
-</pre>
-</div>
-
-<h3 id="HTML_Content">HTML Content</h3>
-
-<pre class="brush: html;">&lt;p&gt;&lt;button onclick="geoFindMe()"&gt;Show my location&lt;/button&gt;&lt;/p&gt;
-&lt;div id="out"&gt;&lt;/div&gt;
-</pre>
-
-<h3 id="JavaScript_Content">JavaScript Content</h3>
-
-<pre class="brush: js;">function geoFindMe() {
- var output = document.getElementById("out");
-
- if (!navigator.geolocation){
- output.innerHTML = "&lt;p&gt;Geolocation is not supported by your browser&lt;/p&gt;";
- return;
- }
-
- function success(position) {
- var latitude = position.coords.latitude;
- var longitude = position.coords.longitude;
-
- output.innerHTML = '&lt;p&gt;Latitude is ' + latitude + '° &lt;br&gt;Longitude is ' + longitude + '°&lt;/p&gt;';
-
- var img = new Image();
- img.src = "https://maps.googleapis.com/maps/api/staticmap?center=" + latitude + "," + longitude + "&amp;zoom=13&amp;size=300x300&amp;sensor=false";
-
- output.appendChild(img);
- };
-
- function error() {
- output.innerHTML = "Unable to retrieve your location";
- };
-
- output.innerHTML = "&lt;p&gt;Locating…&lt;/p&gt;";
-
- navigator.geolocation.getCurrentPosition(success, error);
-}
-</pre>
-
-<h3 id="Live_Result">Live Result</h3>
-
-<p>{{EmbedLiveSample('Geolocation_Live_Example', 350, 410)}}</p>
-
-<h2 id="Prompting_for_permission">Prompting for permission</h2>
-
-<p>Any add-on hosted on <a href="https://addons.mozilla.org/">addons.mozilla.org</a> which makes use of geolocation data must explicitly request permission before doing so. The following function will request permission in a manner similar to the automatic prompt displayed for web pages. The user's response will be saved in the preference specified by the <code>pref</code> parameter, if applicable. The function provided in the <code>callback</code> parameter will be called with a boolean value indicating the user's response. If <code>true</code>, the add-on may access geolocation data.</p>
-
-<pre class="brush: js">function prompt(window, pref, message, callback) {
- let branch = Components.classes["@mozilla.org/preferences-service;1"]
- .getService(Components.interfaces.nsIPrefBranch);
-
- if (branch.getPrefType(pref) === branch.PREF_STRING) {
- switch (branch.getCharPref(pref)) {
- case "always":
- return callback(true);
- case "never":
- return callback(false);
- }
- }
-
- let done = false;
-
- function remember(value, result) {
- return function() {
- done = true;
- branch.setCharPref(pref, value);
- callback(result);
- }
- }
-
- let self = window.PopupNotifications.show(
- window.gBrowser.selectedBrowser,
- "geolocation",
- message,
- "geo-notification-icon",
- {
- label: "Share Location",
- accessKey: "S",
- callback: function(notification) {
- done = true;
- callback(true);
- }
- }, [
- {
- label: "Always Share",
- accessKey: "A",
- callback: remember("always", true)
- },
- {
- label: "Never Share",
- accessKey: "N",
- callback: remember("never", false)
- }
- ], {
- eventCallback: function(event) {
- if (event === "dismissed") {
- if (!done) callback(false);
- done = true;
- window.PopupNotifications.remove(self);
- }
- },
- persistWhileVisible: true
- });
-}
-
-prompt(window,
- "extensions.foo-addon.allowGeolocation",
- "Foo Add-on wants to know your location.",
- function callback(allowed) { alert(allowed); });
-</pre>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>5</td>
- <td>{{CompatGeckoDesktop("1.9.1")}}<sup>[1]</sup></td>
- <td>9</td>
- <td>10.60<br>
- {{CompatNo}} 15.0<br>
- 16.0</td>
- <td>5</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("4")}}</td>
- <td>1.0.1</td>
- <td>{{CompatUnknown}}</td>
- <td>10.60<br>
- {{CompatNo}} 15.0<br>
- 16.0</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Firefox includes support for locating you based on your WiFi information using Google Location Services. In the transaction between Firefox and Google, data is exchanged including WiFi Access Point data, an access token (similar to a 2 week cookie), and the user's IP address. For more information, please check out Mozilla's <a href="http://www.mozilla.com/en-US/legal/privacy/">Privacy Policy</a> and Google's <a href="http://www.google.com/privacy-lsf.html">Privacy Policy</a> covering how this data can be used.</p>
-
-<p>Firefox 3.6 (Gecko 1.9.2) added support for using the <a href="http://catb.org/gpsd/">GPSD</a> (GPS daemon) service for geolocation on Linux.</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li>{{domxref("navigator.geolocation")}}</li>
- <li><a href="/en-US/Apps/Build/gather_and_modify_data/Plotting_yourself_on_the_map">Plotting yourself on the map</a></li>
- <li><a href="http://www.w3.org/TR/geolocation-API/" rel="external">Geolocation API on w3.org</a></li>
- <li><a href="/en-US/demos/tag/tech:geolocation">Demos about the Geolocation API</a></li>
- <li><a href="https://hacks.mozilla.org/2013/10/who-moved-my-geolocation/">Who moved my geolocation?</a> (Hacks blog)</li>
-</ul>
diff --git a/files/ar/web/api/geolocation_api/using_the_geolocation_api/index.html b/files/ar/web/api/geolocation_api/using_the_geolocation_api/index.html
deleted file mode 100644
index 86610979b0..0000000000
--- a/files/ar/web/api/geolocation_api/using_the_geolocation_api/index.html
+++ /dev/null
@@ -1,167 +0,0 @@
----
-title: Using the Geolocation API
-slug: Web/API/Geolocation_API/Using_the_Geolocation_API
-translation_of: Web/API/Geolocation_API/Using_the_Geolocation_API
-original_slug: Web/API/Geolocation/Using_geolocation/Using_the_Geolocation_API
----
-<div>{{securecontext_header}}{{DefaultAPISidebar("Geolocation API")}}</div>
-
-<p>The Geolocation API is used to retrieve the user's location, so that it can for example be used to display their position using a mapping API. This article explains the basics of how to use it.</p>
-
-<h2 id="The_geolocation_object">The geolocation object</h2>
-
-<p>The <a href="/en-US/docs/Web/API/Geolocation">Geolocation</a> API is available through the {{domxref("navigator.geolocation")}} object.</p>
-
-<p>If the object exists, geolocation services are available. You can test for the presence of geolocation thusly:</p>
-
-<pre class="brush: js">if ("geolocation" in navigator) {
- /* geolocation is available */
-} else {
- /* geolocation IS NOT available */
-}
-</pre>
-
-<h3 id="Getting_the_current_position">Getting the current position</h3>
-
-<p>To obtain the user's current location, you can call the {{domxref("geolocation.getCurrentPosition()","getCurrentPosition()")}} method. This initiates an asynchronous request to detect the user's position, and queries the positioning hardware to get up-to-date information. When the position is determined, the defined callback function is executed. You can optionally provide a second callback function to be executed if an error occurs. A third, optional, parameter is an options object where you can set the maximum age of the position returned, the time to wait for a request, and if you want high accuracy for the position.</p>
-
-<div class="note">
-<p><strong>Note:</strong> By default, {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}} tries to answer as fast as possible with a low accuracy result. It is useful if you need a quick answer regardless of the accuracy. Devices with a GPS, for example, can take a minute or more to get a GPS fix, so less accurate data (IP location or wifi) may be returned to {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}}.</p>
-</div>
-
-<pre class="brush: js">navigator.geolocation.getCurrentPosition(function(position) {
- do_something(position.coords.latitude, position.coords.longitude);
-});</pre>
-
-<p>The above example will cause the <code>do_something()</code> function to execute when the location is obtained.</p>
-
-<h3 id="Watching_the_current_position">Watching the current position</h3>
-
-<p>If the position data changes (either by device movement or if more accurate geo information arrives), you can set up a callback function that is called with that updated position information. This is done using the {{domxref("Geolocation.watchPosition()","watchPosition()")}} function, which has the same input parameters as {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}}. The callback function is called multiple times, allowing the browser to either update your location as you move, or provide a more accurate location as different techniques are used to geolocate you. The error callback function, which is optional just as it is for {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}}, can be called repeatedly.</p>
-
-<div class="note">
-<p><strong>Note:</strong> You can use {{domxref("Geolocation.watchPosition()","watchPosition()")}} without an initial {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}} call.</p>
-</div>
-
-<pre class="brush: js">var watchID = navigator.geolocation.watchPosition(function(position) {
- do_something(position.coords.latitude, position.coords.longitude);
-});</pre>
-
-<p>The {{domxref("Geolocation.watchPosition()","watchPosition()")}} method returns an ID number that can be used to uniquely identify the requested position watcher; you use this value in tandem with the {{domxref("Geolocation.clearWatch()","clearWatch()")}} method to stop watching the user's location.</p>
-
-<pre class="brush: js">navigator.geolocation.clearWatch(watchID);
-</pre>
-
-<h3 id="Fine_tuning_the_response">Fine tuning the response</h3>
-
-<p>Both {{domxref("Geolocation.getCurrentPosition()","getCurrentPosition()")}} and {{domxref("Geolocation.watchPosition()","watchPosition()")}} accept a success callback, an optional error callback, and an optional <code><a href="/en-US/docs/Web/API/PositionOptions">PositionOptions</a></code> object.</p>
-
-<p>This object allows you to specify whether to enable high accuracy, a maximum age for the returned position value (up until this age it will be cached and reused if the same position is requested again; after this the browser will request fresh position data), and a timeout value that dictates how long the browser should attempt to get the position data for, before it times out.</p>
-
-<p>A call to {{domxref("Geolocation.watchPosition()","watchPosition")}} could look like:</p>
-
-<pre class="brush: js">function geo_success(position) {
- do_something(position.coords.latitude, position.coords.longitude);
-}
-
-function geo_error() {
- alert("Sorry, no position available.");
-}
-
-var geo_options = {
- enableHighAccuracy: true,
- maximumAge : 30000,
- timeout : 27000
-};
-
-var wpid = navigator.geolocation.watchPosition(geo_success, geo_error, geo_options);</pre>
-
-<h2 id="Describing_a_position">Describing a position</h2>
-
-<p>The user's location is described using a {{domxref("GeolocationPosition")}} object instance, which itself contains a {{domxref("GeolocationCoordinates")}} object instance.</p>
-
-<p>The <code>GeolocationPosition</code> instance contains only two things, a <code>coords</code> property that contains the <code>GeolocationCoordinates</code> instance, and a timestamp property that contains a {{domxref("DOMTimeStamp")}} instance representing the time at which the position data was retrieved.</p>
-
-<p>The <code>GeolocationCoordinates</code> instance contains a number of properties, but the two you'll use most commonly are <code>latitude</code> and <code>longitude</code>, which are what you need to draw your position on a map. Hence many Geolocation success callbacks look fairly simple:</p>
-
-<pre class="brush: js">function success(position) {
- const latitude = position.coords.latitude;
- const longitude = position.coords.longitude;
-
- // Do something with your latitude and longitude
-}</pre>
-
-<p>You can however get a number of other bits of information from a <code>GeolocationCoordinates</code> object, including altitude, speed, what direction the device is facing, and an accuracy measure of the altitude, longitude, and latitude data.</p>
-
-<h2 id="Handling_errors">Handling errors</h2>
-
-<p>The error callback function, if provided when calling <code>getCurrentPosition()</code> or <code>watchPosition()</code>, expects a <code><a href="/en-US/docs/Web/API/GeolocationPositionError">GeolocationPositionError</a></code> object instance as its first parameter. This object type contains two properties, a <code>code</code> indicating what type of error has been returned, and a human-readable <code>message</code> that describes what the error code means.</p>
-
-<p>You could use it like so:</p>
-
-<pre class="brush: js">function errorCallback(error) {
- alert('ERROR(' + error.code + '): ' + error.message);
-};
-</pre>
-
-<h2 id="Examples">Examples</h2>
-
-<p>In the following example the Geolocation API is used to retrieve the user's latitude and longitude. If sucessful, the available hyperlink is populated with an <code>openstreetmap.org </code>URL that will show their location.</p>
-
-<div class="hidden">
-<pre class="brush: css">body {
- padding: 20px;
- background-color:#ffffc9
-}
-
-button {
- margin: .5rem 0;
-}
-</pre>
-</div>
-
-<h3 id="HTML_Content">HTML Content</h3>
-
-<pre class="brush: html;">&lt;button id = "find-me"&gt;Show my location&lt;/button&gt;&lt;br/&gt;
-&lt;p id = "status"&gt;&lt;/p&gt;
-&lt;a id = "map-link" target="_blank"&gt;&lt;/a&gt;
-</pre>
-
-<h3 id="JavaScript_Content">JavaScript Content</h3>
-
-<pre class="brush: js">function geoFindMe() {
-
- const status = document.querySelector('#status');
- const mapLink = document.querySelector('#map-link');
-
- mapLink.href = '';
- mapLink.textContent = '';
-
- function success(position) {
- const latitude = position.coords.latitude;
- const longitude = position.coords.longitude;
-
- status.textContent = '';
- mapLink.href = `https://www.openstreetmap.org/#map=18/${latitude}/${longitude}`;
- mapLink.textContent = `Latitude: ${latitude} °, Longitude: ${longitude} °`;
- }
-
- function error() {
- status.textContent = 'Unable to retrieve your location';
- }
-
- if (!navigator.geolocation) {
- status.textContent = 'Geolocation is not supported by your browser';
- } else {
- status.textContent = 'Locating…';
- navigator.geolocation.getCurrentPosition(success, error);
- }
-
-}
-
-document.querySelector('#find-me').addEventListener('click', geoFindMe);
-</pre>
-
-<h3 id="Live_Result">Live Result</h3>
-
-<p>{{EmbedLiveSample('Examples', 350, 150, "", "", "", "geolocation")}}</p>
diff --git a/files/ar/web/api/history_api/example/index.html b/files/ar/web/api/history_api/example/index.html
deleted file mode 100644
index b31bb01cf2..0000000000
--- a/files/ar/web/api/history_api/example/index.html
+++ /dev/null
@@ -1,417 +0,0 @@
----
-title: مثال تصفح آجاكس
-slug: Web/API/History_API/Example
-translation_of: Web/API/History_API/Example
-original_slug: Web/API/History_API/مثال
----
-<p dir="rtl">هذا مثال عن موقع واب يستعمل تقنية Ajax مُكَـوَّن فقط من ثلاث صفحات (<em>first_page.php</em>، <em>second_page.php </em> و <em>third_page.php</em>). لرؤية كيفية اشتغالها، رجاء، قم بصنع الملفات التالية (أو git clone <a href="https://github.com/giabao/mdn-ajax-nav-example" title="/en-US/docs/">https://github.com/giabao/mdn-ajax-nav-example.git</a>)</p>
-
-<div class="note" dir="rtl"><strong>ملاحظة</strong>: لدمج كامل لعناصر{{HTMLElement("form")}} ضمن هذه الآلية، رجاء ألق نظرة على فقرة <a href="/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#Submitting_forms_and_uploading_files">Submitting forms and uploading files</a>.</div>
-
-<p dir="rtl"><strong>first_page.php</strong>:</p>
-
-<div dir="rtl" style="height: 400px; margin-bottom: 12px; overflow: auto;">
-<pre class="brush: php">&lt;?php
-    $page_title = "First page";
-
-    $as_json = false;
-    if (isset($_GET["view_as"]) &amp;&amp; $_GET["view_as"] == "json") {
-        $as_json = true;
-        ob_start();
-    } else {
-?&gt;
-&lt;!doctype html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;?php
-        include "include/header.php";
-        echo "&lt;title&gt;" . $page_title . "&lt;/title&gt;";
-?&gt;
-&lt;/head&gt;
-
-&lt;body&gt;
-
-&lt;?php include "include/before_content.php"; ?&gt;
-
-&lt;p&gt;This paragraph is shown only when the navigation starts from &lt;strong&gt;first_page.php&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;div id="ajax-content"&gt;
-&lt;?php } ?&gt;
-
-    &lt;p&gt;This is the content of &lt;strong&gt;first_page.php&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;?php
-    if ($as_json) {
-        echo json_encode(array("page" =&gt; $page_title, "content" =&gt; ob_get_clean()));
-    } else {
-?&gt;
-&lt;/div&gt;
-
-&lt;p&gt;This paragraph is shown only when the navigation starts from &lt;strong&gt;first_page.php&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;?php
-        include "include/after_content.php";
-        echo "&lt;/body&gt;\n&lt;/html&gt;";
-    }
-?&gt;
-</pre>
-</div>
-
-<p dir="rtl"><strong>second_page.php</strong>:</p>
-
-<div dir="rtl" style="height: 400px; margin-bottom: 12px; overflow: auto;">
-<pre class="brush: php">&lt;?php
-    $page_title = "Second page";
-
-    $as_json = false;
-    if (isset($_GET["view_as"]) &amp;&amp; $_GET["view_as"] == "json") {
-        $as_json = true;
-        ob_start();
-    } else {
-?&gt;
-&lt;!doctype html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;?php
-        include "include/header.php";
-        echo "&lt;title&gt;" . $page_title . "&lt;/title&gt;";
-?&gt;
-&lt;/head&gt;
-
-&lt;body&gt;
-
-&lt;?php include "include/before_content.php"; ?&gt;
-
-&lt;p&gt;This paragraph is shown only when the navigation starts from &lt;strong&gt;second_page.php&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;div id="ajax-content"&gt;
-&lt;?php } ?&gt;
-
-    &lt;p&gt;This is the content of &lt;strong&gt;second_page.php&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;?php
-    if ($as_json) {
-        echo json_encode(array("page" =&gt; $page_title, "content" =&gt; ob_get_clean()));
-    } else {
-?&gt;
-&lt;/div&gt;
-
-&lt;p&gt;This paragraph is shown only when the navigation starts from &lt;strong&gt;second_page.php&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;?php
-        include "include/after_content.php";
-        echo "&lt;/body&gt;\n&lt;/html&gt;";
-    }
-?&gt;
-</pre>
-</div>
-
-<p dir="rtl"><strong>third_page.php</strong>:</p>
-
-<div dir="rtl" style="height: 400px; margin-bottom: 12px; overflow: auto;">
-<pre class="brush: php">&lt;?php
-    $page_title = "Third page";
-    $page_content = "&lt;p&gt;This is the content of &lt;strong&gt;third_page.php&lt;/strong&gt;. This content is stored into a php variable.&lt;/p&gt;";
-
-    if (isset($_GET["view_as"]) &amp;&amp; $_GET["view_as"] == "json") {
-        echo json_encode(array("page" =&gt; $page_title, "content" =&gt; $page_content));
-    } else {
-?&gt;
-&lt;!doctype html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;?php
-        include "include/header.php";
-        echo "&lt;title&gt;" . $page_title . "&lt;/title&gt;";
-?&gt;
-&lt;/head&gt;
-
-&lt;body&gt;
-
-&lt;?php include "include/before_content.php"; ?&gt;
-
-&lt;p&gt;This paragraph is shown only when the navigation starts from &lt;strong&gt;third_page.php&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;div id="ajax-content"&gt;
-&lt;?php echo $page_content; ?&gt;
-&lt;/div&gt;
-
-&lt;p&gt;This paragraph is shown only when the navigation starts from &lt;strong&gt;third_page.php&lt;/strong&gt;.&lt;/p&gt;
-
-&lt;?php
-        include "include/after_content.php";
-        echo "&lt;/body&gt;\n&lt;/html&gt;";
-    }
-?&gt;
-</pre>
-</div>
-
-<p dir="rtl"><strong>css/style.css</strong>:</p>
-
-<pre class="brush: css" dir="rtl">#ajax-loader {
-    position: fixed;
-    display: table;
-    top: 0;
-    left: 0;
-    width: 100%;
-    height: 100%;
-}
-
-#ajax-loader &gt; div {
-    display: table-cell;
-    width: 100%;
-    height: 100%;
-    vertical-align: middle;
-    text-align: center;
-    background-color: #000000;
-    opacity: 0.65;
-}
-</pre>
-
-<p dir="rtl"><strong>include/after_content.php</strong>:</p>
-
-<pre class="brush: php" dir="rtl">&lt;p&gt;This is the footer. It is shared between all ajax pages.&lt;/p&gt;
-</pre>
-
-<p dir="rtl"><strong>include/before_content.php</strong>:</p>
-
-<pre class="brush: php" dir="rtl">&lt;p&gt;
-[ &lt;a class="ajax-nav" href="first_page.php"&gt;First example&lt;/a&gt;
-| &lt;a class="ajax-nav" href="second_page.php"&gt;Second example&lt;/a&gt;
-| &lt;a class="ajax-nav" href="third_page.php"&gt;Third example&lt;/a&gt;
-| &lt;a class="ajax-nav" href="unexisting.php"&gt;Unexisting page&lt;/a&gt; ]
-&lt;/p&gt;
-
-</pre>
-
-<p dir="rtl"><strong>include/header.php</strong>:</p>
-
-<pre class="brush: php" dir="rtl">&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
-&lt;script type="text/javascript" src="js/ajax_nav.js"&gt;&lt;/script&gt;
-&lt;link rel="stylesheet" href="css/style.css" /&gt;
-</pre>
-
-<p dir="rtl"><strong>js/ajax_nav.js</strong>:</p>
-
-<p dir="rtl">(قبل تنفيذها في بيئة العمل، رجاءً اقرأ<strong> <a href="#const_compatibility" title="Note about *const* compatibility">the note about the const statement compatibility</a></strong>)</p>
-
-<div dir="rtl" style="height: 400px; margin-bottom: 12px; overflow: auto;">
-<pre class="brush: js" dir="rtl">"use strict";
-
-const ajaxRequest = new (function () {
-
-    function closeReq () {
-        oLoadingBox.parentNode &amp;&amp; document.body.removeChild(oLoadingBox);
-        bIsLoading = false;
-    }
-
-    function abortReq () {
-        if (!bIsLoading) { return; }
-        oReq.abort();
-        closeReq();
-    }
-
-    function ajaxError () {
-        alert("Unknown error.");
-    }
-
-    function ajaxLoad () {
-        var vMsg, nStatus = this.status;
-        switch (nStatus) {
-            case 200:
-                vMsg = JSON.parse(this.responseText);
-                document.title = oPageInfo.title = vMsg.page;
-                document.getElementById(sTargetId).innerHTML = vMsg.content;
-                if (bUpdateURL) {
-                    history.pushState(oPageInfo, oPageInfo.title, oPageInfo.url);
-                    bUpdateURL = false;
-                }
-                break;
-            default:
-                vMsg = nStatus + ": " + (oHTTPStatus[nStatus] || "Unknown");
-                switch (Math.floor(nStatus / 100)) {
-                    /*
-                    case 1:
-                        // Informational 1xx
-                        console.log("Information code " + vMsg);
-                        break;
-                    case 2:
-                        // Successful 2xx
-                        console.log("Successful code " + vMsg);
-                        break;
-                    case 3:
-                        // Redirection 3xx
-                        console.log("Redirection code " + vMsg);
-                        break;
-                    */
-                    case 4:
-                        /* Client Error 4xx */
-                        alert("Client Error #" + vMsg);
-                        break;
-                    case 5:
-                        /* Server Error 5xx */
-                        alert("Server Error #" + vMsg);
-                        break;
-                    default:
-                        /* Unknown status */
-                        ajaxError();
-                }
-        }
-        closeReq();
-    }
-
-    function filterURL (sURL, sViewMode) {
-        return sURL.replace(rSearch, "") + ("?" + sURL.replace(rHost, "&amp;").replace(rView, sViewMode ? "&amp;" + sViewKey + "=" + sViewMode : "").slice(1)).replace(rEndQstMark, "");
-    }
-
-    function getPage (sPage) {
-        if (bIsLoading) { return; }
-        oReq = new XMLHttpRequest();
-        bIsLoading = true;
-        oReq.onload = ajaxLoad;
-        oReq.onerror = ajaxError;
-        if (sPage) { oPageInfo.url = filterURL(sPage, null); }
-        oReq.open("get", filterURL(oPageInfo.url, "json"), true);
-        oReq.send();
-        oLoadingBox.parentNode || document.body.appendChild(oLoadingBox);
-    }
-
-    function requestPage (sURL) {
-        if (history.pushState) {
-            bUpdateURL = true;
-            getPage(sURL);
-        } else {
-            /* Ajax navigation is not supported */
-            location.assign(sURL);
-        }
-    }
-
-    function processLink () {
-        if (this.className === sAjaxClass) {
-            requestPage(this.href);
-            return false;
-        }
-        return true;
-    }
-
-    function init () {
-        oPageInfo.title = document.title;
-        for (var oLink, nIdx = 0, nLen = document.links.length; nIdx &lt; nLen; document.links[nIdx++].onclick = processLink);
-    }
-
-    const
-
-        /* customizable constants */
-        sTargetId = "ajax-content", sViewKey = "view_as", sAjaxClass = "ajax-nav",
-
-        /* not customizable constants */
-        rSearch = /\?.*$/, rHost = /^[^\?]*\?*&amp;*/, rView = new RegExp("&amp;" + sViewKey + "\\=[^&amp;]*|&amp;*$", "i"), rEndQstMark = /\?$/,
-        oLoadingBox = document.createElement("div"), oCover = document.createElement("div"), oLoadingImg = new Image(),
-        oPageInfo = {
-            title: null,
-            url: location.href
-        }, oHTTPStatus = /* http://www.iana.org/assignments/http-status-codes/http-status-codes.xml */ {
-            100: "Continue",
-            101: "Switching Protocols",
-            102: "Processing",
-            200: "OK",
-            201: "Created",
-            202: "Accepted",
-            203: "Non-Authoritative Information",
-            204: "No Content",
-            205: "Reset Content",
-            206: "Partial Content",
-            207: "Multi-Status",
-            208: "Already Reported",
-            226: "IM Used",
-            300: "Multiple Choices",
-            301: "Moved Permanently",
-            302: "Found",
-            303: "See Other",
-            304: "Not Modified",
-            305: "Use Proxy",
-            306: "Reserved",
-            307: "Temporary Redirect",
-            308: "Permanent Redirect",
-            400: "Bad Request",
-            401: "Unauthorized",
-            402: "Payment Required",
-            403: "Forbidden",
-            404: "Not Found",
-            405: "Method Not Allowed",
-            406: "Not Acceptable",
-            407: "Proxy Authentication Required",
-            408: "Request Timeout",
-            409: "Conflict",
-            410: "Gone",
-            411: "Length Required",
-            412: "Precondition Failed",
-            413: "Request Entity Too Large",
-            414: "Request-URI Too Long",
-            415: "Unsupported Media Type",
-            416: "Requested Range Not Satisfiable",
-            417: "Expectation Failed",
-            422: "Unprocessable Entity",
-            423: "Locked",
-            424: "Failed Dependency",
-            425: "Unassigned",
-            426: "Upgrade Required",
-            427: "Unassigned",
-            428: "Precondition Required",
-            429: "Too Many Requests",
-            430: "Unassigned",
-            431: "Request Header Fields Too Large",
-            500: "Internal Server Error",
-            501: "Not Implemented",
-            502: "Bad Gateway",
-            503: "Service Unavailable",
-            504: "Gateway Timeout",
-            505: "HTTP Version Not Supported",
-            506: "Variant Also Negotiates (Experimental)",
-            507: "Insufficient Storage",
-            508: "Loop Detected",
-            509: "Unassigned",
-            510: "Not Extended",
-            511: "Network Authentication Required"
-        };
-
-    var
-
-        oReq, bIsLoading = false, bUpdateURL = false;
-
-    oLoadingBox.id = "ajax-loader";
-    oCover.onclick = abortReq;
-    oLoadingImg.src = "data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==";
-    oCover.appendChild(oLoadingImg);
-    oLoadingBox.appendChild(oCover);
-
-    onpopstate = function (oEvent) {
-        bUpdateURL = false;
-        oPageInfo.title = oEvent.state.title;
-        oPageInfo.url = oEvent.state.url;
-        getPage();
-    };
-
-    window.addEventListener ? addEventListener("load", init, false) : window.attachEvent ? attachEvent("onload", init) : (onload = init);
-
-    // Public methods
-
-    this.open = requestPage;
-    this.stop = abortReq;
-    this.rebuildLinks = init;
-
-})();
-
-</pre>
-</div>
-
-<div class="note" dir="rtl"><strong>ملاحظة</strong>: التنفيذ الحالي لـ<a href="/en/JavaScript/Reference/Statements/const" title="en/JavaScript/Reference/Statements/const"><code>const</code></a> (تعليمة ثابتة) ليست جزءا من <strong>ECMAScript 5</strong>. هي مدعومة على متصفحات فايرفوكس وكروم (V8) ومدعومة جزئيا على أوبرا 9+ وسافاري. ليست مدعومة على <strong>Internet Explorer 6-9</strong>، ولا في معاينة <strong>Internet Explorer </strong>10. - ستكون معرفة في ECMAScript 6، لكن بدلالات أخرى. على غرار المتغيرات المعرفة (declared) بـتعليمة <a href="/en/JavaScript/Reference/Statements/let" title="en/JavaScript/Reference/Statements/let"><code>let</code></a> ، الثوابت المعرفة بـ<a href="/en/JavaScript/Reference/Statements/const" title="en/JavaScript/Reference/Statements/const"><code>const</code></a> ستكون. نقوم باستعمالها لغرض تعليمي. إذا كنت تريد توافقا كاملا مع المتصفح، رجاء قم باستبدال تعليمات <code><a href="/en/JavaScript/Reference/Statements/const" title="en/JavaScript/Reference/Statements/const">const</a> </code>بتعليمات <strong><a href="/en/JavaScript/Reference/Statements/var" title="en/JavaScript/Reference/Statements/var"><code>var</code></a></strong>.</div>
-
-<p dir="rtl">For more information, please see: <a href="/en-US/docs/DOM/Manipulating_the_browser_history" title="/en-US/docs/DOM/Manipulating_the_browser_history">Manipulating the browser history</a>.</p>
-
-<h2 dir="rtl" id="See_also">See also</h2>
-
-<ul>
- <li dir="rtl">{{ domxref("window.history") }}</li>
- <li dir="rtl">{{ domxref("window.onpopstate") }}</li>
-</ul>
diff --git a/files/ar/web/api/history_api/index.html b/files/ar/web/api/history_api/index.html
deleted file mode 100644
index 0db39b3b98..0000000000
--- a/files/ar/web/api/history_api/index.html
+++ /dev/null
@@ -1,262 +0,0 @@
----
-title: Manipulating the browser history
-slug: Web/API/History_API
-tags:
- - Advanced
- - DOM
- - HTML5
- - History
- - NeedsTranslation
- - TopicStub
-translation_of: Web/API/History_API
----
-<p dir="rtl">با استفاده از آبجکت {{ domxref("window") }} می توانید به تاریخچه مرورگر توسط آبجت {{ domxref("window.history", "history") }}  دسترسی داشته باشید . این آبجکت متد ها و ویژگی های بسیار کاربردی را در اختیار شما قرار میدهد تا بتوانید در تاریخچه مرورگر به عقب یا جلو بروید در واقع قادر خواهید بود تا عمل back و forward را انجام دهید</p>
-
-<h2 dir="rtl" id="مرور_در_تاریخچه_مرورگر">مرور در تاریخچه مرورگر</h2>
-
-<p dir="rtl">با استفاده از</p>
-
-<p>Moving backward and forward through the user's history is done using the <code>back()</code>, <code>forward()</code>, and <code>go()</code> methods.</p>
-
-<h3 id="Moving_forward_and_backward">Moving forward and backward</h3>
-
-<p>To move backward through history, just do:</p>
-
-<pre class="brush: js">window.history.back();
-</pre>
-
-<p>This will act exactly like the user clicked on the Back button in their browser toolbar.</p>
-
-<p>Similarly, you can move forward (as if the user clicked the Forward button), like this:</p>
-
-<pre class="brush: js">window.history.forward();
-</pre>
-
-<h3 id="Moving_to_a_specific_point_in_history">Moving to a specific point in history</h3>
-
-<p>You can use the <code>go()</code> method to load a specific page from session history, identified by its relative position to the current page (with the current page being, of course, relative index 0).</p>
-
-<p>To move back one page (the equivalent of calling <code>back()</code>):</p>
-
-<pre class="brush: js">window.history.go(-1);
-</pre>
-
-<p>To move forward a page, just like calling <code>forward()</code>:</p>
-
-<pre class="brush: js">window.history.go(1);
-</pre>
-
-<p>Similarly, you can move forward 2 pages by passing 2, and so forth.</p>
-
-<p>You can determine the number of pages in the history stack by looking at the value of the length property:</p>
-
-<pre class="brush: js">var numberOfEntries = window.history.length;
-</pre>
-
-<div class="note"><strong>Note:</strong> Internet Explorer supports passing string URLs as a parameter to <code>go()</code>; this is non-standard and not supported by Gecko.</div>
-
-<h2 id="Adding_and_modifying_history_entries">Adding and modifying history entries</h2>
-
-<p>{{ gecko_minversion_header("2") }}</p>
-
-<p>HTML5 introduced the<a href="/en-US/docs/Web/API/History/pushState"> history.pushState()</a> and <a href="/en-US/docs/Web/API/History_API#The_replaceState()_method">history.replaceState()</a> methods, which allow you to add and modify history entries, respectively. These methods work in conjunction with the {{ domxref("window.onpopstate") }} event.</p>
-
-<p>Using <code>history.pushState()</code> changes the referrer that gets used in the HTTP header for <a href="/en/DOM/XMLHttpRequest" title="en/XMLHttpRequest"><code>XMLHttpRequest</code></a> objects created after you change the state. The referrer will be the URL of the document whose window is <code>this</code> at the time of creation of the <a href="/en/DOM/XMLHttpRequest" title="en/XMLHttpRequest"><code>XMLHttpRequest</code></a> object.</p>
-
-<h3 id="Example_of_pushState()_method">Example of pushState() method</h3>
-
-<p>Suppose <span class="nowiki">http://mozilla.org/foo.html</span> executes the following JavaScript:</p>
-
-<pre class="brush: js">var stateObj = { foo: "bar" };
-history.pushState(stateObj, "page 2", "bar.html");
-</pre>
-
-<p>This will cause the URL bar to display <span class="nowiki">http://mozilla.org/bar.html</span>, but won't cause the browser to load <code>bar.html</code> or even check that <code>bar.html</code> exists.</p>
-
-<p>Suppose now that the user now navigates to <span class="nowiki">http://google.com</span>, then clicks back. At this point, the URL bar will display <span class="nowiki">http://mozilla.org/bar.html</span>, and the page will get a <code>popstate</code> event whose <em>state object</em> contains a copy of <code>stateObj</code>. The page itself will look like <code>foo.html</code>, although the page might modify its contents during the <code>popstate</code> event.</p>
-
-<p>If we click back again, the URL will change to <span class="nowiki">http://mozilla.org/foo.html</span>, and the document will get another <code>popstate</code> event, this time with a null state object. Here too, going back doesn't change the document's contents from what they were in the previous step, although the document might update its contents manually upon receiving the <code>popstate</code> event.</p>
-
-<h3 id="The_pushState()_method">The pushState() method</h3>
-
-<p><code>pushState()</code> takes three parameters: a state object, a title (which is currently ignored), and (optionally) a URL. Let's examine each of these three parameters in more detail:</p>
-
-<ul>
- <li>
- <p><strong>state object</strong> — The state object is a JavaScript object which is associated with the new history entry created by <code>pushState()</code>. Whenever the user navigates to the new state, a <code>popstate</code> event is fired, and the <code>state</code> property of the event contains a copy of the history entry's state object.</p>
-
- <p>The state object can be anything that can be serialized. Because Firefox saves state objects to the user's disk so they can be restored after the user restarts the browser, we impose a size limit of 640k characters on the serialized representation of a state object. If you pass a state object whose serialized representation is larger than this to <code>pushState()</code>, the method will throw an exception. If you need more space than this, you're encouraged to use <code>sessionStorage</code> and/or <code>localStorage</code>.</p>
- </li>
- <li>
- <p><strong>title</strong> — Firefox currently ignores this parameter, although it may use it in the future. Passing the empty string here should be safe against future changes to the method. Alternatively, you could pass a short title for the state to which you're moving.</p>
- </li>
- <li>
- <p><strong>URL</strong> — The new history entry's URL is given by this parameter. Note that the browser won't attempt to load this URL after a call to <code>pushState()</code>, but it might attempt to load the URL later, for instance after the user restarts the browser. The new URL does not need to be absolute; if it's relative, it's resolved relative to the current URL. The new URL must be of the same origin as the current URL; otherwise, <code>pushState()</code> will throw an exception. This parameter is optional; if it isn't specified, it's set to the document's current URL.</p>
- </li>
-</ul>
-
-<div class="note"><strong>Note:</strong> In Gecko 2.0 {{ geckoRelease("2.0") }} through Gecko 5.0 {{ geckoRelease("5.0") }}, the passed object is serialized using JSON. Starting in Gecko 6.0 {{ geckoRelease("6.0") }}, the object is serialized using <a href="/en/DOM/The_structured_clone_algorithm" title="en/DOM/The structured clone algorithm">the structured clone algorithm</a>. This allows a wider variety of objects to be safely passed.</div>
-
-<p>In a sense, calling <code>pushState()</code> is similar to setting <code>window.location = "#foo"</code>, in that both will also create and activate another history entry associated with the current document. But <code>pushState()</code> has a few advantages:</p>
-
-<ul>
- <li>The new URL can be any URL in the same origin as the current URL. In contrast, setting <code>window.location</code> keeps you at the same {{ domxref("document") }} only if you modify only the hash.</li>
- <li>You don't have to change the URL if you don't want to. In contrast, setting <code>window.location = "#foo";</code> only creates a new history entry if the current hash isn't <code>#foo</code>.</li>
- <li>You can associate arbitrary data with your new history entry. With the hash-based approach, you need to encode all of the relevant data into a short string.</li>
- <li>If <code>title </code>is subsequently used by browsers, this data can be utilized (independent of, say, the hash).</li>
-</ul>
-
-<p>Note that <code>pushState()</code> never causes a <code>hashchange</code> event to be fired, even if the new URL differs from the old URL only in its hash.</p>
-
-<p>In a <a href="/en-US/docs/Mozilla/Tech/XUL">XUL</a> document, it creates the specified XUL element.</p>
-
-<p>In other documents, it creates an element with a <code>null</code> namespace URI.</p>
-
-<h3 id="The_replaceState()_method">The replaceState() method</h3>
-
-<p><code>history.replaceState()</code> operates exactly like <code>history.pushState()</code> except that <code>replaceState()</code> modifies the current history entry instead of creating a new one. Note that this doesn't prevent the creation of a new entry in the global browser history.</p>
-
-<p><code>replaceState()</code> is particularly useful when you want to update the state object or URL of the current history entry in response to some user action.</p>
-
-<div class="note"><strong>Note:</strong> In Gecko 2.0 {{ geckoRelease("2.0") }} through Gecko 5.0 {{ geckoRelease("5.0") }}, the passed object is serialized using JSON. Starting in Gecko 6.0 {{ geckoRelease("6.0") }}, the object is serialized using <a href="/en/DOM/The_structured_clone_algorithm" title="en/DOM/The structured clone algorithm">the structured clone algorithm</a>. This allows a wider variety of objects to be safely passed.</div>
-
-<h3 id="Example_of_replaceState()_method">Example of replaceState() method</h3>
-
-<p>Suppose <span class="nowiki">http://mozilla.org/foo.html</span> executes the following JavaScript:</p>
-
-<pre class="brush: js">var stateObj = { foo: "bar" };
-history.pushState(stateObj, "page 2", "bar.html");
-</pre>
-
-<p>The explanation of these two lines above can be found at "Example of pushState() method" section. Then suppose <span class="nowiki">http://mozilla.org/bar.html</span> executes the following JavaScript:</p>
-
-<pre class="brush: js">history.replaceState(stateObj, "page 3", "bar2.html");
-</pre>
-
-<p>This will cause the URL bar to display <span class="nowiki">http://mozilla.org/bar2.html</span>, but won't cause the browser to load <code>bar2.html</code> or even check that <code>bar2.html</code> exists.</p>
-
-<p>Suppose now that the user now navigates to <span class="nowiki">http://www.microsoft.com</span>, then clicks back. At this point, the URL bar will display <span class="nowiki">http://mozilla.org/bar2.html. If the user now clicks back again, the URL bar will display http://mozilla.org/foo.html, and totally bypass bar.html.</span></p>
-
-<h3 id="The_popstate_event">The popstate event</h3>
-
-<p>A <code>popstate</code> event is dispatched to the window every time the active history entry changes. If the history entry being activated was created by a call to <code>pushState</code> or affected by a call to <code>replaceState</code>, the <code>popstate</code> event's <code>state</code> property contains a copy of the history entry's state object.</p>
-
-<p>See {{ domxref("window.onpopstate") }} for sample usage.</p>
-
-<h3 id="Reading_the_current_state">Reading the current state</h3>
-
-<p>When your page loads, it might have a non-null state object.  This can happen, for example, if the page sets a state object (using <code>pushState()</code> or <code>replaceState()</code>) and then the user restarts their browser.  When your page reloads, the page will receive an <span style="font-family: courier new;">onload</span><span style="font-family: helvetica;"> event, but no <span style="font-family: courier new;">popstate</span> event.</span>  However, if you read the <span style="font-family: courier new;">history.state</span> property, you'll get back the state object you would have gotten if a <span style="font-family: courier new;">popstate</span> had fired.</p>
-
-<p>You can read the state of the current history entry without waiting for a <code>popstate</code> event using the <code>history.state</code> property like this:</p>
-
-<pre class="brush: js">var currentState = history.state;
-</pre>
-
-<h2 id="Examples">Examples</h2>
-
-<p>For a complete example of AJAX web site, please see: <a href="/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history/Example" title="/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history/Example">Ajax navigation example</a>.</p>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('HTML WHATWG', "browsers.html#history", "History")}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td>No change from {{SpecName("HTML5 W3C")}}.</td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', "browsers.html#history", "History")}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td>Initial definition.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>replaceState, pushState</td>
- <td>5</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoDesktop("2.0") }}</td>
- <td>10</td>
- <td>11.50</td>
- <td>5.0</td>
- </tr>
- <tr>
- <td>history.state</td>
- <td>18</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoDesktop("2.0") }}</td>
- <td>10</td>
- <td>11.50</td>
- <td>6.0</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>replaceState, pushState</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- <tr>
- <td>history.state</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p><strong style="font-size: 2.143rem; font-weight: 700; letter-spacing: -1px; line-height: 1;">See also</strong></p>
-
-<ul>
- <li>{{ domxref("window.history") }}</li>
- <li>{{ domxref("window.onpopstate") }}</li>
-</ul>
-
-<p> </p>
-
-<p> </p>
diff --git a/files/ar/web/api/htmlelement/contenteditable/index.html b/files/ar/web/api/htmlelement/contenteditable/index.html
deleted file mode 100644
index aee7a4f1f2..0000000000
--- a/files/ar/web/api/htmlelement/contenteditable/index.html
+++ /dev/null
@@ -1,75 +0,0 @@
----
-title: HTMLElement.contentEditable
-slug: Web/API/HTMLElement/contentEditable
-tags:
- - API
- - المراجع
- - خاصية contenteditable
- - عناصر HTML
-translation_of: Web/API/HTMLElement/contentEditable
----
-<div>
- {{APIRef}}</div>
-<p>إن خاصية HTMLElement.contentEditable تستخدم لتحديد إذا ما كان العنصر قابل للتحرير أو لا.هذه الخاصية يمكن أن تأخذ إحدى القيم التالية:</p>
-<ul>
- <li><code>true</code>, أو عدم تعيين قيمة,تحديد أن العنصر قابل للتحرير.</li>
- <li><code>false</code>,تعيين أن العنصر غير قابل للتحرير.</li>
- <li><code>inherit,تحديد أن كل العناصر التي تليه سوف ترث إمكانية التحرير من عدمها من خلال العنصر الأب</code>.</li>
-</ul>
-<h2 id="Syntax" name="Syntax">الشكل العام</h2>
-<pre class="syntaxbox"><em>editable</em> = element.contentEditable
-element.contentEditable = "true"
-</pre>
-<h2 id="Notes" name="Notes">ملاحظات</h2>
-<p>بإمكانك إستعمال خاصية  {{domxref("HTMLElement.isContentEditable")}} لإختبارالقيمة المنطقية المحوسبة {{domxref("Boolean")}} من هذا العنصر.</p>
-<h2 id="توافق_المتصفحات">توافق المتصفحات</h2>
-<div>
- {{CompatibilityTable}}</div>
-<div id="compat-desktop">
- <table class="compat-table">
- <tbody>
- <tr>
- <th>الميزة</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>الدعم الأساسي</td>
- <td>11</td>
- <td>{{CompatGeckoDesktop(1.9)}}</td>
- <td>6</td>
- <td>10.6</td>
- <td>3.2</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div id="compat-mobile">
- <table class="compat-table">
- <tbody>
- <tr>
- <th>الميزة</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>الدعم الأساسي</td>
- <td>3</td>
- <td>{{CompatGeckoMobile(1.9)}}</td>
- <td>6</td>
- <td>{{CompatNo}}</td>
- <td>5</td>
- </tr>
- </tbody>
- </table>
-</div>
-<h2 id="Specification" name="Specification">المواصفات</h2>
-<ul>
- <li><a href="http://www.whatwg.org/specs/web-apps/current-work/#contenteditable">واصفة contenteditable من موقع رابطة WHATWG</a></li>
-</ul>
diff --git a/files/ar/web/api/htmlelement/index.html b/files/ar/web/api/htmlelement/index.html
deleted file mode 100644
index 976b2b7017..0000000000
--- a/files/ar/web/api/htmlelement/index.html
+++ /dev/null
@@ -1,400 +0,0 @@
----
-title: HTMLElement
-slug: Web/API/HTMLElement
-translation_of: Web/API/HTMLElement
----
-<div>
-<div>{{ APIRef("HTML DOM") }}</div>
-</div>
-
-<div> </div>
-
-<p>The <strong><code>HTMLElement</code></strong> interface represents any <a href="/en-US/docs/Web/HTML" title="/en-US/docs/Web/HTML">HTML</a> element. Some elements directly implement this interface, others implement it via an interface that inherits it.</p>
-
-<h2 id="Properties">Properties</h2>
-
-<p><em>Inherits properties from its parent, {{domxref("Element")}}, and implements those from {{domxref("GlobalEventHandlers")}} and {{domxref("TouchEventHandlers")}}.</em></p>
-
-<dl>
- <dt>{{domxref("HTMLElement.accessKey")}}</dt>
- <dd>Is a {{domxref("DOMString")}} representing the access key assigned to the element.</dd>
- <dt>{{domxref("HTMLElement.accessKeyLabel")}} {{readonlyInline}}</dt>
- <dd>Returns a {{domxref("DOMString")}} containing the element's assigned access key.</dd>
- <dt>{{domxref("HTMLElement.contentEditable")}}</dt>
- <dd>Is a {{domxref("DOMString")}}, where a value of <code>"true"</code> means the element is editable and a value of <code>"false"</code> means it isn't.</dd>
- <dt>{{domxref("HTMLElement.isContentEditable")}} {{readonlyInline}}</dt>
- <dd>Returns a {{domxref("Boolean")}} that indicates whether or not the content of the element can be edited.</dd>
- <dt>{{domxref("HTMLElement.contextMenu")}}</dt>
- <dd>Is an {{domxref("HTMLMenuElement")}} representing the contextual menu associated with the element. It may be null</dd>
- <dt>{{domxref("HTMLElement.dataset")}} {{readonlyInline}}</dt>
- <dd>Returns a {{domxref("DOMStringMap")}} that allows access to read and write the element custom data attributes (<code>data-*</code>) .</dd>
- <dt>{{domxref("HTMLElement.dir")}}</dt>
- <dd>Is a {{domxref("DOMString")}}, reflecting the <code>dir</code> global attribute, representing the directionality of the element. Possible values are <code>"ltr"</code>, <code>"rtl"</code>, and <code>"auto"</code>.</dd>
- <dt>{{domxref("HTMLElement.draggable")}}</dt>
- <dd>Is a {{jsxref("Boolean")}} indicating if the element can be dragged.</dd>
- <dt>{{domxref("HTMLElement.dropzone")}} {{readonlyInline}}</dt>
- <dd>Returns a {{domxref("DOMSettableTokenList")}} reflecting the <code>dropzone</code> global attribute and describing the behavior of the element regarding a drop operation.</dd>
- <dt>{{domxref("HTMLElement.hidden")}}</dt>
- <dd>Is a {{jsxref("Boolean")}} indicating if the element is hidden or not.</dd>
- <dt>{{domxref("HTMLElement.itemScope")}} {{experimental_inline}}</dt>
- <dd>Is a {{jsxref("Boolean")}}…</dd>
- <dt>{{domxref("HTMLElement.itemType")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns a {{domxref("DOMSettableTokenList")}}…</dd>
- <dt>{{domxref("HTMLElement.itemId")}} {{experimental_inline}}</dt>
- <dd>Is a {{domxref("DOMString")}}…</dd>
- <dt>{{domxref("HTMLElement.itemRef")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns a {{domxref("DOMSettableTokenList")}}…</dd>
- <dt>{{domxref("HTMLElement.itemProp")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns a {{domxref("DOMSettableTokenList")}}…</dd>
- <dt>{{domxref("HTMLElement.itemValue")}} {{experimental_inline}}</dt>
- <dd>Returns an {{jsxref("Object")}}…</dd>
- <dt>{{domxref("HTMLElement.lang")}}</dt>
- <dd>Is a {{domxref("DOMString")}} representing the language of an element's attributes, text, and element contents.</dd>
- <dt>{{domxref("HTMLElement.offsetHeight")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns a <code>double</code> containing the height of an element, relative to the layout.</dd>
- <dt>{{domxref("HTMLElement.offsetLeft")}}{{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns a <code>double</code>, the distance from this element's left border to its <code>offsetParent</code>'s left border.</dd>
- <dt>{{domxref("HTMLElement.offsetParent")}}{{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns an {{domxref("Element")}} that is the element from which all offset calculations are currently computed.</dd>
- <dt>{{domxref("HTMLElement.offsetTop")}}{{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns a <code>double</code>, the distance from this element's top border to its <code>offsetParent</code>'s top border.</dd>
- <dt>{{domxref("HTMLElement.offsetWidth")}}{{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns a <code>double</code> containing the width of an element, relative to the layout.</dd>
- <dt>{{domxref("HTMLElement.properties")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns an {{domxref("HTMLPropertiesCollection")}}…</dd>
- <dt>{{domxref("HTMLElement.spellcheck")}}{{ gecko_minversion_inline("1.9")}}</dt>
- <dd>Is a {{jsxref("Boolean")}} that controls <a href="/en-US/docs/HTML/Controlling_spell_checking_in_HTML_forms" title="en/Controlling_spell_checking_in_HTML_forms">spell-checking</a>. It is present on all HTML elements, though it hasn't an effect on all of them.</dd>
- <dt>{{domxref("HTMLElement.style")}}</dt>
- <dd>Is {{domxref("CSSStyleDeclaration")}}, an object representing the declarations of an element's style attributes.</dd>
- <dt>{{domxref("HTMLElement.tabIndex")}}</dt>
- <dd>Is a <code>long</code> representing the position of the element in the tabbing order.</dd>
- <dt>{{domxref("HTMLElement.title")}}</dt>
- <dd>Is a {{domxref("DOMString")}} containing the text that appears in a popup box when mouse is over the element.</dd>
- <dt>{{domxref("HTMLElement.translate")}} {{experimental_inline}}</dt>
- <dd>Is a {{jsxref("Boolean")}}</dd>
-</dl>
-
-<h3 id="Event_handlers">Event handlers</h3>
-
-<p>Most events properties, of the form <code>onXYZ</code>, are defined on the {{domxref("GlobalEventHandlers")}} or {{domxref("TouchEventHandlers")}}, implemented by <code>HTMLElement</code>. A few more are specific to <code>HTMLElement</code>.</p>
-
-<dl>
- <dt>{{ domxref("HTMLElement.oncopy") }}  {{ non-standard_inline() }}</dt>
- <dd>Returns the event handling code for the <code>copy</code> event ({{bug("280959")}}).</dd>
- <dt>{{ domxref("HTMLElement.oncut") }}  {{ non-standard_inline() }}</dt>
- <dd>Returns the event handling code for the <code>cut</code> event ({{bug("280959")}}).</dd>
- <dt>{{ domxref("HTMLElement.onpaste") }} {{ non-standard_inline() }}</dt>
- <dd>Returns the event handling code for the <code>paste</code> event ({{bug("280959")}}).</dd>
- <dt>{{domxref("TouchEventHandlers.ontouchstart")}} {{non-standard_inline}}</dt>
- <dd>Returns the event handling code for the {{event("touchstart")}} event.</dd>
- <dt>{{domxref("TouchEventHandlers.ontouchend")}} {{non-standard_inline}}</dt>
- <dd>Returns the event handling code for the {{event("touchend")}} event.</dd>
- <dt>{{domxref("TouchEventHandlers.ontouchmove")}} {{non-standard_inline}}</dt>
- <dd>Returns the event handling code for the {{event("touchmove")}} event.</dd>
- <dt>{{domxref("TouchEventHandlers.ontouchenter")}} {{non-standard_inline}}</dt>
- <dd>Returns the event handling code for the {{event("touchenter")}} event.</dd>
- <dt>{{domxref("TouchEventHandlers.ontouchleave")}} {{non-standard_inline}}</dt>
- <dd>Returns the event handling code for the {{event("touchleave")}} event.</dd>
- <dt>{{domxref("TouchEventHandlers.ontouchcancel")}} {{non-standard_inline}}</dt>
- <dd>Returns the event handling code for the {{event("touchcancel")}} event.</dd>
-</dl>
-
-<h2 id="Methods">Methods</h2>
-
-<p><em>Inherits methods from its parent, {{domxref("Element")}}.</em></p>
-
-<dl>
- <dt>{{domxref("HTMLElement.blur()")}}</dt>
- <dd>Removes keyboard focus from the currently focused element.</dd>
- <dt>{{domxref("HTMLElement.click()")}}</dt>
- <dd>Sends a mouse click event to the element.</dd>
- <dt>{{domxref("HTMLElement.focus()")}}</dt>
- <dd>Makes the element the current keyboard focus.</dd>
- <dt>{{domxref("HTMLElement.forceSpellCheck()")}} {{experimental_inline}}</dt>
- <dd>Makes the spell checker runs on the element.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSSOM View', '#extensions-to-the-htmlelement-interface', 'HTMLElement')}}</td>
- <td>{{Spec2('CSSOM View')}}</td>
- <td>Added the following properties: <code>offsetParent</code>, <code>offsetTop</code>, <code>offsetLeft</code>, <code>offsetWidth</code>, and <code>offsetHeight</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'elements.html#htmlelement', 'HTMLElement')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td>Added the following properties: <code>translate</code>, <code>itemScope</code>, <code>itemType</code>, <code>itemId</code>, <code>itemRef</code>, <code>itemProp</code>, <code>properties</code>, and <code>itemValue</code>.<br>
- Added the following method: <code>forceSpellcheck()</code>.<br>
- Moved the <code>onXYZ</code> attributes to the {{domxref("GlobalEventHandlers")}} interface and added an inheritance from it.</td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', 'dom.html#htmlelement', 'HTMLElement')}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td>Added the following properties: <code>dataset</code>, <code>hidden</code>, <code>tabindex</code>, <code>accessKey</code>, <code>accessKeyLabel</code>, <code>draggable</code>, <code>dropzone</code>, <code>contentEditable</code>, <code>isContentEditable</code>, <code>contextMenu</code>, <code>spellcheck</code>, <code>commandType</code>, <code>commandLabel</code>, <code>commandIcon</code>, <code>commandHidden</code>, <code>commandDisabled</code>, <code>commandChecked</code>, <code>style</code>, and all the <code>onXYZ</code> properties.<br>
- Moved the <code>id</code> and <code>className</code> properties to the {{domxref("Element")}} interface.</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM2 HTML', 'html.html#ID-011100101', 'HTMLElement')}}</td>
- <td>{{Spec2('DOM2 HTML')}}</td>
- <td>No change from {{SpecName('DOM2 HTML')}}</td>
- </tr>
- <tr>
- <td>{{SpecName('DOM1', 'level-one-html.html#ID-011100101', 'HTMLElement')}}</td>
- <td>{{Spec2('DOM1')}}</td>
- <td>Initial definition.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Firefox (Gecko)</th>
- <th>Chrome</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatGeckoDesktop("1.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.accessKey", "accessKey")}}</td>
- <td>{{CompatGeckoDesktop("5.0")}}</td>
- <td>17.0</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}(<a class="external" href="http://trac.webkit.org/changeset/107483">535.10</a>)</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.accessKeyLabel", "accessKeyLabel")}}</td>
- <td>{{CompatGeckoDesktop("8.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}{{WebkitBug(72715)}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.blur()", "blur()")}}</td>
- <td>{{CompatGeckoDesktop("5.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.click()", "click()")}}</td>
- <td>{{CompatGeckoDesktop("5.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}(<a class="external" href="http://trac.webkit.org/changeset/107483">535.24</a>)</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.dataset", "dataset")}}</td>
- <td>{{CompatGeckoDesktop("6.0")}}</td>
- <td>9.0</td>
- <td>{{CompatUnknown}}</td>
- <td>11.10</td>
- <td>5.1</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.focus()", "focus()")}}</td>
- <td>{{CompatGeckoDesktop("5.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.contentEditable", "contentEditable")}}</td>
- <td>{{CompatGeckoDesktop("1.9")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>5.5</td>
- <td>9</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.spellcheck", "spellcheck")}}</td>
- <td>{{CompatGeckoDesktop("1.8.1")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.style", "style")}}</td>
- <td>{{CompatVersionUnknown}} (returns a {{domxref("CSS2Properties")}}, rather than a {{domxref("CSSStyleDeclaration")}})</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.forceSpellCheck", "forceSpellCheck()")}} {{experimental_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.dataset", "dataset")}}</td>
- <td>{{CompatGeckoDesktop("6.0")}}</td>
- <td>8.0</td>
- <td>11</td>
- <td>11.10</td>
- <td>6</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.draggable", "draggable")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>12.0</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.dropzone", "dropzone")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>12.0</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.offsetLeft", "offsetLeft")}}, {{domxref("HTMLElement.offsetTop", "offsetTop")}}, {{domxref("HTMLElement.offsetParent", "offsetParent")}}, {{domxref("HTMLElement.offsetHeight", "offsetHeight")}} and {{domxref("HTMLElement.offsetWidth", "offsetWidth")}} {{experimental_inline}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.translate", "translate")}} {{experimental_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.itemScope", "itemScope")}}, {{domxref("HTMLElement.itemType", "itemType")}}, {{domxref("HTMLElement.itemRef", "itemRef")}}, {{domxref("HTMLElement.itemId", "itemId")}}, {{domxref("HTMLElement.itemProp", "itemProp")}}, and {{domxref("HTMLElement.itemValue", "itemValue")}} {{experimental_inline}}</td>
- <td>{{CompatGeckoDesktop("6.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>11.60<br>
- (Removed in Opera 15)</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.properties", "properties")}} {{experimental_inline}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.ontouchstart")}}, {{domxref("HTMLElement.ontouchend")}}, {{domxref("HTMLElement.ontouchmove")}}, {{domxref("HTMLElement.ontouchenter")}}, {{domxref("HTMLElement.ontouchleave")}}, and {{domxref("HTMLElement.ontouchcancel")}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.oncopy")}}, {{domxref("HTMLElement.oncut")}}, and {{domxref("HTMLElement.onpaste")}} {{Non-standard_inline}}</td>
- <td>{{CompatGeckoDesktop("1.9")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Android</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>
- <p>{{CompatGeckoMobile("1.0")}}</p>
- </td>
- <td rowspan="7">{{CompatUnknown}}</td>
- <td rowspan="7">{{CompatUnknown}}</td>
- <td rowspan="7">{{CompatUnknown}}</td>
- <td rowspan="7">{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.accessKey", "accessKey")}}</td>
- <td>{{CompatGeckoMobile("5.0")}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.accessKeyLabel", "accessKeyLabel")}}</td>
- <td>{{CompatGeckoMobile("8.0")}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.blur()", "blur()")}}</td>
- <td>{{CompatGeckoMobile("5.0")}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.click()", "click()")}}</td>
- <td>{{CompatGeckoMobile("5.0")}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.dataset", "dataset")}}</td>
- <td>{{CompatGeckoMobile("6.0")}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.focus()", "focus()")}}</td>
- <td>{{CompatGeckoMobile("5.0")}}</td>
- </tr>
- <tr>
- <td>{{domxref("HTMLElement.oncopy")}}, {{domxref("HTMLElement.oncut")}}, and {{domxref("HTMLElement.onpaste")}} {{Non-standard_inline}}</td>
- <td>{{CompatGeckoMobile("1.9")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li>{{domxref("Element")}}</li>
-</ul>
diff --git a/files/ar/web/api/index.html b/files/ar/web/api/index.html
deleted file mode 100644
index 62573a0945..0000000000
--- a/files/ar/web/api/index.html
+++ /dev/null
@@ -1,15 +0,0 @@
----
-title: واجهات الويب البرمجيّة
-slug: Web/API
-tags:
- - DOM
- - جافاسكربت
- - مرجع
- - واجهات برمجية
-translation_of: Web/API
----
-<p dir="rtl">عندما تكتب نصوصاً برمجيّة للويب مُستخدِماً لغة الجافاسكرِبت، ستجد العديد من الواجهات البرمجيّة (API) المتوفرة. القائمة أدناه تسرد كل الواجهات (أي أنواع الكائنات) التي يمكنك استخدامها أثناء تطوير تطبيقات أو موقع الويب.</p>
-
-<div>
-<div>{{APIListAlpha}}</div>
-</div>
diff --git a/files/ar/web/api/navigator/battery/index.html b/files/ar/web/api/navigator/battery/index.html
deleted file mode 100644
index 0596c21aed..0000000000
--- a/files/ar/web/api/navigator/battery/index.html
+++ /dev/null
@@ -1,32 +0,0 @@
----
-title: Navigator.battery
-slug: Web/API/Navigator/battery
-tags:
- - API
- - batter
- - navigator.battery
- - المراجع
- - كائن البطارية
-translation_of: Web/API/Navigator/battery
-original_slug: Web/API/Navigator.battery
----
-<p>{{ ApiRef() }}</p>
-<h2 id="الملخص">الملخص</h2>
-<h4 id="يقوم_كائن_battery_بتقديم_معلومات_حول_مستوى_شحن_بطارية_النظام.">يقوم كائن battery بتقديم معلومات حول مستوى شحن بطارية النظام.</h4>
-<h4 id="بإمكانك_أيضاً_التنصت_على_الأحداث_التي_يرسلها_النظام_حول_تحديثات_حالة_البطارية.هذه_الأداة_تندرج_تحت_تطبيق_الواجهة_البرمجية_لحالة_البطاريةاقرأ_ذلك_المستند_لتفاصيل_إضافيةمع_دليل_لكيفية_أستعمالهاو_نموذج_برمجي.">بإمكانك أيضاً التنصت على الأحداث التي يرسلها النظام حول تحديثات حالة البطارية.هذه الأداة تندرج تحت <a href="https://developer.mozilla.org/en-US/docs/WebAPI/Battery_Status">تطبيق الواجهة البرمجية لحالة البطارية</a>,اقرأ ذلك المستند لتفاصيل إضافية,مع دليل لكيفية أستعمالها,و نموذج برمجي.</h4>
-<h2 id="Syntax" name="Syntax">الشكل العام</h2>
-<pre class="syntaxbox">var battery = window.navigator.battery;</pre>
-<h2 id="القيمة">القيمة</h2>
-<p><code>navigator.battery</code> هو كائن {{domxref("لإدارة البطارية.")}}.</p>
-<h2 id="المواصفات">المواصفات</h2>
-<p>{{page("/en-US/docs/Web/API/BatteryManager","Specifications")}}</p>
-<h2 id="توافق_المتصفحات">توافق المتصفحات</h2>
-<p>{{page("/en-US/docs/Web/API/BatteryManager","Browser_compatibility")}}</p>
-<h2 id="اقرأ_أيضاً">اقرأ أيضاً</h2>
-<ul>
- <li>{{domxref("BatteryManager")}}</li>
- <li><a href="https://developer.mozilla.org/en-US/docs/WebAPI/Battery_Status">مقالة حالة البطارية</a></li>
- <li><a href="http://hacks.mozilla.org/2012/02/using-the-battery-api-part-of-webapi/">على المدونة-إستعمال تطبيق الواجهة البرمجية للبطارية</a></li>
- <li><a href="http://davidwalsh.name/battery-api">موقع دايفد ولش-الجافا سكريبت و تطبيق البطارية.</a></li>
- <li><a href="https://github.com/pstadler/battery.js">battery.js-نص برمجي صغير متوافق مع المتصفحات.</a></li>
-</ul>
diff --git a/files/ar/web/api/navigator/index.html b/files/ar/web/api/navigator/index.html
deleted file mode 100644
index a2c4e0c815..0000000000
--- a/files/ar/web/api/navigator/index.html
+++ /dev/null
@@ -1,155 +0,0 @@
----
-title: Navigator
-slug: Web/API/Navigator
-tags:
- - API
- - DOM4
- - Interface
- - Navigator
- - NeedsBrowserCompatibility
- - NeedsSpecTable
- - NeedsTranslation
- - Reference
- - TopicStub
- - Web
- - Web Performance
-translation_of: Web/API/Navigator
----
-<p>{{ APIRef("DOM4") }}</p>
-
-<p>The <code><strong>Navigator</strong></code> interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.</p>
-
-<p>A <code>Navigator</code> object can be retrieved using the read-only {{domxref("window.navigator")}} property.</p>
-
-<h2 id="Properties">Properties</h2>
-
-<p><em>Doesn't inherit any properties, but implements those defined in {{domxref("NavigatorID")}}, {{domxref("NavigatorLanguage")}}, {{domxref("NavigatorOnLine")}}, {{domxref("NavigatorContentUtils")}}, {{domxref("NavigatorStorage")}}, {{domxref("NavigatorStorageUtils")}}, {{domxref("NavigatorCookies")}}, {{domxref("NavigatorConcurrentHardware")}}, {{domxref("NavigatorPlugins")}}, and {{domxref("NavigatorUserMedia")}}.</em></p>
-
-<h3 id="Standard">Standard</h3>
-
-<dl>
- <dt>{{domxref("Navigator.activeVRDisplays")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns an array containing every {{domxref("VRDisplay")}} object that is currently presenting ({{domxref("VRDisplay.ispresenting")}} is <code>true</code>).</dd>
- <dt>{{domxref("NavigatorID.appCodeName")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns the internal "code" name of the current browser. Do not rely on this property to return the correct value.</dd>
- <dt>{{domxref("NavigatorID.appName")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns a {{domxref("DOMString")}} with the official name of the browser. Do not rely on this property to return the correct value.</dd>
- <dt>{{domxref("NavigatorID.appVersion")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns the version of the browser as a {{domxref("DOMString")}}. Do not rely on this property to return the correct value.</dd>
- <dt>{{domxref("Navigator.battery")}} {{readonlyInline}}</dt>
- <dd>Returns a {{domxref("BatteryManager")}} object you can use to get information about the battery charging status.</dd>
- <dt>{{domxref("Navigator.connection")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Provides a {{domxref("NetworkInformation")}} object containing information about the network connection of a device.</dd>
- <dt>{{domxref("Navigator.geolocation")}} {{readonlyInline}}</dt>
- <dd>Returns a {{domxref("Geolocation")}} object allowing accessing the location of the device.</dd>
- <dt>{{domxref("NavigatorConcurrentHardware.hardwareConcurrency")}} {{readOnlyInline}}</dt>
- <dd>Returns the number of logical processor cores available.</dd>
- <dt>{{domxref("NavigatorPlugins.javaEnabled")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns a {{domxref("Boolean")}} flag indicating whether the host browser is Java-enabled or not.</dd>
- <dt>{{domxref("NavigatorLanguage.language")}} {{readonlyInline}}</dt>
- <dd>Returns a {{domxref("DOMString")}} representing the preferred language of the user, usually the language of the browser UI. The <code>null</code> value is returned when this is unknown.</dd>
- <dt>{{domxref("NavigatorLanguage.languages")}} {{readonlyInline}}</dt>
- <dd>Returns an array of {{domxref("DOMString")}} representing the languages known to the user, by order of preference.</dd>
- <dt>{{domxref("NavigatorPlugins.mimeTypes")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns an {{domxref("MimeTypeArray")}} listing the MIME types supported by the browser.</dd>
- <dt>{{domxref("NavigatorOnLine.onLine")}} {{readonlyInline}}</dt>
- <dd>Returns a {{domxref("Boolean")}} indicating whether the browser is working online.</dd>
- <dt>{{domxref("Navigator.oscpu")}}</dt>
- <dd>Returns a string that represents the current operating system.</dd>
- <dt>{{domxref("Navigator.permissions")}} {{readonlyinline}}{{experimental_inline}}</dt>
- <dd>Returns a {{domxref("Permissions")}} object that can be used to query and update permission status of APIs covered by the <a href="/en-US/docs/Web/API/Permissions_API">Permissions API</a>.</dd>
- <dt>{{domxref("NavigatorID.platform")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns a string representing the platform of the browser. Do not rely on this function to return a significant value.</dd>
- <dt>{{domxref("NavigatorPlugins.plugins")}} {{readonlyInline}}{{experimental_inline}}</dt>
- <dd>Returns a {{domxref("PluginArray")}} listing the plugins installed in the browser.</dd>
- <dt>{{domxref("NavigatorID.product")}} {{readonlyInline}} {{experimental_inline}}</dt>
- <dd>Always returns <code>'Gecko'</code>, on any browser. This property is kept only for compatibility purpose.</dd>
- <dt>{{domxref("Navigator.serviceWorker")}} {{readonlyInline}}</dt>
- <dd>Returns a {{domxref("ServiceWorkerContainer")}} object, which provides access to registration, removal, upgrade, and communication with the {{domxref("ServiceWorker")}} objects for the <a href="https://html.spec.whatwg.org/multipage/browsers.html#concept-document-window">associated document</a>.</dd>
- <dt>{{domxref("Navigator.storage")}} {{readonlyinline}}</dt>
- <dd>Returns the singleton {{domxref('StorageManager')}} object used for managing persistance permissions and estimating available storage on a site-by-site/app-by-app basis.</dd>
- <dt>{{domxref("NavigatorID.userAgent")}} {{readonlyInline}}</dt>
- <dd>Returns the user agent string for the current browser.</dd>
-</dl>
-
-<h3 id="Methods" name="Methods">Non-standard</h3>
-
-<div class="note">
-<p>Firefox OS devices adds more non-standard properties. You can consult them on the <a href="/en-US/docs/Mozilla/Firefox_OS/API/Navigator">Firefox OS Navigator extensions article</a>.</p>
-</div>
-
-<p>{{domxref("Navigator.buildID")}} {{non-standard_inline}}</p>
-
-<dl>
- <dd>Returns the build identifier of the browser (e.g., "2006090803").</dd>
- <dt>{{domxref("Navigator.cookieEnabled")}} {{non-standard_inline}}</dt>
- <dd>Returns a boolean indicating whether cookies are enabled in the browser or not.</dd>
- <dt>{{domxref("Navigator.credentials")}} {{non-standard_inline}}</dt>
- <dd>Returns the {{domxref("CredentialsContainer")}} interface which exposes methods to request credentials and notify the user agent when interesting events occur such as successful sign in or sign out. </dd>
- <dt>{{domxref("Navigator.doNotTrack")}} {{non-standard_inline}}</dt>
- <dd>Reports the value of the user's do-not-track preference. When this value is "yes", your web site or application should not track the user.</dd>
- <dt>{{domxref("Navigator.id")}} {{non-standard_inline}}</dt>
- <dd>Returns the {{domxref("window.navigator.id", "id")}} object which you can use to add support for <a href="/en-US/docs/BrowserID" title="BrowserID">BrowserID</a> to your web site.</dd>
- <dt>{{domxref("Navigator.mediaDevices")}} {{non-standard_inline}}</dt>
- <dd>Returns a reference to a {{domxref("MediaDevices")}} object which can then be used to get information about available media devices ({{domxref("MediaDevices.enumerateDevices()")}}), find out what constrainable properties are supported for media on the user's computer and user agent ({{domxref("MediaDevices.getSupportedConstraints()")}}), and to request access to media using {{domxref("MediaDevices.getUserMedia()")}}.</dd>
- <dt>{{domxref("Navigator.mozNotification")}} {{deprecated_inline("22")}} {{non-standard_inline}}<br>
- {{domxref("Navigator.webkitNotification")}}</dt>
- <dd>Returns a {{domxref("navigator.mozNotification", "notification")}} object you can use to deliver notifications to the user from your web application.</dd>
- <dt>{{domxref("Navigator.mozSocial")}} {{non-standard_inline}}</dt>
- <dd>The Object, returned by the <code>navigator.mozSocial</code> property, is available within the social media provider's panel to provide functionality it may need.</dd>
- <dt>{{domxref("Navigator.presentation")}} {{non-standard_inline}}</dt>
- <dd>Returns a reference to the {{domxref("Presentation")}} API.</dd>
- <dt>{{domxref("Navigator.productSub")}} {{non-standard_inline}}</dt>
- <dd>Returns the build number of the current browser (e.g., "20060909").</dd>
- <dt>{{domxref("Navigator.securitypolicy")}} {{non-standard_inline}}</dt>
- <dd>Returns an empty string. In Netscape 4.7x, returns "US &amp; CA domestic policy" or "Export policy".</dd>
- <dt>{{domxref("Navigator.standalone")}} {{non-standard_inline}}</dt>
- <dd>Returns a boolean indicating whether the browser is running in standalone mode. Available on Apple's iOS Safari only.</dd>
- <dt>{{domxref("Navigator.storageQuota")}} {{readonlyinline}} {{experimental_inline}}</dt>
- <dd>Returns a {{domxref('StorageQuota')}} interface which provides means to query and request storage usage and quota information.</dd>
- <dt>{{domxref("Navigator.vendor")}} {{non-standard_inline}}</dt>
- <dd>Returns the vendor name of the current browser (e.g., "Netscape6").</dd>
- <dt>{{domxref("Navigator.vendorSub")}} {{non-standard_inline}}</dt>
- <dd>Returns the vendor version number (e.g. "6.1").</dd>
- <dt>{{domxref("Navigator.webkitPointer")}} {{non-standard_inline}}</dt>
- <dd>Returns a PointerLock object for the <a href="/en-US/docs/API/Pointer_Lock_API" title="Mouse Lock API">Mouse Lock API</a>.</dd>
-</dl>
-
-<h2 id="Methods" name="Methods">Methods</h2>
-
-<p><em>Doesn't inherit any method, but implements those defined in {{domxref("NavigatorID")}}, {{domxref("NavigatorContentUtils")}}, <em>{{domxref("NavigatorUserMedia")}}, </em>and {{domxref("NavigatorStorageUtils")}}.</em></p>
-
-<h3 id="Standard_2">Standard</h3>
-
-<dl>
- <dt>{{domxref("Navigator.getVRDisplays()")}} {{experimental_inline}}</dt>
- <dd>Returns a promise that resolves to an array of {{domxref("VRDisplay")}} objects representing any available VR devices connected to the computer.</dd>
- <dt>{{domxref("Navigator.getUserMedia", "Navigator.getUserMedia()")}} {{experimental_inline}}</dt>
- <dd>After having prompted the user for permission, returns the audio or video stream associated to a camera or microphone on the local computer.</dd>
- <dt>{{domxref("Navigator.registerContentHandler()")}}</dt>
- <dd>Allows web sites to register themselves as a possible handler for a given MIME type.</dd>
- <dt>{{domxref("Navigator.registerProtocolHandler()")}}</dt>
- <dd>Allows web sites to register themselves as a possible handler for a given protocol.</dd>
- <dt>{{domxref("Navigator.requestMediaKeySystemAccess()")}} {{experimental_inline}}</dt>
- <dd>Returns a <span style="line-height: 19.0909080505371px;">{{jsxref("Promise")}} for a MediaKeySystemAccess object.</span></dd>
- <dt>{{domxref("Navigator.sendBeacon()")}}{{experimental_inline}}</dt>
- <dd>Used to asynchronously transfer a small amount of data using {{Glossary("HTTP")}} from the User Agent to a web server.</dd>
- <dt>{{domxref("NavigatorID.taintEnabled()")}} {{deprecated_inline("1.7.8")}} {{obsolete_inline("9.0")}} {{experimental_inline}}</dt>
- <dd>Returns <code>false</code>. JavaScript taint/untaint functions removed in JavaScript 1.2.</dd>
- <dt>{{domxref("Navigator.vibrate()")}} {{gecko_minversion_inline("11.0")}}</dt>
- <dd>Causes vibration on devices with support for it. Does nothing if vibration support isn't available.</dd>
-</dl>
-
-<h3 id="Specification" name="Specification">Non-standard</h3>
-
-<div class="note">
-<p>Firefox OS devices adds more non-standard methods. You can consult them on the <a href="/en-US/docs/Mozilla/Firefox_OS/API/Navigator">Firefox OS Navigator extensions article</a>.</p>
-</div>
-
-<p>{{domxref("Navigator.mozIsLocallyAvailable()")}} {{non-standard_inline}}</p>
-
-<dl>
- <dd>Lets code check to see if the document at a given URI is available without using the network.</dd>
- <dt>{{domxref("Navigator.mozPay()")}} {{non-standard_inline}}</dt>
- <dd>Allows in-app payment.</dd>
-</dl>
diff --git a/files/ar/web/api/node/index.html b/files/ar/web/api/node/index.html
deleted file mode 100644
index ddebb32cb9..0000000000
--- a/files/ar/web/api/node/index.html
+++ /dev/null
@@ -1,381 +0,0 @@
----
-title: Node
-slug: Web/API/Node
-tags:
- - API
- - DOM
- - Interface
- - NeedsTranslation
- - Node
- - Reference
- - TopicStub
-translation_of: Web/API/Node
----
-<p>{{APIRef("DOM")}}</p>
-
-<p><span class="seoSummary">The {{Glossary("DOM")}} <strong><code>Node</code></strong> interface is a key base class upon which many other DOM API objects are based, thus letting those object types to be used similarly and often interchangeably.</span> Key among the interfaces which inherit the features of <code>Node</code> are {{domxref("Document")}} and {{domxref("Element")}}. However, all of the following also inherit methods and properties from <code>Node</code>: {{DOMxRef("Attr")}}, {{DOMxRef("CharacterData")}} (which {{DOMxRef("Text")}}, {{DOMxRef("Comment")}}, and {{DOMxRef("CDATASection")}} are all based on), {{DOMxRef("ProcessingInstruction")}}, {{DOMxRef("DocumentFragment")}}, {{DOMxRef("DocumentType")}}, {{DOMxRef("Notation")}}, {{DOMxRef("Entity")}}, and {{DOMxRef("EntityReference")}}.</p>
-
-<p>In some cases, a particular feature of <code>Node</code> may not apply to a particular interface based on it; in that case, the inheriting node may return <code>null</code> or throw an exception, depending on circumstances. For example, attempting to add children to a node type that cannot have children will throw an exception.</p>
-
-<p>{{InheritanceDiagram}}</p>
-
-<h2 id="Properties">Properties</h2>
-
-<p><em>Inherits properties from its parent, {{DOMxRef("EventTarget")}}</em>.<sup>[1]</sup></p>
-
-<dl>
- <dt>{{DOMxRef("Node.baseURI")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a {{DOMxRef("DOMString")}} representing the base URL of the document containing the <code>Node</code>.</dd>
- <dt>{{DOMxRef("Node.baseURIObject")}} {{Non-standard_inline}} {{ReadOnlyInline}}</dt>
- <dd>(Not available to web content.) The {{ Interface("nsIURI") }} object representing the base URI for the element.</dd>
- <dt>{{DOMxRef("Node.childNodes")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a live {{DOMxRef("NodeList")}} containing all the children of this node. {{DOMxRef("NodeList")}} being live means that if the children of the <code>Node</code> change, the {{DOMxRef("NodeList")}} object is automatically updated.</dd>
- <dt>{{DOMxRef("Node.firstChild")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a {{DOMxRef("Node")}} representing the first direct child node of the node, or <code>null</code> if the node has no child.</dd>
- <dt>{{DOMxRef("Node.isConnected")}}{{ReadOnlyInline}}</dt>
- <dd>A boolean indicating whether or not the Node is connected (directly or indirectly) to the context object, e.g. the {{DOMxRef("Document")}} object in the case of the normal DOM, or the {{DOMxRef("ShadowRoot")}} in the case of a shadow DOM.</dd>
- <dt>{{DOMxRef("Node.lastChild")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a {{DOMxRef("Node")}} representing the last direct child node of the node, or <code>null</code> if the node has no child.</dd>
- <dt>{{DOMxRef("Node.nextSibling")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a {{DOMxRef("Node")}} representing the next node in the tree, or <code>null</code> if there isn't such node.</dd>
- <dt>{{DOMxRef("Node.nodeName")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a {{DOMxRef("DOMString")}} containing the name of the <code>Node</code>. The structure of the name will differ with the node type. E.g. An {{DOMxRef("HTMLElement")}} will contain the name of the corresponding tag, like <code>'audio'</code> for an {{DOMxRef("HTMLAudioElement")}}, a {{DOMxRef("Text")}} node will have the <code>'#text'</code> string, or a {{DOMxRef("Document")}} node will have the <code>'#document'</code> string.</dd>
- <dt>{{DOMxRef("Node.nodeType")}}{{ReadOnlyInline}}</dt>
- <dd>Returns an <code>unsigned short</code> representing the type of the node. Possible values are:
- <table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Name</th>
- <th scope="col">Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>ELEMENT_NODE</code></td>
- <td><code>1</code></td>
- </tr>
- <tr>
- <td><code>ATTRIBUTE_NODE</code> {{Deprecated_Inline}}</td>
- <td><code>2</code></td>
- </tr>
- <tr>
- <td><code>TEXT_NODE</code></td>
- <td><code>3</code></td>
- </tr>
- <tr>
- <td><code>CDATA_SECTION_NODE</code></td>
- <td><code>4</code></td>
- </tr>
- <tr>
- <td><code>ENTITY_REFERENCE_NODE</code> {{Deprecated_Inline}}</td>
- <td><code>5</code></td>
- </tr>
- <tr>
- <td><code>ENTITY_NODE</code> {{Deprecated_Inline}}</td>
- <td><code>6</code></td>
- </tr>
- <tr>
- <td><code>PROCESSING_INSTRUCTION_NODE</code></td>
- <td><code>7</code></td>
- </tr>
- <tr>
- <td><code>COMMENT_NODE</code></td>
- <td><code>8</code></td>
- </tr>
- <tr>
- <td><code>DOCUMENT_NODE</code></td>
- <td><code>9</code></td>
- </tr>
- <tr>
- <td><code>DOCUMENT_TYPE_NODE</code></td>
- <td><code>10</code></td>
- </tr>
- <tr>
- <td><code>DOCUMENT_FRAGMENT_NODE</code></td>
- <td><code>11</code></td>
- </tr>
- <tr>
- <td><code>NOTATION_NODE</code> {{Deprecated_Inline}}</td>
- <td><code>12</code></td>
- </tr>
- </tbody>
- </table>
- </dd>
- <dt>{{DOMxRef("Node.nodeValue")}}</dt>
- <dd>Returns / Sets the value of the current node.</dd>
- <dt>{{DOMxRef("Node.ownerDocument")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the {{DOMxRef("Document")}} that this node belongs to. If the node is itself a document, returns <code>null</code>.</dd>
- <dt>{{DOMxRef("Node.parentNode")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a {{DOMxRef("Node")}} that is the parent of this node. If there is no such node, like if this node is the top of the tree or if doesn't participate in a tree, this property returns <code>null</code>.</dd>
- <dt>{{DOMxRef("Node.parentElement")}}{{ReadOnlyInline}}</dt>
- <dd>Returns an {{DOMxRef("Element")}} that is the parent of this node. If the node has no parent, or if that parent is not an {{DOMxRef("Element")}}, this property returns <code>null</code>.</dd>
- <dt>{{DOMxRef("Node.previousSibling")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a {{DOMxRef("Node")}} representing the previous node in the tree, or <code>null</code> if there isn't such node.</dd>
- <dt>{{DOMxRef("Node.textContent")}}</dt>
- <dd>Returns / Sets the textual content of an element and all its descendants.</dd>
-</dl>
-
-<h3 id="Obsolete_properties">Obsolete properties</h3>
-
-<dl>
- <dt>{{DOMxRef("Node.localName")}} {{Obsolete_Inline}}{{ReadOnlyInline}}</dt>
- <dd>Returns a {{DOMxRef("DOMString")}} representing the local part of the qualified name of an element.
- <div class="blockIndicator note">
- <p><strong>Note:</strong> In Firefox 3.5 and earlier, the property upper-cases the local name for HTML elements (but not XHTML elements). In later versions, this does not happen, so the property is in lower case for both HTML and XHTML.</p>
- </div>
- </dd>
- <dt>{{DOMxRef("Node.namespaceURI")}} {{Obsolete_Inline}}{{ReadOnlyInline}}</dt>
- <dd>The namespace URI of this node, or <code>null</code> if it is no namespace.
- <div class="blockIndicator note">
- <p><strong>Note:</strong> In Firefox 3.5 and earlier, HTML elements are in no namespace. In later versions, HTML elements are in the <code><a class="linkification-ext external" href="https://www.w3.org/1999/xhtml/">http://www.w3.org/1999/xhtml/</a></code> namespace in both HTML and XML trees.</p>
- </div>
- </dd>
- <dt>{{DOMxRef("Node.nodePrincipal")}} {{Non-standard_inline}}{{Obsolete_Inline("gecko46")}}</dt>
- <dd>A {{Interface("nsIPrincipal")}} representing the node principal.</dd>
- <dt>{{DOMxRef("Node.prefix")}} {{Obsolete_Inline}}{{ReadOnlyInline}}</dt>
- <dd>Is a {{DOMxRef("DOMString")}} representing the namespace prefix of the node, or <code>null</code> if no prefix is specified.</dd>
- <dt>{{DOMxRef("Node.rootNode")}} {{Obsolete_Inline}}{{ReadOnlyInline}}</dt>
- <dd>Returns a {{DOMxRef("Node")}} object representing the topmost node in the tree, or the current node if it's the topmost node in the tree. This has been replaced by {{DOMxRef("Node.getRootNode()")}}.</dd>
-</dl>
-
-<h2 id="Methods">Methods</h2>
-
-<p><em>Inherits methods from its parent, {{DOMxRef("EventTarget")}}</em>.<sup>[1]</sup></p>
-
-<dl>
- <dt>{{DOMxRef("Node.appendChild()", "Node.appendChild(<var>childNode</var>)")}}</dt>
- <dd>Adds the specified <code><var>childNode</var></code> argument as the last child to the current node.<br>
- If the argument referenced an existing node on the DOM tree, the node will be detached from its current position and attached at the new position.</dd>
- <dt>{{DOMxRef("Node.cloneNode()")}}</dt>
- <dd>Clone a {{DOMxRef("Node")}}, and optionally, all of its contents. By default, it clones the content of the node.</dd>
- <dt>{{DOMxRef("Node.compareDocumentPosition()")}}</dt>
- <dd>Compares the position of the current node against another node in any other document.</dd>
- <dt>{{DOMxRef("Node.contains()")}}</dt>
- <dd>Returns a {{jsxref("Boolean")}} value indicating whether or not a node is a descendant of the calling node.</dd>
- <dt>{{domxref("Node.getBoxQuads()")}} {{experimental_inline}}</dt>
- <dd>Returns a list of the node's CSS boxes relative to another node.</dd>
- <dt>{{DOMxRef("Node.getRootNode()")}}</dt>
- <dd>Returns the context object's root which optionally includes the shadow root if it is available. </dd>
- <dt>{{DOMxRef("Node.hasChildNodes()")}}</dt>
- <dd>Returns a {{jsxref("Boolean")}} indicating whether or not the element has any child nodes.</dd>
- <dt>{{DOMxRef("Node.insertBefore()")}}</dt>
- <dd>Inserts a {{DOMxRef("Node")}} before the reference node as a child of a specified parent node.</dd>
- <dt>{{DOMxRef("Node.isDefaultNamespace()")}}</dt>
- <dd>Accepts a namespace URI as an argument and returns a {{jsxref("Boolean")}} with a value of <code>true</code> if the namespace is the default namespace on the given node or <code>false</code> if not.</dd>
- <dt>{{DOMxRef("Node.isEqualNode()")}}</dt>
- <dd>Returns a {{jsxref("Boolean")}} which indicates whether or not two nodes are of the same type and all their defining data points match.</dd>
- <dt>{{DOMxRef("Node.isSameNode()")}}</dt>
- <dd>Returns a {{jsxref("Boolean")}} value indicating whether or not the two nodes are the same (that is, they reference the same object).</dd>
- <dt>{{DOMxRef("Node.lookupPrefix()")}}</dt>
- <dd>Returns a {{DOMxRef("DOMString")}} containing the prefix for a given namespace URI, if present, and <code>null</code> if not. When multiple prefixes are possible, the result is implementation-dependent.</dd>
- <dt>{{DOMxRef("Node.lookupNamespaceURI()")}}</dt>
- <dd>Accepts a prefix and returns the namespace URI associated with it on the given node if found (and <code>null</code> if not). Supplying <code>null</code> for the prefix will return the default namespace.</dd>
- <dt>{{DOMxRef("Node.normalize()")}}</dt>
- <dd>Clean up all the text nodes under this element (merge adjacent, remove empty).</dd>
- <dt>{{DOMxRef("Node.removeChild()")}}</dt>
- <dd>Removes a child node from the current element, which must be a child of the current node.</dd>
- <dt>{{DOMxRef("Node.replaceChild()")}}</dt>
- <dd>Replaces one child {{DOMxRef("Node")}} of the current one with the second one given in parameter.</dd>
-</dl>
-
-<h3 id="Obsolete_methods">Obsolete methods</h3>
-
-<dl>
- <dt>{{DOMxRef("Node.getFeature()")}} {{Obsolete_Inline}}</dt>
- <dd></dd>
- <dt>{{DOMxRef("Node.getUserData()")}} {{Obsolete_Inline}}</dt>
- <dd>Allows a user to get some {{DOMxRef("DOMUserData")}} from the node.</dd>
- <dt>{{DOMxRef("Node.hasAttributes()")}} {{Obsolete_Inline}}</dt>
- <dd>Returns a {{jsxref("Boolean")}} indicating if the element has any attributes, or not.</dd>
- <dt>{{DOMxRef("Node.isSupported()")}} {{Obsolete_Inline}}</dt>
- <dd>Returns a {{jsxref("Boolean")}} flag containing the result of a test whether the DOM implementation implements a specific feature and this feature is supported by the specific node.</dd>
- <dt>{{DOMxRef("Node.setUserData()")}} {{Obsolete_Inline}}</dt>
- <dd>Allows a user to attach, or remove, {{DOMxRef("DOMUserData")}} to the node.</dd>
-</dl>
-
-<h2 id="Examples">Examples</h2>
-
-<h3 id="Remove_all_children_nested_within_a_node">Remove all children nested within a node</h3>
-
-<pre class="brush: js">function removeAllChildren(element) {
- while (element.firstChild) {
- element.removeChild(element.firstChild)
- }
-}</pre>
-
-<h4 id="Sample_usage">Sample usage</h4>
-
-<pre class="brush: js;">/* ... an alternative to document.body.innerHTML = "" ... */
-removeAllChildren(document.body)</pre>
-
-<h3 id="Recurse_through_child_nodes">Recurse through child nodes</h3>
-
-<p>The following function recursively calls a callback function for each node contained by a root node (including the root itself):</p>
-
-<pre class="brush: js;">function eachNode(rootNode, callback) {
- if (!callback) {
- const nodes = []
- eachNode(rootNode, function(node) {
- nodes.push(node)
- })
- return nodes
- }
-
- if (false === callback(rootNode)) {
- return false
-  }
-
- if (rootNode.hasChildNodes()) {
- const nodes = rootNode.childNodes
- for (let i = 0, l = nodes.length; i &lt; l; ++i) {
- if (false === eachNode(nodes[i], callback)) {
- return
- }
- }
- }
-}
-</pre>
-
-<h4 id="Syntax">Syntax</h4>
-
-<pre class="syntaxbox">eachNode(<var>rootNode</var>, <var>callback</var>)</pre>
-
-<h4 id="Description">Description</h4>
-
-<p>Recursively calls a function for each descendant node of <code><var>rootNode</var></code> (including the root itself).</p>
-
-<p>If <code><var>callback</var></code> is omitted, the function returns an {{jsxref("Array")}} instead, which contains <code><var>rootNode</var></code> and all nodes contained within.</p>
-
-<p>If <code><var>callback</var></code> is provided, and it returns {{jsxref("Boolean")}} <code>false</code> when called, the current recursion level is aborted, and the function resumes execution at the last parent's level. This can be used to abort loops once a node has been found (such as searching for a text node which contains a certain string).</p>
-
-<h4 id="Parameters">Parameters</h4>
-
-<dl>
- <dt><code><var>rootNode</var></code></dt>
- <dd>The <code>Node</code> object whose descendants will be recursed through.</dd>
- <dt><code><var>callback</var></code> {{optional_inline}}</dt>
- <dd>An optional callback <a href="/en-US/docs/JavaScript/Reference/Global_Objects/Function">function</a> that receives a <code>Node</code> as its only argument. If omitted, <code>eachNode</code> returns an {{jsxref("Array")}} of every node contained within <code><var>rootNode</var></code> (including the root itself).</dd>
-</dl>
-
-<h4 id="Sample_usage_2">Sample usage</h4>
-
-<p>The following example prints the <a href="/en-US/docs/Web/API/Node/textContent"><code>textContent</code></a> properties of each <code>&lt;span&gt;</code> tag in a <code>&lt;div&gt;</code> element named <code>"box"</code>:</p>
-
-<pre class="brush: html;">&lt;div id="box"&gt;
- &lt;span&gt;Foo&lt;/span&gt;
- &lt;span&gt;Bar&lt;/span&gt;
- &lt;span&gt;Baz&lt;/span&gt;
-&lt;/div&gt;</pre>
-
-<pre class="brush: js;">const box = document.getElementById("box")
-eachNode(box, function(node) {
- if (null != node.textContent) {
- console.log(node.textContent)
- }
-})</pre>
-
-<p>The above will result in the following strings printing to the user's console:</p>
-
-<pre class="brush: js;">"\n\t", "Foo", "\n\t", "Bar", "\n\t", "Baz"</pre>
-
-<div class="blockIndicator note">
-<p><strong>Note:</strong> Whitespace forms part of a {{DOMxRef("Text")}} node, meaning indentation and newlines form separate <code>Text</code> between the <code>Element</code> nodes.</p>
-</div>
-
-<h4 id="Realistic_usage">Realistic usage</h4>
-
-<p>The following demonstrates a real-world use of the <code>eachNode()</code> function: searching for text on a web-page.</p>
-
-<p>We use a wrapper function named <code>grep</code> to do the searching:</p>
-
-<pre class="brush: js;">function grep(parentNode, pattern) {
- const matches = []
- let endScan = false
-
- eachNode(parentNode, function(node){
- if (endScan) {
- return false
-  }
-
- // Ignore anything which isn't a text node
- if (node.nodeType !== Node.TEXT_NODE) {
- return
-  }
-
- if (typeof pattern === "string") {
- if (-1 !== node.textContent.indexOf(pattern)) {
- matches.push(node)
-  }
- }
- else if (pattern.test(node.textContent)) {
- if (!pattern.global) {
- endScan = true
- matches = node
- }
- else {
-  matches.push(node)
-  }
- }
- })
-
- return matches
-}</pre>
-
-<p>For example, to find {{DOMxRef("Text")}} nodes that contain typos:</p>
-
-<pre class="brush: js;">const typos = ["teh", "adn", "btu", "adress", "youre", "msitakes"]
-const pattern = new RegExp("\\b(" + typos.join("|") + ")\\b", "gi")
-const mistakes = grep(document.body, pattern)
-console.log(mistakes)
-</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("DOM WHATWG", "#interface-node", "Node")}}</td>
- <td>{{Spec2("DOM WHATWG")}}</td>
- <td>Added the following methods: <code>getRootNode()</code></td>
- </tr>
- <tr>
- <td>{{SpecName("DOM4", "#interface-node", "Node")}}</td>
- <td>{{Spec2("DOM4")}}</td>
- <td>Removed the following properties: <code>attributes</code>, <code>namespaceURI</code>, <code>prefix</code>, and <code>localName</code>.<br>
- Removed the following methods: <code>isSupported()</code>, <code>hasAttributes()</code>, <code>getFeature()</code>, <code>setUserData()</code>, and <code>getUserData()</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName("DOM3 Core", "core.html#ID-1950641247", "Node")}}</td>
- <td>{{Spec2("DOM3 Core")}}</td>
- <td>The methods <code>insertBefore()</code>, <code>replaceChild()</code>, <code>removeChild()</code>, and <code>appendChild()</code> returns one more kind of error (<code>NOT_SUPPORTED_ERR</code>) if called on a {{DOMxRef("Document")}}.<br>
- The <code>normalize()</code> method has been modified so that {{DOMxRef("Text")}} node can also be normalized if the proper {{DOMxRef("DOMConfiguration")}} flag is set.<br>
- Added the following methods: <code>compareDocumentPosition()</code>, <code>isSameNode()</code>, <code>lookupPrefix()</code>, <code>isDefaultNamespace()</code>, <code>lookupNamespaceURI()</code>, <code>isEqualNode()</code>, <code>getFeature()</code>, <code>setUserData()</code>, and <code>getUserData().</code><br>
- Added the following properties: <code>baseURI</code> and <code>textContent</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName("DOM2 Core", "core.html#ID-1950641247", "Node")}}</td>
- <td>{{Spec2("DOM2 Core")}}</td>
- <td>The <code>ownerDocument</code> property was slightly modified so that {{DOMxRef("DocumentFragment")}} also returns <code>null</code>.<br>
- Added the following properties: <code>namespaceURI</code>, <code>prefix</code>, and <code>localName</code>.<br>
- Added the following methods: <code>normalize()</code>, <code>isSupported()</code> and <code>hasAttributes()</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName("DOM1", "level-one-core.html#ID-1950641247", "Node")}}</td>
- <td>{{Spec2("DOM1")}}</td>
- <td>Initial definition.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.Node")}}</p>
diff --git a/files/ar/web/api/node/removechild/index.html b/files/ar/web/api/node/removechild/index.html
deleted file mode 100644
index aea43247bd..0000000000
--- a/files/ar/web/api/node/removechild/index.html
+++ /dev/null
@@ -1,144 +0,0 @@
----
-title: Node.removeChild()
-slug: Web/API/Node/removeChild
-translation_of: Web/API/Node/removeChild
----
-<div>{{APIRef("DOM")}}</div>
-
-<p>و <code><strong>Node.removeChild()</strong></code>الأسلوب يزيل عقدة الطفل من DOM وإرجاع العقدة التي تمت إزالتها.</p>
-
-<h2 id="بناء_الجملة">بناء الجملة</h2>
-
-<pre class="syntaxbox">var <em>oldChild</em> = <em>العقدة</em> .removeChild ( <em>child</em> ) ؛
-<strong>أو </strong>
-<em>عقدة.</em> إزالة <em>الطفل</em> ( <em>طفل</em> ) ؛
-</pre>
-
-<ul>
- <li><code>child</code> هي العقدة الفرعية المراد إزالتها من DOM.</li>
- <li><code>node</code>هي العقدة الأم لـ <code>child</code>.</li>
- <li><code>oldChild</code>يحمل إشارة إلى العقدة الفرعية التي تمت إزالتها ، أي <code>oldChild === child</code>.</li>
-</ul>
-
-<p>لا تزال العقدة الفرعية التي تمت إزالتها موجودة في الذاكرة ، ولكنها لم تعد جزءًا من DOM. مع عرض أول صيغة ، يمكنك إعادة استخدام العقدة التي تمت إزالتها لاحقًا في التعليمات البرمجية ، عبر <code>oldChild</code>مرجع الكائن.</p>
-
-<p>ومع ذلك ، في النموذج الثاني للبناء ، لا يوجد <code>oldChild</code>مرجع محفوظ ، لذلك بافتراض أن الشفرة الخاصة بك لم تحتفظ بأي مرجع آخر للعقدة في مكان آخر ، فستصبح غير قابلة للاستخدام ولا رجعة فيها على الفور ، وعادة ما يتم <a href="/en-US/docs/Web/JavaScript/Memory_Management">حذفها تلقائيًا</a> من الذاكرة بعد وقت قصير.</p>
-
-<p>إذا <code>child</code>لم يكن في الواقع تابع <code>element</code>للعقدة ، فإن الطريقة تستثني. سيحدث هذا أيضًا إذا <code>child</code>كان في الواقع طفلًا <code>element</code>في وقت المكالمة ، ولكن تمت إزالته بواسطة معالج حدث تم استدعاؤه أثناء محاولة إزالة العنصر (على سبيل المثال ، {{Event("blur")}}.)</p>
-
-<h3 id="ألقيت_أخطاء">ألقيت أخطاء</h3>
-
-<p>تقدم الطريقة استثناءً بطريقتين مختلفتين:</p>
-
-<ol>
- <li>
- <p>If the <code>child</code> was in fact a child of <code>element</code> and so existing on the DOM, but was removed the method throws the following exception:</p>
-
- <p><code>Uncaught NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node</code>.</p>
- </li>
- <li>
- <p>If the <code>child</code> doesn't exist on the DOM of the page, the method throws the following exception:<br>
- <br>
- <code>Uncaught TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'.</code></p>
- </li>
-</ol>
-
-<h2 id="Examples">Examples</h2>
-
-<h3 id="Simple_examples">Simple examples</h3>
-
-<p>Given this HTML:</p>
-
-<pre class="brush: html">&lt;div id="top"&gt;
- &lt;div id="nested"&gt;&lt;/div&gt;
-&lt;/div&gt;
-</pre>
-
-<p>To remove a specified element when knowing its parent node:</p>
-
-<pre class="brush:js">let d = document.getElementById("top");
-let d_nested = document.getElementById("nested");
-let throwawayNode = d.removeChild(d_nested);
-</pre>
-
-<p>To remove a specified element without having to specify its parent node:</p>
-
-<pre class="brush:js">let node = document.getElementById("nested");
-if (node.parentNode) {
- node.parentNode.removeChild(node);
-}
-</pre>
-
-<p>To remove all children from an element:</p>
-
-<pre class="brush:js">let element = document.getElementById("top");
-while (element.firstChild) {
- element.removeChild(element.firstChild);
-}
-</pre>
-
-<h3 id="Causing_a_TypeError">Causing a TypeError</h3>
-
-<pre class="brush: html">&lt;!--Sample HTML code--&gt;
-&lt;div id="top"&gt; &lt;/div&gt;
-
-&lt;script type="text/javascript"&gt;
- let top = document.getElementById("top");
- let nested = document.getElementById("nested");
-
- // Throws Uncaught TypeError
- let garbage = top.removeChild(nested);
-&lt;/script&gt;
-</pre>
-
-<h3 id="Causing_a_NotFoundError">Causing a NotFoundError</h3>
-
-<pre class="brush: html">&lt;!--Sample HTML code--&gt;
-&lt;div id="top"&gt;
- &lt;div id="nested"&gt;&lt;/div&gt;
-&lt;/div&gt;
-
-&lt;script type="text/javascript"&gt;
- let top = document.getElementById("top");
- let nested = document.getElementById("nested");
-
- // This first call correctly removes the node
- let garbage = top.removeChild(nested);
-
- // Throws Uncaught NotFoundError
- garbage = top.removeChild(nested);
-&lt;/script&gt;
-</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("DOM WHATWG", "#dom-node-removechild", "Node: removeChild")}}</td>
- <td>{{Spec2("DOM WHATWG")}}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="التوافق_المتصفح">التوافق المتصفح</h2>
-
-<div class="hidden">يتم إنشاء جدول التوافق في هذه الصفحة من البيانات المنظمة. إذا كنت ترغب في المساهمة في البيانات ، يرجى مراجعة <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> وإرسال طلب سحب إلينا.</div>
-
-<p>{{Compat("api.Node.removeChild")}}</p>
-
-<h2 id="أنظر_أيضا">أنظر أيضا</h2>
-
-<ul>
- <li>{{domxref("Node.replaceChild")}}</li>
- <li>{{domxref("Node.parentNode")}}</li>
- <li>{{domxref("ChildNode.remove")}}</li>
-</ul>
diff --git a/files/ar/web/api/window/alert/index.html b/files/ar/web/api/window/alert/index.html
deleted file mode 100644
index 11041a50a9..0000000000
--- a/files/ar/web/api/window/alert/index.html
+++ /dev/null
@@ -1,77 +0,0 @@
----
-title: Window.alert()
-slug: Web/API/Window/alert
-tags:
- - تنبية
- - تنبيه
- - دالة تنبيه
- - مستند HTML
- - مصادر
- - نافذة
-translation_of: Web/API/Window/alert
----
-<p>{{ APIRef }}</p>
-
-<p>دالة التنبية ()Window.alert هي وظيفة تقوم بإظهار رسالة مخصصة مع زر حسناً.</p>
-
-<h2 id="Syntax" name="Syntax">بناء الجملة</h2>
-
-<pre class="syntaxbox notranslate">window.alert(<em>message</em>);</pre>
-
-<h3 id="خصائص">خصائص</h3>
-
-<dl>
- <dt><code>message</code> {{optional_inline}}</dt>
- <dt></dt>
- <dd>يمكنك تمرير سلسلة نصية بين أقواس الدالة  حتى يتم إظهارها من خلال نافذة التنبيه، أو كائن يتم تحويلة إلى نص ثم عرض محتواه.</dd>
-</dl>
-
-<h2 id="Example" name="Example">مثال</h2>
-
-<pre class="brush: js notranslate">window.alert("مرحبا بالعالم!");
-alert("مرحبا بالعالم!");</pre>
-
-<p>كلاهما ينتج:</p>
-
-<p><img alt="Image:AlertHelloWorld.png" src="/files/130/AlertHelloWorld.png"></p>
-
-<h2 id="Notes" name="Notes">Notes</h2>
-
-<p>The alert dialog should be used for messages which do not require any response on the part of the user, other than the acknowledgement of the message.</p>
-
-<p><span class="comment">The following text is shared between this article, DOM:window.prompt and DOM:window.confirm</span> Dialog boxes are modal windows - they prevent the user from accessing the rest of the program's interface until the dialog box is closed. For this reason, you should not overuse any function that creates a dialog box (or modal window).</p>
-
-<h2 id="Specification">Specification</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'timers-and-user-prompts.html#dom-alert', 'alert()')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.Window.alert")}}</p>
-
-<h2 id="See_also" name="See_also">See also</h2>
-
-<ul>
- <li>{{domxref("window.confirm","confirm")}}</li>
- <li>{{domxref("window.prompt","prompt")}}</li>
- <li>For <a href="/en-US/docs/Chrome" title="/en-US/docs/Chrome">Mozilla Chrome</a> see {{ifmethod("nsIPromptService","alert")}} and {{ifmethod("nsIPromptService","alertCheck")}}</li>
-</ul>
-
-<div id="gtx-trans" style="position: absolute; left: 504px; top: 245px;">
-<div class="gtx-trans-icon"></div>
-</div>
diff --git a/files/ar/web/api/window/domcontentloaded_event/index.html b/files/ar/web/api/window/domcontentloaded_event/index.html
deleted file mode 100644
index d585930f1f..0000000000
--- a/files/ar/web/api/window/domcontentloaded_event/index.html
+++ /dev/null
@@ -1,72 +0,0 @@
----
-title: 'Window: DOMContentLoaded event'
-slug: Web/API/Window/DOMContentLoaded_event
-translation_of: Web/API/Window/DOMContentLoaded_event
----
-<div>{{APIRef}}</div>
-
-<p dir="rtl">يبدأ حدث DOMContentLoaded عند تحميل مستند HTML الأولي وتحليله بالكامل ، دون انتظار انتهاء تحميل صفحات الأنماط والصور والأطر الفرعية.</p>
-
-<table class="properties">
- <tbody>
- <tr>
- <th dir="rtl" scope="row">Bubbles</th>
- <td dir="rtl">Yes</td>
- </tr>
- <tr>
- <th scope="row">Cancelable</th>
- <td>Yes (although specified as a simple event that isn't cancelable)</td>
- </tr>
- <tr>
- <th scope="row">Interface</th>
- <td>{{domxref("Event")}}</td>
- </tr>
- <tr>
- <th scope="row">Event handler property</th>
- <td>None</td>
- </tr>
- </tbody>
-</table>
-
-<p>The original target for this event is the {{domxref("Document")}} that has loaded. You can listen for this event on the <code>Window</code> interface to handle it in the capture or bubbling phases. For full details on this event please see the page on the Document: {{domxref("Document/DOMContentLoaded_event", "DOMContentLoaded")}} event.</p>
-
-<p>A different event, {{domxref("Window/load_event", "load")}}, should be used only to detect a fully-loaded page. It is a common mistake to use <code>load</code> where <code>DOMContentLoaded</code> would be more appropriate.</p>
-
-<h2 id="Examples">Examples</h2>
-
-<h3 id="Basic_usage">Basic usage</h3>
-
-<pre class="brush: js notranslate">window.addEventListener('DOMContentLoaded', (event) =&gt; {
- console.log('DOM fully loaded and parsed');
-});
-</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'indices.html#event-domcontentloaded')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.Window.DOMContentLoaded_event")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li>Related events: {{domxref("Window/load_event", "load")}}, {{domxref("Document/readystatechange_event", "readystatechange")}}, {{domxref("Window/beforeunload_event", "beforeunload")}}, {{domxref("Window/unload_event", "unload")}}</li>
- <li>This event on {{domxref("Document")}} targets: {{domxref("Document/DOMContentLoaded_event", "DOMContentLoaded")}}</li>
-</ul>
diff --git a/files/ar/web/api/window/index.html b/files/ar/web/api/window/index.html
deleted file mode 100644
index aedbf1702b..0000000000
--- a/files/ar/web/api/window/index.html
+++ /dev/null
@@ -1,708 +0,0 @@
----
-title: Window
-slug: Web/API/Window
-tags:
- - API
- - Browser
- - HTML DOM
- - Interface
- - NeedsTranslation
- - Reference
- - Tab
- - TopicStub
- - Window
- - global
- - global scope
- - scope
-translation_of: Web/API/Window
----
-<div>{{APIRef("DOM")}}</div>
-
-<p><span class="seoSummary">The <strong><code>Window</code></strong> interface represents a window containing a {{glossary("DOM")}} document; the <code>document</code> property points to the <a href="/en-US/docs/Web/API/Document">DOM document</a> loaded in that window.</span> A window for a given document can be obtained using the {{domxref("document.defaultView")}} property.</p>
-
-<p>A global variable, <code>window</code>, representing the window in which the script is running, is exposed to JavaScript code.</p>
-
-<p>The <code>Window</code> interface is home to a variety of functions, namespaces, objects, and constructors which are not necessarily directly associated with the concept of a user interface window. However, the <code>Window</code> interface is a suitable place to include these items that need to be globally available. Many of these are documented in the <a href="/en-US/docs/Web/JavaScript/Reference">JavaScript Reference</a> and the <a href="/en-US/docs/Web/API/Document_Object_Model">DOM Reference</a>.</p>
-
-<p>In a tabbed browser, each tab is represented by its own <code>Window</code> object; the global <code>window</code> seen by JavaScript code running within a given tab always represents the tab in which the code is running. That said, even in a tabbed browser, some properties and methods still apply to the overall window that contains the tab, such as {{Domxref("Window.resizeTo", "resizeTo()")}} and {{Domxref("Window.innerHeight", "innerHeight")}}. Generally, anything that can't reasonably pertain to a tab pertains to the window instead.</p>
-
-<p>{{InheritanceDiagram}}</p>
-
-<h2 id="Constructors">Constructors</h2>
-
-<p>See also the <a href="/en-US/docs/DOM/DOM_Reference" title="/en-US/docs/DOM/DOM_Reference">DOM Interfaces</a>.</p>
-
-<dl>
- <dt>{{domxref("DOMParser")}}</dt>
- <dd><code>DOMParser</code> can parse XML or HTML source stored in a string into a DOM <a href="/en-US/docs/DOM/document" title="document">Document</a>. <code>DOMParser</code> is specified in <a href="https://w3c.github.io/DOM-Parsing/" title="http://html5.org/specs/dom-parsing.html">DOM Parsing and Serialization</a>.</dd>
- <dt>{{domxref("Image")}}</dt>
- <dd>Used for creating an {{domxref("HTMLImageElement")}}.</dd>
- <dt>{{domxref("Option")}}</dt>
- <dd>Used for creating an {{domxref("HTMLOptionElement")}}.</dd>
- <dt>{{domxref("StaticRange")}} {{experimental_inline}} {{readonlyinline}}</dt>
- <dd>Returns a {{domxref('StaticRange.StaticRange','StaticRange()')}} constructor which creates a {{domxref('StaticRange')}} object.</dd>
- <dt>{{domxref("Worker")}}</dt>
- <dd>Used for creating a <a href="/en-US/docs/DOM/Using_web_workers">Web worker.</a></dd>
- <dt>{{domxref("XMLSerializer")}}</dt>
- <dd>Converts a DOM tree into XML or HTML source.</dd>
-</dl>
-
-<h2 id="Properties">Properties</h2>
-
-<p><em>This interface inherits properties from the {{domxref("EventTarget")}} interface and implements properties from the {{domxref("WindowOrWorkerGlobalScope")}} and {{domxref("WindowEventHandlers")}} mixins.</em></p>
-
-<p>Note that properties which are objects (e.g.,. for overriding the prototype of built-in elements) are listed in a separate section below.</p>
-
-<dl>
- <dt>{{domxref("Window.closed")}} {{Non-standard_inline}} {{readOnlyInline}}</dt>
- <dd>This property indicates whether the current window is closed or not.</dd>
- <dt>{{domxref("Window.console")}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the console object which provides access to the browser's debugging console.</dd>
- <dt>{{domxref("Window.controllers")}} {{non-standard_inline}} {{ReadOnlyInline}}</dt>
- <dd>Returns the XUL controller objects for the current chrome window.</dd>
- <dt>{{domxref("Window.customElements")}} {{ReadOnlyInline}}</dt>
- <dd>returns a reference to the {{domxref("CustomElementRegistry")}} object, which can be used to register new <a href="/en-US/docs/Web/Web_Components/Using_custom_elements">custom elements</a> and get information about previously registered custom elements.</dd>
- <dt>{{domxref("Window.crypto")}} {{readOnlyInline}}</dt>
- <dd>Returns the browser crypto object.</dd>
- <dt>{{domxref("Window.devicePixelRatio")}} {{non-standard_inline}} {{ReadOnlyInline}}</dt>
- <dd>Returns the ratio between physical pixels and device independent pixels in the current display.</dd>
- <dt>{{domxref("Window.dialogArguments")}} {{ReadOnlyInline}}</dt>
- <dd>Gets the arguments passed to the window (if it's a dialog box) at the time {{domxref("window.showModalDialog()")}} was called. This is an {{Interface("nsIArray")}}.</dd>
- <dt>{{domxref("Window.document")}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the document that the window contains.</dd>
- <dt>{{domxref("Window.DOMMatrix")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMMatrix")}} object, which represents 4x4 matrices, suitable for 2D and 3D operations.</dd>
- <dt>{{domxref("Window.DOMMatrixReadOnly")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMMatrixReadOnly")}} object, which represents 4x4 matrices, suitable for 2D and 3D operations.</dd>
- <dt>{{domxref("Window.DOMPoint")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMPoint")}} object, which represents a 2D or 3D point in a coordinate system.</dd>
- <dt>{{domxref("Window.DOMPointReadOnly")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMPointReadOnly")}} object, which represents a 2D or 3D point in a coordinate system.</dd>
- <dt>{{domxref("Window.DOMQuad")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMQuad")}} object, which provides represents a quadrilaterial object, that is one having four corners and four sides.</dd>
- <dt>{{domxref("Window.DOMRect")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMRect")}} object, which represents a rectangle.</dd>
- <dt>{{domxref("Window.DOMRectReadOnly")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMRectReadOnly")}} object, which represents a rectangle.</dd>
- <dt>{{domxref("Window.event")}} {{ReadOnlyInline}}</dt>
- <dd>Returns the <strong>current event</strong>, which is the event currently being handled by the JavaScript code's context, or <code>undefined</code> if no event is currently being handled. The {{domxref("Event")}} object passed directly to event handlers should be used instead whenever possible.</dd>
- <dt>{{domxref("Window.frameElement")}} {{readOnlyInline}}</dt>
- <dd>Returns the element in which the window is embedded, or null if the window is not embedded.</dd>
- <dt>{{domxref("Window.frames")}} {{readOnlyInline}}</dt>
- <dd>Returns an array of the subframes in the current window.</dd>
- <dt>{{domxref("Window.fullScreen")}}</dt>
- <dd>This property indicates whether the window is displayed in full screen or not.</dd>
- <dt>{{domxref("Window.history")}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the history object.</dd>
- <dt>{{domxref("Window.innerHeight")}} {{readOnlyInline}}</dt>
- <dd>Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.</dd>
- <dt>{{domxref("Window.innerWidth")}} {{readOnlyInline}}</dt>
- <dd>Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.</dd>
- <dt>{{domxref("Window.isSecureContext")}} {{experimental_inline}} {{readOnlyInline}}</dt>
- <dd>Indicates whether a context is capable of using features that require secure contexts.</dd>
- <dt>{{domxref("Window.length")}} {{readOnlyInline}}</dt>
- <dd>Returns the number of frames in the window. See also {{domxref("window.frames")}}.</dd>
- <dt>{{domxref("Window.location")}}</dt>
- <dd>Gets/sets the location, or current URL, of the window object.</dd>
- <dt>{{domxref("Window.locationbar")}} {{ReadOnlyInline}}</dt>
- <dd>Returns the locationbar object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.localStorage")}} {{readOnlyInline}}</dt>
- <dd>Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.</dd>
- <dt>{{domxref("Window.menubar")}} {{ReadOnlyInline}}</dt>
- <dd>Returns the menubar object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.messageManager")}}</dt>
- <dd>Returns the <a href="/en-US/docs/The_message_manager">message manager</a> object for this window.</dd>
- <dt>{{domxref("Window.mozInnerScreenX")}} {{ReadOnlyInline}} {{non-standard_inline}}</dt>
- <dd>Returns the horizontal (X) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See <code>mozScreenPixelsPerCSSPixel</code> in {{interface("nsIDOMWindowUtils")}} for a conversion factor to adapt to screen pixels if needed.</dd>
- <dt>{{domxref("Window.mozInnerScreenY")}} {{ReadOnlyInline}} {{non-standard_inline}}</dt>
- <dd>Returns the vertical (Y) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See <code>mozScreenPixelsPerCSSPixel</code> for a conversion factor to adapt to screen pixels if needed.</dd>
- <dt>{{domxref("Window.name")}}</dt>
- <dd>Gets/sets the name of the window.</dd>
- <dt>{{domxref("Window.navigator")}} {{readOnlyInline}}</dt>
- <dd>Returns a reference to the navigator object.</dd>
- <dt>{{domxref("Window.opener")}}</dt>
- <dd>Returns a reference to the window that opened this current window.</dd>
- <dt>{{domxref("Window.orientation")}} {{non-standard_inline}} {{deprecated_inline}} {{readOnlyInline}}</dt>
- <dd>Returns the orientation in degrees (in 90 degree increments) of the viewport relative to the device's natural orientation.</dd>
- <dt>{{domxref("Window.outerHeight")}} {{readOnlyInline}}</dt>
- <dd>Gets the height of the outside of the browser window.</dd>
- <dt>{{domxref("Window.outerWidth")}} {{readOnlyInline}}</dt>
- <dd>Gets the width of the outside of the browser window.</dd>
- <dt>{{domxref("Window.scrollX","Window.pageXOffset")}} {{readOnlyInline}}</dt>
- <dd>An alias for {{domxref("window.scrollX")}}.</dd>
- <dt>{{domxref("Window.scrollY","Window.pageYOffset")}} {{readOnlyInline}}</dt>
- <dd>An alias for {{domxref("window.scrollY")}}</dd>
- <dt>{{domxref("Window.parent")}} {{readOnlyInline}}</dt>
- <dd>Returns a reference to the parent of the current window or subframe.</dd>
- <dt>{{domxref("Window.performance")}} {{readOnlyInline}}</dt>
- <dd>Returns a {{domxref("Performance")}} object, which includes the {{domxref("Performance.timing", "timing")}} and {{domxref("Performance.navigation", "navigation")}} attributes, each of which is an object providing <a href="/en-US/docs/Navigation_timing">performance-related</a> data. See also <a href="/en-US/docs/Web/API/Navigation_timing_API/Using_Navigation_Timing">Using Navigation Timing</a> for additional information and examples.</dd>
- <dt>{{domxref("Window.personalbar")}} {{readOnlyInline}}</dt>
- <dd>Returns the personalbar object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.screen")}} {{readOnlyInline}}</dt>
- <dd>Returns a reference to the screen object associated with the window.</dd>
- <dt>{{domxref("Window.screenX")}} and {{domxref("Window.screenLeft")}} {{readOnlyInline}}</dt>
- <dd>Both properties return the horizontal distance from the left border of the user's browser viewport to the left side of the screen.</dd>
- <dt>{{domxref("Window.screenY")}} and {{domxref("Window.screenTop")}} {{readOnlyInline}}</dt>
- <dd>Both properties return the vertical distance from the top border of the user's browser viewport to the top side of the screen.</dd>
- <dt>{{domxref("Window.scrollbars")}} {{readOnlyInline}}</dt>
- <dd>Returns the scrollbars object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.scrollMaxX")}} {{non-standard_inline}} {{ReadOnlyInline}}</dt>
- <dd>The maximum offset that the window can be scrolled to horizontally, that is the document width minus the viewport width.</dd>
- <dt>{{domxref("Window.scrollMaxY")}} {{non-standard_inline}} {{ReadOnlyInline}}</dt>
- <dd>The maximum offset that the window can be scrolled to vertically (i.e., the document height minus the viewport height).</dd>
- <dt>{{domxref("Window.scrollX")}} {{readOnlyInline}}</dt>
- <dd>Returns the number of pixels that the document has already been scrolled horizontally.</dd>
- <dt>{{domxref("Window.scrollY")}} {{readOnlyInline}}</dt>
- <dd>Returns the number of pixels that the document has already been scrolled vertically.</dd>
- <dt>{{domxref("Window.self")}} {{ReadOnlyInline}}</dt>
- <dd>Returns an object reference to the window object itself.</dd>
- <dt>{{domxref("Window.sessionStorage")}}</dt>
- <dd>Returns a reference to the session storage object used to store data that may only be accessed by the origin that created it.</dd>
- <dt>{{domxref("Window.sidebar")}} {{non-standard_inline}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the window object of the sidebar.</dd>
- <dt>{{domxref("Window.speechSynthesis")}} {{ReadOnlyInline}}</dt>
- <dd>Returns a {{domxref("SpeechSynthesis")}} object, which is the entry point into using <a href="/en-US/docs/Web/API/Web_Speech_API">Web Speech API</a> speech synthesis functionality.</dd>
- <dt>{{domxref("Window.status")}}</dt>
- <dd>Gets/sets the text in the statusbar at the bottom of the browser.</dd>
- <dt>{{domxref("Window.statusbar")}} {{readOnlyInline}}</dt>
- <dd>Returns the statusbar object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.toolbar")}} {{readOnlyInline}}</dt>
- <dd>Returns the toolbar object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.top")}} {{readOnlyInline}}</dt>
- <dd>Returns a reference to the topmost window in the window hierarchy. This property is read only.</dd>
- <dt>{{domxref("Window.visualViewport")}} {{readOnlyInline}}</dt>
- <dd>Returns a {{domxref("VisualViewport")}} object which represents the visual viewport for a given window.</dd>
- <dt>{{domxref("Window.window")}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the current window.</dd>
- <dt><code>window[0]</code>, <code>window[1]</code>, etc.</dt>
- <dd>Returns a reference to the <code>window</code> object in the frames. See {{domxref("Window.frames")}} for more details.</dd>
-</dl>
-
-<h3 id="Properties_implemented_from_elsewhere">Properties implemented from elsewhere</h3>
-
-<dl>
- <dt>{{domxref("WindowOrWorkerGlobalScope.caches")}} {{readOnlyinline}}</dt>
- <dd>Returns the {{domxref("CacheStorage")}} object associated with the current context. This object enables functionality such as storing assets for offline use, and generating custom responses to requests.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.indexedDB")}} {{readonlyInline}}</dt>
- <dd>Provides a mechanism for applications to asynchronously access capabilities of indexed databases; returns an {{domxref("IDBFactory")}} object.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.isSecureContext")}} {{readOnlyinline}}</dt>
- <dd>Returns a boolean indicating whether the current context is secure (<code>true</code>) or not (<code>false</code>).</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.origin")}} {{readOnlyinline}}</dt>
- <dd>Returns the global object's origin, serialized as a string. (This does not yet appear to be implemented in any browser.)</dd>
-</dl>
-
-<h3 id="Obsolete_properties">Obsolete properties</h3>
-
-<dl>
- <dt>{{domxref("Window.content")}} and <code>Window._content</code> {{Non-standard_inline}} {{obsolete_inline}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the content element in the current window. Since Firefox 57 (initially Nightly-only), both versions are only available from chrome (privileged) code, and not available to the web anymore.</dd>
- <dt>{{domxref("Window.defaultStatus")}} {{obsolete_inline}}</dt>
- <dd>Gets/sets the status bar text for the given window.</dd>
- <dt>{{domxref("Window.directories")}} {{obsolete_inline}}</dt>
- <dd>Synonym of {{domxref("window.personalbar")}}</dd>
- <dt>{{domxref("Window.globalStorage")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Multiple storage objects that were used for storing data across multiple pages.</dd>
- <dt>{{domxref("Window.mozAnimationStartTime")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>The time in milliseconds since epoch at which the current animation cycle began. Use {{domxref("Animation.startTime")}} instead.</dd>
- <dt>{{domxref("Window.mozPaintCount")}} {{non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Returns the number of times the current document has been rendered to the screen in this window. This can be used to compute rendering performance.</dd>
- <dt>{{domxref("Window.pkcs11")}} {{obsolete_inline}}</dt>
- <dd>Formerly provided access to install and remove PKCS11 modules.</dd>
- <dt>{{domxref("Window.returnValue")}} {{obsolete_inline}}</dt>
- <dd>The return value to be returned to the function that called {{domxref("window.showModalDialog()")}} to display the window as a modal dialog.</dd>
-</dl>
-
-<h2 id="Methods">Methods</h2>
-
-<p><em>This interface inherits methods from the {{domxref("EventTarget")}} interface and implements methods from {{domxref("WindowOrWorkerGlobalScope")}} and {{domxref("EventTarget")}}.</em></p>
-
-<dl>
- <dt>{{domxref("Window.alert()")}}</dt>
- <dd>Displays an alert dialog.</dd>
- <dt>{{domxref("Window.blur()")}}</dt>
- <dd>Sets focus away from the window.</dd>
- <dt>{{domxref("Window.cancelAnimationFrame()")}} {{experimental_inline}}</dt>
- <dd>Enables you to cancel a callback previously scheduled with {{domxref("Window.requestAnimationFrame")}}.</dd>
- <dt>{{domxref("Window.cancelIdleCallback()")}} {{experimental_inline}}</dt>
- <dd>Enables you to cancel a callback previously scheduled with {{domxref("Window.requestIdleCallback")}}.</dd>
- <dt>{{domxref("Window.clearImmediate()")}}</dt>
- <dd>Cancels the repeated execution set using <code>setImmediate</code>.</dd>
- <dt>{{domxref("Window.close()")}}</dt>
- <dd>Closes the current window.</dd>
- <dt>{{domxref("Window.confirm()")}}</dt>
- <dd>Displays a dialog with a message that the user needs to respond to.</dd>
- <dt>{{domxref("Window.dump()")}} {{Non-standard_inline}}</dt>
- <dd>Writes a message to the console.</dd>
- <dt>{{domxref("Window.find()")}}</dt>
- <dd>Searches for a given string in a window.</dd>
- <dt>{{domxref("Window.focus()")}}</dt>
- <dd>Sets focus on the current window.</dd>
- <dt>{{domxref("Window.getComputedStyle()")}}</dt>
- <dd>Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.</dd>
- <dt>{{domxref("Window.getDefaultComputedStyle()")}} {{Non-standard_inline}}</dt>
- <dd>Gets default computed style for the specified element, ignoring author stylesheets.</dd>
- <dt>{{domxref("Window.getSelection()")}}</dt>
- <dd>Returns the selection object representing the selected item(s).</dd>
- <dt>{{domxref("Window.matchMedia()")}}</dt>
- <dd>Returns a {{domxref("MediaQueryList")}} object representing the specified media query string.</dd>
- <dt>{{domxref("Window.maximize()")}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
- <dt>{{domxref("Window.minimize()")}} (top-level XUL windows only)</dt>
- <dd>Minimizes the window.</dd>
- <dt>{{domxref("Window.moveBy()")}}</dt>
- <dd>Moves the current window by a specified amount.</dd>
- <dt>{{domxref("Window.moveTo()")}}</dt>
- <dd>Moves the window to the specified coordinates.</dd>
- <dt>{{domxref("Window.open()")}}</dt>
- <dd>Opens a new window.</dd>
- <dt>{{domxref("Window.postMessage()")}}</dt>
- <dd>Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first.</dd>
- <dt>{{domxref("Window.print()")}}</dt>
- <dd>Opens the Print Dialog to print the current document.</dd>
- <dt>{{domxref("Window.prompt()")}}</dt>
- <dd>Returns the text entered by the user in a prompt dialog.</dd>
- <dt>{{domxref("Window.requestAnimationFrame()")}}</dt>
- <dd>Tells the browser that an animation is in progress, requesting that the browser schedule a repaint of the window for the next animation frame.</dd>
- <dt>{{domxref("Window.requestIdleCallback()")}} {{experimental_inline}}</dt>
- <dd>Enables the scheduling of tasks during a browser's idle periods.</dd>
- <dt>{{domxref("Window.resizeBy()")}}</dt>
- <dd>Resizes the current window by a certain amount.</dd>
- <dt>{{domxref("Window.resizeTo()")}}</dt>
- <dd>Dynamically resizes window.</dd>
- <dt>{{domxref("Window.scroll()")}}</dt>
- <dd>Scrolls the window to a particular place in the document.</dd>
- <dt>{{domxref("Window.scrollBy()")}}</dt>
- <dd>Scrolls the document in the window by the given amount.</dd>
- <dt>{{domxref("Window.scrollByLines()")}} {{Non-standard_inline}}</dt>
- <dd>Scrolls the document by the given number of lines.</dd>
- <dt>{{domxref("Window.scrollByPages()")}} {{Non-standard_inline}}</dt>
- <dd>Scrolls the current document by the specified number of pages.</dd>
- <dt>{{domxref("Window.scrollTo()")}}</dt>
- <dd>Scrolls to a particular set of coordinates in the document.</dd>
- <dt>{{domxref("Window.setCursor()")}} {{Non-standard_inline}} (top-level XUL windows only)</dt>
- <dd>Changes the cursor for the current window</dd>
- <dt>{{domxref("Window.setImmediate()")}}</dt>
- <dd>Executes a function after the browser has finished other heavy tasks</dd>
- <dt>{{domxref("Window.setResizable()")}} {{Non-standard_inline}}</dt>
- <dd>Toggles a user's ability to resize a window.</dd>
- <dt>{{domxref("Window.sizeToContent()")}} {{Non-standard_inline}}</dt>
- <dd>Sizes the window according to its content.</dd>
- <dt>{{domxref("Window.stop()")}}</dt>
- <dd>This method stops window loading.</dd>
- <dt>{{domxref("Window.updateCommands()")}} {{Non-standard_inline}}</dt>
- <dd>Updates the state of commands of the current chrome window (UI).</dd>
-</dl>
-
-<h3 id="Methods_implemented_from_elsewhere">Methods implemented from elsewhere</h3>
-
-<dl>
- <dt>{{domxref("EventTarget.addEventListener()")}}</dt>
- <dd>Register an event handler to a specific event type on the window.</dd>
- <dt>{{domxref("EventTarget.dispatchEvent()")}}</dt>
- <dd>Used to trigger an event.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.atob()")}}</dt>
- <dd>Decodes a string of data which has been encoded using base-64 encoding.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.btoa()")}}</dt>
- <dd>Creates a base-64 encoded ASCII string from a string of binary data.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.clearInterval()")}}</dt>
- <dd>Cancels the repeated execution set using {{domxref("WindowOrWorkerGlobalScope.setInterval()")}}.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.clearTimeout()")}}</dt>
- <dd>Cancels the delayed execution set using {{domxref("WindowOrWorkerGlobalScope.setTimeout()")}}.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.createImageBitmap()")}}</dt>
- <dd>Accepts a variety of different image sources, and returns a {{domxref("Promise")}} which resolves to an {{domxref("ImageBitmap")}}. Optionally the source is cropped to the rectangle of pixels originating at <em>(sx, sy)</em> with width sw, and height sh.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.fetch()")}}</dt>
- <dd>Starts the process of fetching a resource from the network.</dd>
- <dt>{{domxref("EventTarget.removeEventListener")}}</dt>
- <dd>Removes an event listener from the window.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.setInterval()")}}</dt>
- <dd>Schedules a function to execute every time a given number of milliseconds elapses.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.setTimeout()")}}</dt>
- <dd>Schedules a function to execute in a given amount of time.</dd>
-</dl>
-
-<h3 id="Obsolete_methods">Obsolete methods</h3>
-
-<dl>
- <dt>{{domxref("Window.back()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Moves back one in the window history. This method is obsolete; you should instead use {{domxref("History.back", "window.history.back()")}}.</dd>
- <dt>{{domxref("Window.captureEvents()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Registers the window to capture all events of the specified type.</dd>
- <dt>{{domxref("Window.forward()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Moves the window one document forward in the history. This method is obsolete; you should instead use {{domxref("History.forward", "window.history.forward()")}}.</dd>
- <dt>{{domxref("Window.getAttention()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Flashes the application icon.</dd>
- <dt>{{domxref("Window.home()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Returns the browser to the home page.</dd>
- <dt>{{domxref("Window.openDialog()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Opens a new dialog window.</dd>
- <dt>{{domxref("Window.releaseEvents()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Releases the window from trapping events of a specific type.</dd>
- <dt>{{domxref("Window.showModalDialog()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Displays a modal dialog.</dd>
-</dl>
-
-<h2 id="Event_handlers">Event handlers</h2>
-
-<p>These are properties of the window object that can be set to establish event handlers for the various things that can happen in the window that might be of interest.</p>
-
-<p><em>This interface inherits event handlers from the {{domxref("EventTarget")}} interface and implements event handlers from {{domxref("WindowEventHandlers")}}.</em></p>
-
-<div class="note">
-<p><strong>Note:</strong> Starting in {{Gecko("9.0")}}, you can now use the syntax <code>if ("onabort" in window)</code> to determine whether or not a given event handler property exists. This is because event handler interfaces have been updated to be proper web IDL interfaces. See <a href="/en-US/docs/DOM/DOM_event_handlers">DOM event handlers</a> for details.</p>
-</div>
-
-<dl>
- <dt>{{domxref("Window.onappinstalled")}}</dt>
- <dd>Called when the page is installed as a webapp. See {{domxref("Window/appinstalled_event", "appinstalled")}} event.</dd>
- <dt>{{domxref("Window.onbeforeinstallprompt")}}</dt>
- <dd>An event handler property dispatched before a user is prompted to save a web site to a home screen on mobile.</dd>
- <dt>{{domxref("Window.ondevicelight")}}</dt>
- <dd>An event handler property for any ambient light levels changes</dd>
- <dt>{{domxref("Window.ondevicemotion")}}</dt>
- <dd>Called if accelerometer detects a change (For mobile devices)</dd>
- <dt>{{domxref("Window.ondeviceorientation")}}</dt>
- <dd>Called when the orientation is changed (For mobile devices)</dd>
- <dt>{{domxref("Window.ondeviceorientationabsolute")}} {{non-standard_inline}}</dt>
- <dd>An event handler property for any device orientation changes.</dd>
- <dt>{{domxref("Window.ondeviceproximity")}}</dt>
- <dd>An event handler property for device proximity event</dd>
- <dt>{{domxref("Window.ongamepadconnected")}}</dt>
- <dd>Represents an event handler that will run when a gamepad is connected (when the {{event('gamepadconnected')}} event fires).</dd>
- <dt>{{domxref("Window.ongamepaddisconnected")}}</dt>
- <dd>Represents an event handler that will run when a gamepad is disconnected (when the {{event('gamepaddisconnected')}} event fires).</dd>
- <dt>{{domxref("Window.onmozbeforepaint")}}</dt>
- <dd>An event handler property for the <code>MozBeforePaint</code> event, which is sent before repainting the window if the event has been requested by a call to the {{domxref("Window.mozRequestAnimationFrame()")}} method.</dd>
- <dt>{{domxref("Window.onpaint")}}</dt>
- <dd>An event handler property for paint events on the window.</dd>
- <dt>{{domxref("Window.onrejectionhandled")}} {{experimental_inline}}</dt>
- <dd>An event handler for handled {{jsxref("Promise")}} rejection events.</dd>
- <dt>{{domxref("Window.onuserproximity")}}</dt>
- <dd>An event handler property for user proximity events.</dd>
- <dt>{{domxref("Window.onvrdisplayconnect")}}</dt>
- <dd>Represents an event handler that will run when a compatible VR device has been connected to the computer (when the {{event("vrdisplayconnected")}} event fires).</dd>
- <dt>{{domxref("Window.onvrdisplaydisconnect")}}</dt>
- <dd>Represents an event handler that will run when a compatible VR device has been disconnected from the computer (when the {{event("vrdisplaydisconnected")}} event fires).</dd>
- <dt>{{domxref("Window.onvrdisplayactivate")}}</dt>
- <dd>Represents an event handler that will run when a display is able to be presented to (when the {{event("vrdisplayactivate")}} event fires), for example if an HMD has been moved to bring it out of standby, or woken up by being put on.</dd>
- <dt>{{domxref("Window.onvrdisplaydeactivate")}}</dt>
- <dd>Represents an event handler that will run when a display can no longer be presented to (when the {{event("vrdisplaydeactivate")}} event fires), for example if an HMD has gone into standby or sleep mode due to a period of inactivity.</dd>
- <dt>{{domxref("Window.onvrdisplayblur")}}</dt>
- <dd>Represents an event handler that will run when presentation to a display has been paused for some reason by the browser, OS, or VR hardware (when the {{event("vrdisplayblur")}} event fires) — for example, while the user is interacting with a system menu or browser, to prevent tracking or loss of experience.</dd>
- <dt>{{domxref("Window.onvrdisplayfocus")}}</dt>
- <dd>Represents an event handler that will run when presentation to a display has resumed after being blurred (when the {{event("vrdisplayfocus")}} event fires).</dd>
- <dt>{{domxref("Window.onvrdisplaypresentchange")}}</dt>
- <dd>represents an event handler that will run when the presenting state of a VR device changes — i.e. goes from presenting to not presenting, or vice versa (when the {{event("vrdisplaypresentchange")}} event fires).</dd>
-</dl>
-
-<h3 id="Event_handlers_implemented_from_elsewhere">Event handlers implemented from elsewhere</h3>
-
-<dl>
- <dt>{{domxref("GlobalEventHandlers.onabort")}}</dt>
- <dd>Called when the loading of a resource has been aborted, such as by a user canceling the load while it is still in progress</dd>
- <dt>{{domxref("WindowEventHandlers.onafterprint")}}</dt>
- <dd>Called when the print dialog box is closed. See {{event("afterprint")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onbeforeprint")}}</dt>
- <dd>Called when the print dialog box is opened. See {{event("beforeprint")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onbeforeunload")}}</dt>
- <dd>An event handler property for before-unload events on the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onblur")}}</dt>
- <dd>Called after the window loses focus, such as due to a popup.</dd>
- <dt>{{domxref("GlobalEventHandlers.onchange")}}</dt>
- <dd>An event handler property for change events on the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onclick")}}</dt>
- <dd>Called after the ANY mouse button is pressed &amp; released</dd>
- <dt>{{domxref("GlobalEventHandlers.ondblclick")}}</dt>
- <dd>Called when a double click is made with ANY mouse button.</dd>
- <dt>{{domxref("GlobalEventHandlers.onclose")}}</dt>
- <dd>Called after the window is closed</dd>
- <dt>{{domxref("GlobalEventHandlers.oncontextmenu")}}</dt>
- <dd>Called when the RIGHT mouse button is pressed</dd>
- <dt>{{domxref("GlobalEventHandlers.onerror")}}</dt>
- <dd>Called when a resource fails to load OR when an error occurs at runtime. See {{event("error")}} event.</dd>
- <dt>{{domxref("GlobalEventHandlers.onfocus")}}</dt>
- <dd>Called after the window receives or regains focus. See {{event("focus")}} events.</dd>
- <dt>{{domxref("WindowEventHandlers.onhashchange")}} {{gecko_minversion_inline("1.9.2")}}</dt>
- <dd>An event handler property for {{event('hashchange')}} events on the window; called when the part of the URL after the hash mark ("#") changes.</dd>
- <dt>{{domxref("GlobalEventHandlers.oninput")}}</dt>
- <dd>Called when the value of an &lt;input&gt; element changes</dd>
- <dt>{{domxref("GlobalEventHandlers.onkeydown")}}</dt>
- <dd>Called when you begin pressing ANY key. See {{event("keydown")}} event.</dd>
- <dt>{{domxref("GlobalEventHandlers.onkeypress")}}</dt>
- <dd>Called when a key (except Shift, Fn, and CapsLock) is in pressed position. See {{event("keypress")}} event.</dd>
- <dt>{{domxref("GlobalEventHandlers.onkeyup")}}</dt>
- <dd>Called when you finish releasing ANY key. See {{event("keyup")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onlanguagechange")}}</dt>
- <dd>An event handler property for {{event("languagechange")}} events on the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onload")}}</dt>
- <dd>Called after all resources and the DOM are fully loaded. WILL NOT get called when the page is loaded from cache, such as with back button.</dd>
- <dt>{{domxref("WindowEventHandlers.onmessage")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("message")}} event is raised.</dd>
- <dt>{{domxref("GlobalEventHandlers.onmousedown")}}</dt>
- <dd>Called when ANY mouse button is pressed.</dd>
- <dt>{{domxref("GlobalEventHandlers.onmousemove")}}</dt>
- <dd>Called continously when the mouse is moved inside the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onmouseout")}}</dt>
- <dd>Called when the pointer leaves the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onmouseover")}}</dt>
- <dd>Called when the pointer enters the window</dd>
- <dt>{{domxref("GlobalEventHandlers.onmouseup")}}</dt>
- <dd>Called when ANY mouse button is released</dd>
- <dt>{{domxref("WindowEventHandlers.onoffline")}}</dt>
- <dd>Called when network connection is lost. See {{event("offline")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.ononline")}}</dt>
- <dd>Called when network connection is established. See {{event("online")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onpagehide")}}</dt>
- <dd>Called when the user navigates away from the page, before the onunload event. See {{event("pagehide")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onpageshow")}}</dt>
- <dd>Called after all resources and the DOM are fully loaded. See {{event("pageshow")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onpopstate")}}</dt>
- <dd>Called when a back button is pressed.</dd>
- <dt>{{domxref("GlobalEventHandlers.onreset")}}</dt>
- <dd>Called when a form is reset</dd>
- <dt>{{domxref("GlobalEventHandlers.onresize")}}</dt>
- <dd>Called continuously as you are resizing the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onscroll")}}</dt>
- <dd>Called when the scroll bar is moved via ANY means. If the resource fully fits in the window, then this event cannot be invoked</dd>
- <dt>{{domxref("GlobalEventHandlers.onwheel")}}</dt>
- <dd>Called when the mouse wheel is rotated around any axis</dd>
- <dt>{{domxref("GlobalEventHandlers.onselect")}}</dt>
- <dd>Called after text in an input field is selected</dd>
- <dt>{{domxref("GlobalEventHandlers.onselectionchange")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.</dd>
- <dt>{{domxref("WindowEventHandlers.onstorage")}}</dt>
- <dd>Called when there is a change in session storage or local storage. See {{event("storage")}} event</dd>
- <dt>{{domxref("GlobalEventHandlers.onsubmit")}}</dt>
- <dd>Called when a form is submitted</dd>
- <dt>{{domxref("WindowEventHandlers.onunhandledrejection")}} {{experimental_inline}}</dt>
- <dd>An event handler for unhandled {{jsxref("Promise")}} rejection events.</dd>
- <dt>{{domxref("WindowEventHandlers.onunload")}}</dt>
- <dd>Called when the user navigates away from the page.</dd>
-</dl>
-
-<h2 id="Events">Events</h2>
-
-<p>Listen to these events using <code><a href="/en-US/docs/Web/API/EventTarget/addEventListener">addEventListener()</a></code> or by assigning an event listener to the <code>on<em>eventname</em></code> property of this interface.</p>
-
-<dl>
- <dt>{{domxref("Window/error_event", "error")}}</dt>
- <dd>Fired when a resource failed to load, or can't be used. For example, if a script has an execution error or an image can't be found or is invalid.<br>
- Also available via the {{domxref("GlobalEventHandlers/onerror", "onerror")}} property.</dd>
- <dt>{{domxref("Window/languagechange_event", "languagechange")}}</dt>
- <dd>Fired at the global scope object when the user's preferred language changes.<br>
- Also available via the {{domxref("WindowEventHandlers/onlanguagechange", "onlanguagechange")}} property.</dd>
- <dt>{{domxref("Window/orientationchange_event", "orientationchange")}}</dt>
- <dd>Fired when the orientation of the device has changed.<br>
- Also available via the {{domxref("Window/onorientationchange", "onorientationchange")}} property.</dd>
- <dt>{{domxref("Window/devicemotion_event", "devicemotion")}}</dt>
- <dd>Fired at a regular interval, indicating the amount of physical force of acceleration the device is receiving and the rate of rotation, if available.</dd>
- <dt>{{domxref("Window/deviceorientation_event", "deviceorientation")}}</dt>
- <dd>Fired when fresh data is available from the magnetometer orientation sensor about the current orientation of the device as compared to the Earth coordinate frame.</dd>
- <dt><code>{{domxref("Document/defaultView/resize_event", "resize")}}</code></dt>
- <dd>Fired when the window has been resized.<br>
- Also available via the {{domxref("GlobalEventHandlers/onresize", "onresize")}} property.</dd>
- <dt><code>{{domxref("Document/defaultView/storage_event", "storage")}}</code></dt>
- <dd>Fired when a storage area (<code>localStorage</code> or <code>sessionStorage</code>) has been modified in the context of another document.<br>
- Also available via the {{domxref("WindowEventHandlers/onstorage", "onstorage")}} property.</dd>
-</dl>
-
-<h3 id="Animation_events">Animation events</h3>
-
-<dl>
- <dt>{{domxref("Window/animationcancel_event", "animationcancel")}}</dt>
- <dd>Fired when an animation unexpectedly aborts.<br>
- Also available via the {{domxref("GlobalEventHandlers/onanimationcancel", "onanimationcancel")}} property.</dd>
- <dt>{{domxref("Window/animationend_event", "animationend")}}</dt>
- <dd>Fired when an animation has completed normally.<br>
- Also available via the {{domxref("GlobalEventHandlers/onanimationend", "onanimationend")}} property.</dd>
- <dt>{{domxref("Window/animationiteration_event", "animationiteration")}}</dt>
- <dd>Fired when an animation iteration has completed.<br>
- Also available via the {{domxref("GlobalEventHandlers/onanimationiteration", "onanimationiteration")}} property.</dd>
- <dt>{{domxref("Window/animationstart_event", "animationstart")}}</dt>
- <dd>Fired when an animation starts.<br>
- Also available via the {{domxref("GlobalEventHandlers/onanimationstart", "onanimationstart")}} property.</dd>
-</dl>
-
-<h3 id="Clipboard_events">Clipboard events</h3>
-
-<dl>
- <dt>{{domxref("Window/clipboardchange_event", "clipboardchange")}}</dt>
- <dd>Fired when the system clipboard content changes.</dd>
- <dt>{{domxref("Window/copy_event", "copy")}}</dt>
- <dd>Fired when the user initiates a copy action through the browser's user interface.<br>
- Also available via the {{domxref("HTMLElement/oncopy", "oncopy")}} property.</dd>
- <dt>{{domxref("Window/cut_event", "cut")}}</dt>
- <dd>Fired when the user initiates a cut action through the browser's user interface.<br>
- Also available via the {{domxref("HTMLElement/oncut", "oncut")}} property.</dd>
- <dt>{{domxref("Window/paste_event", "paste")}}</dt>
- <dd>Fired when the user initiates a paste action through the browser's user interface.<br>
- Also available via the {{domxref("HTMLElement/onpaste", "onpaste")}} property.</dd>
-</dl>
-
-<h3 id="Connection_events">Connection events</h3>
-
-<dl>
- <dt>{{domxref("Window/offline_event", "offline")}}</dt>
- <dd>Fired when the browser has lost access to the network and the value of <code>navigator.onLine</code> has switched to <code>false</code>.<br>
- Also available via the {{domxref("WindowEventHandlers.onoffline", "onoffline")}} property.</dd>
- <dt>{{domxref("Window/online_event", "online ")}}</dt>
- <dd>Fired when the browser has gained access to the network and the value of <code>navigator.onLine</code> has switched to <code>true</code>.<br>
- Also available via the {{domxref("WindowEventHandlers.ononline", "ononline")}} property.</dd>
-</dl>
-
-<h3 id="Focus_events">Focus events</h3>
-
-<dl>
- <dt>{{domxref("Window/blur_event", "blur")}}</dt>
- <dd>Fired when an element has lost focus.<br>
- Also available via the {{domxref("GlobalEventHandlers/onblur", "onblur")}} property.</dd>
- <dt>{{domxref("Window/focus_event", "focus")}}</dt>
- <dd>Fired when an element has gained focus.<br>
- Also available via the {{domxref("GlobalEventHandlers/onfocus", "onfocus")}} property</dd>
-</dl>
-
-<h3 id="Gamepad_events">Gamepad events</h3>
-
-<dl>
- <dt>{{domxref("Window/gamepadconnected_event", "gamepadconnected")}}</dt>
- <dd>Fired when the browser detects that a gamepad has been connected or the first time a button/axis of the gamepad is used.<br>
- Also available via the {{domxref("Window/ongamepadconnected", "ongamepadconnected")}} property.</dd>
- <dt>{{domxref("Window/gamepaddisconnected_event", "gamepaddisconnected")}}</dt>
- <dd>Fired when the browser detects that a gamepad has been disconnected.<br>
- Also available via the {{domxref("Window/ongamepaddisconnected", "ongamepaddisconnected")}} property</dd>
-</dl>
-
-<h3 id="History_events">History events</h3>
-
-<dl>
- <dt>{{domxref("Window/hashchange_event", "hashchange")}}</dt>
- <dd>Fired when the fragment identifier of the URL has changed (the part of the URL beginning with and following the <code>#</code> symbol).<br>
- Also available via the {{domxref("WindowEventHandlers/onhashchange", "onhashchange")}} property.</dd>
- <dt>{{domxref("Window/pagehide_event", "pagehide")}}</dt>
- <dd>Sent when the browser hides the current document while in the process of switching to displaying in its place a different document from the session's history. This happens, for example, when the user clicks the Back button or when they click the Forward button to move ahead in session history.<br>
- Also available through the <code><a href="/en-US/docs/Mozilla/Tech/XUL/Attribute/onpagehide">onpagehide</a></code> event handler property.</dd>
- <dt>{{domxref("Window/pageshow_event", "pageshow")}}</dt>
- <dd>Sent when the browser makes the document visible due to navigation tasks, including not only when the page is first loaded, but also situations such as the user navigating back to the page after having navigated to another within the same tab.<br>
- Also available using the <code><a href="/en-US/docs/Mozilla/Tech/XUL/Attribute/onpageshow">onpageshow</a></code> event handler property.</dd>
- <dt><code>{{domxref("Document/defaultView/popstate_event", "popstate")}}</code></dt>
- <dd>Fired when the active history entry changes.<br>
- Also available using the {{domxref("WindowEventHandlers/onpopstate", "onpopstate")}} event handler property.</dd>
-</dl>
-
-<h3 id="Load_unload_events">Load &amp; unload events</h3>
-
-<dl>
- <dt>{{domxref("Window/beforeunload_event", "beforeunload")}}</dt>
- <dd>Fired when the window, the document and its resources are about to be unloaded.<br>
- Also available via the {{domxref("WindowEventHandlers/onbeforeunload", "onbeforeunload")}} property.</dd>
- <dt>{{domxref("Window/DOMContentLoaded_event", "DOMContentLoaded")}}</dt>
- <dd>Fired when the document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.</dd>
- <dt>{{domxref("Window/load_event", "load")}}</dt>
- <dd>Fired when the whole page has loaded, including all dependent resources such as stylesheets images.<br>
- Also available via the {{domxref("GlobalEventHandlers/onload", "onload")}} property.</dd>
- <dt>{{domxref("Window/unload_event", "unload")}}</dt>
- <dd>Fired when the document or a child resource is being unloaded.<br>
- Also available via the {{domxref("WindowEventHandlers/onunload", "onunload")}} property.</dd>
-</dl>
-
-<h3 id="Manifest_events">Manifest events</h3>
-
-<dl>
- <dt>{{domxref("Window/appinstalled_event", "appinstalled")}}</dt>
- <dd>Fired when the browser has successfully installed a page as an application.<br>
- Also available via the {{domxref("Window/onappinstalled", "onappinstalled")}} property.</dd>
- <dt>{{domxref("Window/beforeinstallprompt_event", "beforeinstallprompt")}}</dt>
- <dd>Fired when a user is about to be prompted to install a web application.<br>
- Also available via the {{domxref("Window/onbeforeinstallprompt", "onbeforeinstallprompt")}} property.</dd>
-</dl>
-
-<h3 id="Messaging_events">Messaging events</h3>
-
-<dl>
- <dt>{{domxref("Window/message_event", "message")}}</dt>
- <dd>Fired when the window receives a message, for example from a call to {{domxref("Window/postMessage", "Window.postMessage()")}} from another browsing context.<br>
- Also available via the {{domxref("WindowEventHandlers/onmessage", "onmessage")}} property.</dd>
- <dt>{{domxref("Window/messageerror_event", "messageerror")}}</dt>
- <dd>Fired when a <code>Window</code> object receives a message that can't be deserialized.<br>
- Also available via the {{domxref("WindowEventHandlers/onmessageerror", "onmessageerror")}} property.</dd>
-</dl>
-
-<h3 id="Print_events">Print events</h3>
-
-<dl>
- <dt>{{domxref("Window/afterprint_event", "afterprint")}}</dt>
- <dd>Fired after the associated document has started printing or the print preview has been closed.<br>
- Also available via the {{domxref("WindowEventHandlers/onafterprint", "onafterprint")}} property.</dd>
- <dt>{{domxref("Window/beforeprint_event", "beforeprint")}}</dt>
- <dd>Fired when the associated document is about to be printed or previewed for printing.<br>
- Also available via the {{domxref("WindowEventHandlers/onbeforeprint", "onbeforeprint")}} property.</dd>
-</dl>
-
-<h3 id="Promise_rejection_events">Promise rejection events</h3>
-
-<dl>
- <dt>{{domxref("Window/rejectionhandled_event", "rejectionhandled")}}</dt>
- <dd>Sent every time a JavaScript {{jsxref("Promise")}} is rejected, regardless of whether or not there is a handler in place to catch the rejection.<br>
- Also available through the {{domxref("WindowEventHandlers/onrejectionhandled", "onrejectionhandled")}} event handler property.</dd>
- <dt>{{domxref("Window/unhandledrejection_event", "unhandledrejection")}}</dt>
- <dd>Sent when a JavaScript {{jsxref("Promise")}} is rejected but there is no handler in place to catch the rejection.<br>
- Also available using the {{domxref("WindowEventHandlers/onunhandledrejection", "onunhandledrejection")}} event handler property.</dd>
-</dl>
-
-<h3 id="Transition_events">Transition events</h3>
-
-<dl>
- <dt>{{domxref("Window/transitioncancel_event", "transitioncancel")}}</dt>
- <dd>Fired when a <a href="/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> is canceled.<br>
- Also available via the {{domxref("GlobalEventHandlers/ontransitioncancel", "ontransitioncancel")}} property.</dd>
- <dt>{{domxref("Window/transitionend_event", "transitionend")}}</dt>
- <dd>Fired when a <a href="/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> has completed.<br>
- Also available via the {{domxref("GlobalEventHandlers/ontransitionend", "ontransitionend")}} property.</dd>
- <dt>{{domxref("Window/transitionrun_event", "transitionrun")}}</dt>
- <dd>Fired when a <a href="/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> is first created.<br>
- Also available via the {{domxref("GlobalEventHandlers/ontransitionrun", "ontransitionrun")}} property.</dd>
- <dt>{{domxref("Window/transitionstart_event", "transitionstart")}}</dt>
- <dd>Fired when a <a href="/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> has actually started.<br>
- Also available via the {{domxref("GlobalEventHandlers/ontransitionstart", "ontransitionstart")}} property.</dd>
-</dl>
-
-<h3 id="WebVR_events">WebVR events</h3>
-
-<dl>
- <dt>{{domxref("Window/vrdisplayactivate_event", "vrdisplayactivate")}}</dt>
- <dd>Fired when a VR display becomes available to be presented to, for example if an HMD has been moved to bring it out of standby, or woken up by being put on.<br>
- Also available via the {{domxref("Window/onvrdisplayactivate", "onvrdisplayactivate")}} property.</dd>
- <dt>{{domxref("Window/vrdisplayblur_event", "vrdisplayblur")}}</dt>
- <dd>Fired when presentation to a VR display has been paused for some reason by the browser, OS, or VR hardware.<br>
- Also available via the {{domxref("Window/onvrdisplayblur", "onvrdisplayblur")}} property.</dd>
- <dt>{{domxref("Window/vrdisplayconnect_event", "vrdisplayconnect")}}</dt>
- <dd>Fired when a compatible VR display is connected to the computer.<br>
- Also available via the {{domxref("Window/onvrdisplayconnect", "onvrdisplayconnect")}} property.</dd>
- <dt>{{domxref("Window/vrdisplaydeactivate_event", "vrdisplaydeactivate")}}</dt>
- <dd>Fired when a VR display can no longer be presented to, for example if an HMD has gone into standby or sleep mode due to a period of inactivity.<br>
- Also available via the {{domxref("Window/onvrdisplaydeactivate", "onvrdisplaydeactivate")}} property.</dd>
- <dt>{{domxref("Window/vrdisplaydisconnect_event", "vrdisplaydisconnect")}}</dt>
- <dd>Fired when a compatible VR display is disconnected from the computer.<br>
- Also available via the {{domxref("Window/onvrdisplaydisconnect", "onvrdisplaydisconnect")}} property.</dd>
- <dt>{{domxref("Window/vrdisplayfocus_event", "vrdisplayfocus")}}</dt>
- <dd>Fired when presentation to a VR display has resumed after being blurred.<br>
- Also available via the {{domxref("Window/onvrdisplayfocus", "onvrdisplayfocus")}} property.</dd>
- <dt>{{domxref("Window/vrdisplaypresentchange_event", "vrdisplaypresentchange")}}</dt>
- <dd>Fired when the presenting state of a VR display changes — i.e. goes from presenting to not presenting, or vice versa.<br>
- Also available via the {{domxref("Window/onvrdisplaypresentchange", "onvrdisplaypresentchange")}} property.</dd>
- <dt>{{domxref("Window/vrdisplaypointerrestricted_event", "vrdisplaypointerrestricted")}}</dt>
- <dd>Fired when the VR display's pointer input is restricted to consumption via a <a href="/en-US/docs/Web/API/Pointer_Lock_API">pointerlocked element</a>.<br>
- Also available via the {{domxref("Window/onvrdisplaypointerrestricted", "onvrdisplaypointerrestricted")}} property.</dd>
- <dt>{{domxref("Window/vrdisplaypointerunrestricted_event", "vrdisplaypointerunrestricted")}}</dt>
- <dd>Fired when the VR display's pointer input is no longer restricted to consumption via a <a href="/en-US/docs/Web/API/Pointer_Lock_API">pointerlocked element</a>.<br>
- Also available via the {{domxref("Window/onvrdisplaypointerunrestricted", "onvrdisplaypointerunrestricted")}} property.</dd>
-</dl>
-
-<h2 id="Interfaces">Interfaces</h2>
-
-<p>See <a href="/en-US/docs/DOM/DOM_Reference" title="/en-US/docs/DOM/DOM_Reference">DOM Reference</a>.</p>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.Window")}}</p>
diff --git a/files/ar/web/api/xsltprocessor/basic_example/index.html b/files/ar/web/api/xsltprocessor/basic_example/index.html
deleted file mode 100644
index 19e3b75c8f..0000000000
--- a/files/ar/web/api/xsltprocessor/basic_example/index.html
+++ /dev/null
@@ -1,57 +0,0 @@
----
-title: مثال XSLT أساسي
-slug: Web/API/XSLTProcessor/Basic_Example
-tags:
- - XSLT
- - xsl
-translation_of: Web/API/XSLTProcessor/Basic_Example
----
-<h2 dir="rtl" id="Basic_Example" name="Basic_Example">مثال أساسي</h2>
-
-<p dir="rtl">يوضح المثال الأول أساسيات تفعيل محول XSLT في المتصفح. سوف يقوم المثال على ملف XML يحتوي على معلومات (العنوان - قائمة المؤلفين - المحتوى) عن مقال. ثم يقوم بعرضه بهيئة صالحة للقراءة.</p>
-
-<p dir="rtl">يبين الشكل ١ مثال على شكل ملف المصدر الأساسي لـ XSLT. يحتوي ملف XML  (example.xml) على معلومات حول المقال. وباستخدام أمر المعالجة <code>?xml-stylesheet?</code> يتم ربط ملف example.xml بملف XSLT عن طريق صفة href.</p>
-
-<p dir="rtl">تبدأ صحيفة أنماط XSLT بالمكون <code>xsl:stylesheet</code> الذي يحوي كل القوالب المستخدمة في إنشاء المُخرَج المطلوب. يحتوي المثال في الشكل ١ على قالبين، أحدهما يُطَبَّق على عقدة التَفَرُّع الرئيسية والآخر يُطَبَّق على عقدة <code>Author</code>. يقوم القالب الذي يُطَبَّق على عقدة التَفَرُّع الرئيسية بإخراج عنوان المقال، ثم يقوم بعدها باستدعاء باقي القوالب (عن طريق <code>apply-templates</code>) التي تطابق عقدة <code>Author</code> وتكون فرعية عنها.</p>
-
-<p dir="rtl">الشكل ١: مثال XSLT بسيط</p>
-
-<p dir="rtl">ملف XML (example.xml):</p>
-
-<pre class="brush:xml">&lt;?xml version="1.0"?&gt;
-&lt;?xml-stylesheet type="text/xsl" href="example.xsl"?&gt;
-&lt;Article&gt;
- &lt;Title&gt;مقالي&lt;/Title&gt;
- &lt;Authors&gt;
- &lt;Author&gt;السيد أحمد&lt;/Author&gt;
- &lt;Author&gt;السيد محمد&lt;/Author&gt;
- &lt;/Authors&gt;
- &lt;Body&gt;هنا محتوي مقالي.&lt;/Body&gt;
-&lt;/Article&gt;</pre>
-
-<p style="direction: rtl;">صحيفة أنماط XSL (example.xsl):</p>
-
-<pre class="brush:xml">&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
-
- &lt;xsl:output method="text"/&gt;
-
- &lt;xsl:template match="/"&gt;
- Article - &lt;xsl:value-of select="/Article/Title"/&gt;
- Authors: &lt;xsl:apply-templates select="/Article/Authors/Author"/&gt;
- &lt;/xsl:template&gt;
-
- &lt;xsl:template match="Author"&gt;
- - &lt;xsl:value-of select="." /&gt;
- &lt;/xsl:template&gt;
-
-&lt;/xsl:stylesheet&gt;</pre>
-
-<p style="direction: rtl;">مُخرَج المتصفح:</p>
-
-<blockquote>
-<p dir="rtl">مقال - مقالي<br>
- المؤلفون:<br>
- - السيد أحمد<br>
- - السيد محمد</p>
-</blockquote>
diff --git a/files/ar/web/api/xsltprocessor/index.html b/files/ar/web/api/xsltprocessor/index.html
deleted file mode 100644
index dbc44795da..0000000000
--- a/files/ar/web/api/xsltprocessor/index.html
+++ /dev/null
@@ -1,138 +0,0 @@
----
-title: XSLTProcessor
-slug: Web/API/XSLTProcessor
-tags:
- - API
- - DOM
- - DOM Reference
- - NeedsTranslation
- - Reference
- - TopicStub
- - XSLT
-translation_of: Web/API/XSLTProcessor
----
-<div>{{Non-standard_header}}{{SeeCompatTable}}{{APIRef("XSLT")}}</div>
-
-<p>An <strong><code>XSLTProcessor</code></strong> applies an <a href="/en-US/docs/Web/XSLT">XSLT</a> stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <code>&lt;xsl:param&gt;</code> parameter values, and to apply the transformation to documents.</p>
-
-<h2 id="Syntax">Syntax</h2>
-
-<p>The constructor has no parameters.</p>
-
-<pre class="syntaxbox">new XSLTProcessor()</pre>
-
-<h2 id="Methods">Methods</h2>
-
-<dl>
- <dt><code><a href="/en-US/docs/Mozilla/WebIDL_bindings#Throws">[Throws]</a> void </code>{{domxref("XSLTProcessor.importStylesheet")}}<code>(</code>{{domxref("Node")}}<code> styleSheet)</code></dt>
- <dd>Imports the XSLT stylesheet. If the given node is a document node, you can pass in a full XSL Transform or a <a class="external" href="http://www.w3.org/TR/xslt#result-element-stylesheet">literal result element transform</a>; otherwise, it must be an <code>&lt;xsl:stylesheet&gt;</code> or <code>&lt;xsl:transform&gt;</code> element.</dd>
- <dt><code><a href="/en-US/docs/Mozilla/WebIDL_bindings#Throws">[Throws]</a> </code>{{domxref("DocumentFragment")}} {{domxref("XSLTProcessor.transformToFragment")}}<code>(</code>{{domxref("Node")}}<code> source, </code>{{domxref("Document")}}<code> owner)</code></dt>
- <dd>Transforms the node source by applying the stylesheet imported using the {{domxref("XSLTProcessor.importStylesheet()")}} function. The owner document of the resulting document fragment is the owner node.</dd>
- <dt><code><a href="/en-US/docs/Mozilla/WebIDL_bindings#Throws">[Throws]</a></code> {{domxref("Document")}} {{domxref("XSLTProcessor.transformToDocument")}}<code>(</code>{{domxref("Node")}}<code> source)</code></dt>
- <dd>
- <p>Transforms the node source applying the stylesheet given importing using the {{domxref("XSLTProcessor.importStylesheet()")}} function.</p>
-
- <p>The resultant object depends on the <a class="external" href="http://www.w3.org/TR/xslt#output">output method</a> of the stylesheet:</p>
-
- <table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Output method</th>
- <th scope="col">Result type</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>html</code></td>
- <td>{{domxref("HTMLDocument")}}</td>
- </tr>
- <tr>
- <td><code>xml</code></td>
- <td>{{domxref("XMLDocument")}}</td>
- </tr>
- <tr>
- <td><code>text</code></td>
- <td>{{domxref("XMLDocument")}} with a single root element <code>&lt;transformiix:result&gt;</code> with the text as a child</td>
- </tr>
- </tbody>
- </table>
- </dd>
- <dt><code><a href="/en-US/docs/Mozilla/WebIDL_bindings#Throws">[Throws]</a> void </code>{{domxref("XSLTProcessor.setParameter")}}<code>(</code>{{jsxref("String")}}<code> namespaceURI, </code>{{jsxref("String")}}<code> localName, any value)</code></dt>
- <dd>Sets a parameter in the XSLT stylesheet that was imported. (Sets the value of an <code>&lt;xsl:param&gt;</code>.) A null value for <code>namespaceURI</code> is treated the same as an empty string.</dd>
- <dt><code><a href="/en-US/docs/Mozilla/WebIDL_bindings#Throws">[Throws]</a> any </code>{{domxref("XSLTProcessor.getParameter")}}<code>(</code>{{jsxref("String")}}<code> namespaceURI, </code>{{jsxref("String")}}<code> localName)</code></dt>
- <dd>Gets the value of a parameter from the XSLT stylesheet. A null value for <code>namespaceURI</code> is treated the same as an empty string.</dd>
- <dt><code><a href="/en-US/docs/Mozilla/WebIDL_bindings#Throws">[Throws]</a> void </code>{{domxref("XSLTProcessor.removeParameter")}}<code>(</code>{{jsxref("String")}}<code> namespaceURI, </code>{{jsxref("String")}}<code> localName)</code></dt>
- <dd>Removes the parameter if it was previously set. This will make the <code>XSLTProcessor</code> use the default value for the parameter as specified in the stylesheet. A null value for <code>namespaceURI</code> is treated the same as an empty string.</dd>
- <dt><code>void </code>{{domxref("XSLTProcessor.clearParameters()")}}</dt>
- <dd>Removes all set parameters from the <code>XSLTProcessor</code>. The <code>XSLTProcessor</code> will then use the defaults specified in the XSLT stylesheet.</dd>
- <dt><code>void </code>{{domxref("XSLTProcessor.reset()")}}</dt>
- <dd>Removes all parameters and stylesheets from the <code>XSLTProcessor</code>.</dd>
-</dl>
-
-<h2 id="Properties">Properties</h2>
-
-<h3 id="Non-Web-exposed_properties">Non-Web-exposed properties</h3>
-
-<p>The following properties are <a href="/en-US/docs/Mozilla/WebIDL_bindings#ChromeOnly"><code>[ChromeOnly]</code></a> and not exposed to Web content:</p>
-
-<dl>
- <dt><code><a href="/en-US/docs/Mozilla/WebIDL_bindings#ChromeOnly">[ChromeOnly]</a> attribute unsigned long </code>{{domxref("XSLTProcessor.flags")}}</dt>
- <dd>
- <p>Flags that tweak the behavior of the processor. Not reset by calling {{domxref("XSLTProcessor.reset()")}}. Default value: <code>0</code></p>
-
- <p>Possible values are:</p>
-
- <table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Name</th>
- <th scope="col">Value</th>
- <th scope="col">Effect</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>(None)</td>
- <td><code>0</code></td>
- <td>None</td>
- </tr>
- <tr>
- <td><code>DISABLE_ALL_LOADS</code></td>
- <td><code>1</code></td>
- <td>Disable loading external documents (via e.g. <code>&lt;xsl:import&gt;</code> and <code>document()</code>)</td>
- </tr>
- </tbody>
- </table>
- </dd>
-</dl>
-
-<h2 id="Examples">Examples</h2>
-
-<ol>
- <li><a href="/en-US/docs/XSLT/XSLT_JS_Interface_in_Gecko/Basic_Example">Basic example</a></li>
- <li><a href="/en-US/docs/XSLT/XSLT_JS_Interface_in_Gecko/Advanced_Example">Advanced example</a></li>
- <li><a href="/en-US/docs/XSLT/XSLT_JS_Interface_in_Gecko/JavaScript_XSLT_Bindings">Additional example</a></li>
-</ol>
-
-<h2 id="Specifications">Specifications</h2>
-
-<p><em>Not part of any specification.</em> This is a proprietary interface that originated in Gecko.</p>
-
-<h2 id="Gecko_IDL">Gecko IDL</h2>
-
-<ul>
- <li><code>{{ Source("dom/webidl/XSLTProcessor.webidl", "XSLTProcessor.webidl") }}</code></li>
- <li><code>{{ Source("dom/xslt/nsIXSLTProcessor.idl", "nsIXSLTProcessor.idl") }}</code></li>
-</ul>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.XSLTProcessor")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations">Using the Mozilla JavaScript interface to XSL Transformations</a></li>
-</ul>