From 816cc4d4a5a318a23222946b6981bb92b499aebb Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Fri, 11 Oct 2024 20:51:34 +0800 Subject: [PATCH] update links: replace DT link with real target (#36302) * update * Update files/en-us/web/html/global_attributes/lang/index.md * Update files/en-us/web/html/global_attributes/lang/index.md * Update files/en-us/web/html/global_attributes/lang/index.md --------- Co-authored-by: Joshua Chen --- files/en-us/web/api/animation/commitstyles/index.md | 4 ++-- .../web/api/css_object_model/css_declaration_block/index.md | 2 +- files/en-us/web/api/document/execcommand/index.md | 2 +- .../web/api/html_drag_and_drop_api/drag_operations/index.md | 6 +++--- files/en-us/web/api/html_drag_and_drop_api/index.md | 2 +- files/en-us/web/api/htmlelement/autocapitalize/index.md | 2 +- files/en-us/web/api/htmlelement/contenteditable/index.md | 2 +- files/en-us/web/api/htmlelement/draggable/index.md | 2 +- files/en-us/web/api/htmlelement/index.md | 4 ++-- files/en-us/web/api/htmlelement/inputmode/index.md | 4 ++-- files/en-us/web/api/htmlelement/iscontenteditable/index.md | 2 +- files/en-us/web/api/htmlelement/spellcheck/index.md | 2 +- files/en-us/web/api/htmlelement/translate/index.md | 2 +- .../web/api/htmlelement/virtualkeyboardpolicy/index.md | 2 +- files/en-us/web/api/htmlimageelement/longdesc/index.md | 2 +- files/en-us/web/api/htmlimageelement/name/index.md | 2 +- files/en-us/web/html/element/b/index.md | 2 +- files/en-us/web/html/element/bdi/index.md | 4 ++-- files/en-us/web/html/element/fieldset/index.md | 2 +- files/en-us/web/html/element/heading_elements/index.md | 2 +- files/en-us/web/html/element/html/index.md | 2 +- files/en-us/web/html/element/i/index.md | 2 +- files/en-us/web/html/element/input/email/index.md | 2 +- files/en-us/web/html/element/input/search/index.md | 2 +- files/en-us/web/html/element/input/text/index.md | 2 +- files/en-us/web/html/element/input/url/index.md | 2 +- files/en-us/web/html/element/label/index.md | 2 +- files/en-us/web/html/element/main/index.md | 4 ++-- files/en-us/web/html/element/select/index.md | 2 +- files/en-us/web/html/element/table/index.md | 2 +- files/en-us/web/html/element/template/index.md | 2 +- files/en-us/web/html/global_attributes/exportparts/index.md | 6 +++--- files/en-us/web/html/global_attributes/id/index.md | 2 +- files/en-us/web/html/global_attributes/itemscope/index.md | 2 +- files/en-us/web/html/global_attributes/lang/index.md | 4 ++-- files/en-us/web/html/global_attributes/translate/index.md | 2 +- 36 files changed, 46 insertions(+), 46 deletions(-) diff --git a/files/en-us/web/api/animation/commitstyles/index.md b/files/en-us/web/api/animation/commitstyles/index.md index 0e90c705a0ab6c6..7a41e4e97440ba8 100644 --- a/files/en-us/web/api/animation/commitstyles/index.md +++ b/files/en-us/web/api/animation/commitstyles/index.md @@ -8,11 +8,11 @@ browser-compat: api.Animation.commitStyles {{APIRef("Web Animations")}} -The `commitStyles()` method of the [Web Animations API](/en-US/docs/Web/API/Web_Animations_API)'s {{domxref("Animation")}} interface writes the [computed values](/en-US/docs/Web/CSS/computed_value) of the animation's current styles into its target element's [`style`](/en-US/docs/Web/HTML/Global_attributes#style) attribute. `commitStyles()` works even if the animation has been [automatically removed](/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API#automatically_removing_filling_animations). +The `commitStyles()` method of the [Web Animations API](/en-US/docs/Web/API/Web_Animations_API)'s {{domxref("Animation")}} interface writes the [computed values](/en-US/docs/Web/CSS/computed_value) of the animation's current styles into its target element's [`style`](/en-US/docs/Web/HTML/Global_attributes/style) attribute. `commitStyles()` works even if the animation has been [automatically removed](/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API#automatically_removing_filling_animations). `commitStyles()` can be used in combination with `fill` to cause the final state of an animation to persist after the animation ends. The same effect could be achieved with `fill` alone, but [using indefinitely filling animations is discouraged](https://drafts.csswg.org/web-animations-1/#fill-behavior). Animations [take precedence over all static styles](/en-US/docs/Web/CSS/Cascade#cascading_order), so an indefinite filling animation can prevent the target element from ever being styled normally. -Using `commitStyles()` writes the styling state into the element's [`style`](/en-US/docs/Web/HTML/Global_attributes#style) attribute, where they can be modified and replaced as normal. +Using `commitStyles()` writes the styling state into the element's [`style`](/en-US/docs/Web/HTML/Global_attributes/style) attribute, where they can be modified and replaced as normal. ## Syntax diff --git a/files/en-us/web/api/css_object_model/css_declaration_block/index.md b/files/en-us/web/api/css_object_model/css_declaration_block/index.md index 4d2075302372463..51ef2ff67d955e6 100644 --- a/files/en-us/web/api/css_object_model/css_declaration_block/index.md +++ b/files/en-us/web/api/css_object_model/css_declaration_block/index.md @@ -20,7 +20,7 @@ Each property and value pairing is known as a [CSS declaration](/en-US/docs/Web/ - owner node - : The {{domxref("element")}} that the CSS declaration block is associated with, otherwise null. - updating flag - - : Set when the CSS declaration block is updating the owner node's [`style`](/en-US/docs/Web/HTML/Global_attributes#style) attribute. + - : Set when the CSS declaration block is updating the owner node's [`style`](/en-US/docs/Web/HTML/Global_attributes/style) attribute. When a {{domxref("CSSStyleDeclaration")}} is returned by a [CSS Object Model (CSSOM)](/en-US/docs/Web/API/CSS_Object_Model) interface these properties are set to appropriate values as defined by the specification. diff --git a/files/en-us/web/api/document/execcommand/index.md b/files/en-us/web/api/document/execcommand/index.md index 1e10bad751ae477..257c564b7966779 100644 --- a/files/en-us/web/api/document/execcommand/index.md +++ b/files/en-us/web/api/document/execcommand/index.md @@ -149,7 +149,7 @@ An example of [how to use execCommand with contentEditable elements](https://cod ### Using insertText -This example shows two very basic HTML editors, one using a {{HTMLElement("textarea")}} element and one using a {{HTMLElement("pre")}} element with the [`contenteditable`](/en-US/docs/Web/HTML/Global_attributes#contenteditable) attribute set. +This example shows two very basic HTML editors, one using a {{HTMLElement("textarea")}} element and one using a {{HTMLElement("pre")}} element with the [`contenteditable`](/en-US/docs/Web/HTML/Global_attributes/contenteditable) attribute set. Clicking the "Bold" or "Italic" buttons inserts the appropriate tags in the element, using `insertText` to preserve the edit history, so the user can undo the action. diff --git a/files/en-us/web/api/html_drag_and_drop_api/drag_operations/index.md b/files/en-us/web/api/html_drag_and_drop_api/drag_operations/index.md index f2600876df5c04c..9cd20ee14e9f8f4 100644 --- a/files/en-us/web/api/html_drag_and_drop_api/drag_operations/index.md +++ b/files/en-us/web/api/html_drag_and_drop_api/drag_operations/index.md @@ -18,7 +18,7 @@ In HTML, apart from the default behavior for images, links, and selections, no o To make other HTML elements draggable, three things must be done: -1. Set the [`draggable`](/en-US/docs/Web/HTML/Global_attributes#draggable) attribute to `"true"` on the element that you wish to make draggable. +1. Set the [`draggable`](/en-US/docs/Web/HTML/Global_attributes/draggable) attribute to `"true"` on the element that you wish to make draggable. 2. Add a listener for the {{domxref("HTMLElement/dragstart_event", "dragstart")}} event. 3. [Set the drag data](/en-US/docs/Web/API/DataTransfer/setData) in the above listener. @@ -36,9 +36,9 @@ draggableElement.addEventListener("dragstart", (event) => ); ``` -The [`draggable`](/en-US/docs/Web/HTML/Global_attributes#draggable) attribute is set to `"true"`, so this element becomes draggable. If this attribute were omitted or set to `"false"`, the element would not be dragged, and instead the text would be selected. +The [`draggable`](/en-US/docs/Web/HTML/Global_attributes/draggable) attribute is set to `"true"`, so this element becomes draggable. If this attribute were omitted or set to `"false"`, the element would not be dragged, and instead the text would be selected. -The [`draggable`](/en-US/docs/Web/HTML/Global_attributes#draggable) attribute may be used on any element, including images and links. However, for these last two, the default value is `true`, so you would only use the [`draggable`](/en-US/docs/Web/HTML/Global_attributes#draggable) attribute with a value of `false` to disable dragging of these elements. +The [`draggable`](/en-US/docs/Web/HTML/Global_attributes/draggable) attribute may be used on any element, including images and links. However, for these last two, the default value is `true`, so you would only use the [`draggable`](/en-US/docs/Web/HTML/Global_attributes/draggable) attribute with a value of `false` to disable dragging of these elements. > [!NOTE] > When an element is made draggable, text or other elements within it can no longer be selected in the normal way by clicking and dragging with the mouse. Instead, the user must hold down the Alt key to select text with the mouse, or use the keyboard. diff --git a/files/en-us/web/api/html_drag_and_drop_api/index.md b/files/en-us/web/api/html_drag_and_drop_api/index.md index a464f6249beeced..34ad718d96cc778 100644 --- a/files/en-us/web/api/html_drag_and_drop_api/index.md +++ b/files/en-us/web/api/html_drag_and_drop_api/index.md @@ -44,7 +44,7 @@ This section is a summary of the basic steps to add drag-and-drop functionality #### Identify what is draggable -Making an element _draggable_ requires adding the [`draggable`](/en-US/docs/Web/HTML/Global_attributes#draggable) attribute and the {{domxref("HTMLElement.dragstart_event","dragstart")}} event handler, as shown in the following code sample: +Making an element _draggable_ requires adding the [`draggable`](/en-US/docs/Web/HTML/Global_attributes/draggable) attribute and the {{domxref("HTMLElement.dragstart_event","dragstart")}} event handler, as shown in the following code sample: ```html