diff --git a/files/en-us/_redirects.txt b/files/en-us/_redirects.txt index 852e7f8287d309f..303577eef0e7095 100644 --- a/files/en-us/_redirects.txt +++ b/files/en-us/_redirects.txt @@ -1887,7 +1887,7 @@ /en-US/docs/DOM/document.baseURIObject /en-US/docs/Web/API/Node /en-US/docs/DOM/document.bgColor /en-US/docs/Web/API/Document/bgColor /en-US/docs/DOM/document.body /en-US/docs/Web/API/Document/body -/en-US/docs/DOM/document.caretPositionFromPoint /en-US/docs/Web/API/DocumentOrShadowRoot/caretPositionFromPoint +/en-US/docs/DOM/document.caretPositionFromPoint /en-US/docs/Web/API/Document/caretPositionFromPoint /en-US/docs/DOM/document.characterSet /en-US/docs/Web/API/document/characterSet /en-US/docs/DOM/document.clear /en-US/docs/Web/API/Document/clear /en-US/docs/DOM/document.close /en-US/docs/Web/API/Document/close @@ -7555,6 +7555,7 @@ /en-US/docs/Web/API/DocumentFragment/firstElementChild /en-US/docs/Web/API/ParentNode/firstElementChild /en-US/docs/Web/API/DocumentFragment/lastElementChild /en-US/docs/Web/API/ParentNode/lastElementChild /en-US/docs/Web/API/DocumentOrShadowRoot/activeElement /en-US/docs/Web/API/Document/activeElement +/en-US/docs/Web/API/DocumentOrShadowRoot/caretPositionFromPoint /en-US/docs/Web/API/Document/caretPositionFromPoint /en-US/docs/Web/API/DocumentOrShadowRoot/fullscreenElement /en-US/docs/Web/API/Document/fullscreenElement /en-US/docs/Web/API/DocumentOrShadowRoot/getAnimations /en-US/docs/Web/API/Document/getAnimations /en-US/docs/Web/API/DocumentOrShadowRoot/getSelection /en-US/docs/Web/API/Document/getSelection @@ -9263,7 +9264,7 @@ /en-US/docs/Web/API/document.async /en-US/docs/Web/API/XMLDocument/async /en-US/docs/Web/API/document.bgColor /en-US/docs/Web/API/Document/bgColor /en-US/docs/Web/API/document.body /en-US/docs/Web/API/Document/body -/en-US/docs/Web/API/document.caretPositionFromPoint /en-US/docs/Web/API/DocumentOrShadowRoot/caretPositionFromPoint +/en-US/docs/Web/API/document.caretPositionFromPoint /en-US/docs/Web/API/Document/caretPositionFromPoint /en-US/docs/Web/API/document.characterSet /en-US/docs/Web/API/document/characterSet /en-US/docs/Web/API/document.clear /en-US/docs/Web/API/Document/clear /en-US/docs/Web/API/document.close /en-US/docs/Web/API/Document/close @@ -9353,7 +9354,6 @@ /en-US/docs/Web/API/document.write /en-US/docs/Web/API/Document/write /en-US/docs/Web/API/document.writeln /en-US/docs/Web/API/Document/writeln /en-US/docs/Web/API/document.xmlVersion /en-US/docs/Web/API/Document/xmlVersion -/en-US/docs/Web/API/document/caretPositionFromPoint /en-US/docs/Web/API/DocumentOrShadowRoot/caretPositionFromPoint /en-US/docs/Web/API/document/mozFullScreen /en-US/docs/Web/API/Document/fullscreen /en-US/docs/Web/API/document/nodePrincipal /en-US/docs/Web/API/Node /en-US/docs/Web/API/dummyDocument.scripts /en-US/docs/Web/API/Document/scripts @@ -11898,7 +11898,7 @@ /en-US/docs/cancelBubble /en-US/docs/Web/API/UIEvent/cancelBubble /en-US/docs/cancelable /en-US/docs/Web/API/Event/cancelable /en-US/docs/caption /en-US/docs/Web/HTML/Element/caption -/en-US/docs/caret_temp /en-US/docs/Web/API/DocumentOrShadowRoot/caretPositionFromPoint +/en-US/docs/caret_temp /en-US/docs/Web/API/Document/caretPositionFromPoint /en-US/docs/ccache /en-US/docs/Mozilla/Developer_guide/Build_Instructions/ccache /en-US/docs/ccs_temp /en-US/docs/Web/API/Document/createCDATASection /en-US/docs/cellPadding /en-US/docs/Web/API/HTMLTableElement/cellPadding diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index b20ad9bf66ba63d..4599e516f2ae624 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -44289,17 +44289,6 @@ "david_ross" ] }, - "Web/API/DocumentOrShadowRoot/caretPositionFromPoint": { - "modified": "2020-10-15T21:49:27.908Z", - "contributors": [ - "mfluehr", - "myakura", - "fscholz", - "chrisdavidmills", - "david_ross", - "jpmedley" - ] - }, "Web/API/DocumentOrShadowRoot/elementFromPoint": { "modified": "2020-10-15T21:49:27.541Z", "contributors": [ @@ -165787,5 +165776,16 @@ "bede", "david_ross" ] + }, + "Web/API/Document/caretPositionFromPoint": { + "modified": "2020-10-15T21:49:27.908Z", + "contributors": [ + "mfluehr", + "myakura", + "fscholz", + "chrisdavidmills", + "david_ross", + "jpmedley" + ] } } \ No newline at end of file diff --git a/files/en-us/mozilla/firefox/releases/20/index.html b/files/en-us/mozilla/firefox/releases/20/index.html index 2d23f470a1ddef2..74779ebc1b54f64 100644 --- a/files/en-us/mozilla/firefox/releases/20/index.html +++ b/files/en-us/mozilla/firefox/releases/20/index.html @@ -49,7 +49,7 @@
CSS.supports()
method has been added, behind the layout.css.supports-rule.enabled
pref (off by default) ({{bug("779917")}}).Navigator.mozGetUserMedia
is now activated by default.transfer
argument of {{domxref("Window.postMessage")}} is now supported. It allows to transfer a sequence of {{domxref("Transferable")}} objects to the destination ({{bug("822094")}}).{{SeeCompatTable}} {{ APIRef("CSSOM") }}
-The CaretPosition
interface represents the caret position, an indicator for the text insertion point. You can get a CaretPosition
using the {{domxref("DocumentOrShadowRoot/caretPositionFromPoint", "document.caretPositionFromPoint()")}} method.
The CaretPosition
interface represents the caret position, an indicator for the text insertion point. You can get a CaretPosition
using the {{domxref("Document.caretPositionFromPoint()")}} method.
{{APIRef("CSSOM View")}}{{SeeCompatTable}}
+{{APIRef("CSSOM View")}} {{SeeCompatTable}}
The caretPositionFromPoint()
- property of the {{domxref("DocumentOrShadowRoot")}} interface returns a
+ property of the {{domxref("Document")}} interface returns a
{{domxref('CaretPosition')}} object, containing the DOM node, along with the caret and
caret's character offset within that node.
var caretPosition = document.caretPositionFromPoint(float x, float y);+ class="brush: js">caretPositionFromPoint(x, y);
{{Compat("api.DocumentOrShadowRoot.caretPositionFromPoint")}}
+{{Compat("api.Document.caretPositionFromPoint")}}
+ + +The Document
interface includes the following methods defined on the {{DOMxRef("DocumentOrShadowRoot")}} mixin. Note that this is currently only implemented by Chrome; other browsers still implement them on the {{DOMxRef("Document")}} interface.
null
.
If you need to find the specific position inside the element, use - {{domxref("DocumentOrShadowRoot.caretPositionFromPoint")}}.
+ {{domxref("Document.caretPositionFromPoint()")}}.