Skip to content

[pt-br] Replace {{domxref}} with {{jsxref}} for DOMString and USVString#36177

Merged
caugner merged 1 commit into
mainfrom
migrate-domstring-usvstring-to-string-pt-br
May 22, 2026
Merged

[pt-br] Replace {{domxref}} with {{jsxref}} for DOMString and USVString#36177
caugner merged 1 commit into
mainfrom
migrate-domstring-usvstring-to-string-pt-br

Conversation

@caugner

@caugner caugner commented May 22, 2026

Copy link
Copy Markdown
Contributor

Description

Replace {{domxref("DOMString")}} and {{domxref("USVString")}} (and case variants like DOMxRef, DOMXref) with {{jsxref("String")}} across the pt-br locale, preserving any translated display text.

Motivation

Make the pt-br translated content match the English convention — content/ has 0 remaining {{domxref("DOMString")}} / {{domxref("USVString")}} calls and uses {{jsxref("String")}} (180 occurrences) instead.

Avoid emitting templ-redirected-link / templ-broken-link flaws for these macros: the Web/API/DOMString and Web/API/USVString pages either redirect to the JavaScript String page (or a conflicting/ stub of it) or are missing entirely in some locales.

Additional details

96 files changed.

Measured against mdn/rari#715, domxref-attributed flaws in pt-br drop from 957776 (Δ −181).

The substitution preserves translated display text: e.g. {{domxref("DOMString", "<translated label>")}}{{jsxref("String", "<translated label>")}}.

Related issues and pull requests

Part of a per-locale split; see also the sibling PRs for the other 6 locales.

Related to mdn/rari#715.

…nd `USVString`

Migrate `{{domxref("DOMString")}}` and `{{domxref("USVString")}}` (and case variants like `DOMxRef`, `DOMXref`) to `{{jsxref("String")}}`, preserving any translated display text.
@github-actions github-actions Bot added the l10n-pt-br Issues related to Brazilian Portuguese label May 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor
Preview URLs (96 pages)
Flaws (261)

Note! 51 documents with no flaws that don't need to be listed. 🎉

Found an unexpected or unresolvable flaw? Please report it here.

URL: /pt-BR/docs/conflicting/Web/API/AnimationEvent/AnimationEvent
Title: AnimationEvent.initAnimationEvent()
Flaw count: 3

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/Boolean which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/Boolean which is a redirect
  • unknown:
    • Invalid slug for templ/sidebar: conflicting/Web/API/AnimationEvent/AnimationEvent

URL: /pt-BR/docs/conflicting/Web/API/HTMLSlotElement
Title: HTMLContentElement
Flaw count: 6

  • macros:
    • Macro htmlelement produces link /pt-BR/docs/Web/HTML/Reference/Elements/content which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/HTMLContentElement/select which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/HTMLContentElement/getDistributedNodes which is a redirect
    • Macro glossary produces link /pt-BR/docs/Glossary/distributed_nodes which doesn't resolve
    • Macro htmlelement produces link /pt-BR/docs/Web/HTML/Reference/Elements/content which doesn't resolve
  • unknown:
    • Invalid slug for templ/sidebar: conflicting/Web/API/HTMLSlotElement

URL: /pt-BR/docs/conflicting/Web/API/HTMLSlotElement_ded38e17cacb3809f7af4fec22adcc56
Title: HTMLContentElement.select
Flaw count: 1

  • unknown:
    • Invalid slug for templ/sidebar: conflicting/Web/API/HTMLSlotElement_ded38e17cacb3809f7af4fec22adcc56

URL: /pt-BR/docs/conflicting/Web/JavaScript/Reference/Global_Objects/String
Title: DOMString
Flaw count: 2

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/CSSOMString which is a redirect
  • unknown:
    • Invalid slug for templ/sidebar: conflicting/Web/JavaScript/Reference/Global_Objects/String

URL: /pt-BR/docs/Web/API/AnimationEvent
Title: AnimationEvent
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/AnimationEvent/initAnimationEvent which is a redirect

URL: /pt-BR/docs/Web/API/Attr/localName
Title: Attr.localName
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/Node/localName which is a redirect

URL: /pt-BR/docs/Web/API/Blob/Blob
Title: Blob
Flaw count: 2

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/ArrayBufferView which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/BlobBuilder which is a redirect

URL: /pt-BR/docs/Web/API/BroadcastChannel
Title: BroadcastChannel
Flaw count: 3

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/BroadcastChannel/onmessage which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/BroadcastChannel/onmessageerror which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/MessageError which doesn't resolve

URL: /pt-BR/docs/Web/API/CharacterData
Title: CharacterData
Flaw count: 7

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/ChildNode which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/NonDocumentTypeChildNode which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/NonDocumentTypeChildNode/previousElementSibling which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/ChildNode which doesn't resolve
    • and 2 more flaws omitted

URL: /pt-BR/docs/Web/API/CloseEvent
Title: CloseEvent
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/CloseEvent/initCloseEvent which is a redirect

URL: /pt-BR/docs/Web/API/Document_Object_Model
Title: Modelo de Objeto de Documento (DOM)
Flaw count: 69

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/ChildNode which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/DOMTimeStamp which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/DOMSettableTokenList which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/NodeFilter which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/ParentNode which doesn't resolve
    • and 64 more flaws omitted

URL: /pt-BR/docs/Web/API/DOMStringList
Title: DOMStringList
Flaw count: 1

  • broken_links:
    • Link /en-US/DOM/DOMString doesn't resolve

URL: /pt-BR/docs/Web/API/Element
Title: Element
Flaw count: 27

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/ParentNode which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/ChildNode which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/NonDocumentTypeChildNode which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/Animatable which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/ParentNode/childElementCount which is a redirect
    • and 22 more flaws omitted

URL: /pt-BR/docs/Web/API/Element/getElementsByClassName
Title: Element.getElementsByClassName()
Flaw count: 1

  • macros:
    • Macro jsxref produces link /pt-BR/docs/Web/JavaScript/Reference/Array.prototype which doesn't resolve

URL: /pt-BR/docs/Web/API/Element/mousedown_event
Title: mousedown
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/WindowProxy which doesn't resolve

URL: /pt-BR/docs/Web/API/Element/mouseenter_event
Title: mouseenter
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/WindowProxy which doesn't resolve

URL: /pt-BR/docs/Web/API/EventSource
Title: EventSource
Flaw count: 4

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/Boolean which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/EventSource/onerror which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/EventSource/onmessage which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/EventSource/onopen which is a redirect

URL: /pt-BR/docs/Web/API/FormData/get
Title: FormData.get()
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/FormDataEntryValue which is a redirect

URL: /pt-BR/docs/Web/API/FormData/getAll
Title: FormData.getAll()
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/FormDataEntryValue which is a redirect

URL: /pt-BR/docs/Web/API/FormData/has
Title: FormData.has()
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/Boolean which is a redirect

URL: /pt-BR/docs/Web/API/GeolocationPositionError
Title: PositionError
Flaw count: 3

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/PositionError/code which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/PositionOptions/timeout which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/PositionError/message which is a redirect

URL: /pt-BR/docs/Web/API/HTML_Drag_and_Drop_API
Title: Arrastar e soltar
Flaw count: 11

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/GlobalEventHandlers/ondrag which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/GlobalEventHandlers/ondragend which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/GlobalEventHandlers/ondragenter which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/GlobalEventHandlers/ondragexit which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/GlobalEventHandlers/ondragleave which is a redirect
    • and 6 more flaws omitted

URL: /pt-BR/docs/Web/API/HTMLCanvasElement/getContext
Title: HTMLCanvasElement.getContext()
Flaw count: 2

  • macros:
    • Macro jsxref produces link /pt-BR/docs/Web/JavaScript/Reference/Global_Objects/null which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/RenderingContext which doesn't resolve

URL: /pt-BR/docs/Web/API/HTMLMediaElement/abort_event
Title: abort
Flaw count: 3

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/Boolean which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/Boolean which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/WindowProxy which doesn't resolve

URL: /pt-BR/docs/Web/API/HTMLOptionElement/Option
Title: Option()
Flaw count: 2

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/Boolean which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/Boolean which is a redirect

URL: /pt-BR/docs/Web/API/Location
Title: Location
Flaw count: 16

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/URLUtils which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/URLUtils/href which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/URLUtils/protocol which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/URLUtils/host which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/URLUtils/hostname which doesn't resolve
    • and 11 more flaws omitted

URL: /pt-BR/docs/Web/API/Node
Title: Node
Flaw count: 13

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/Notation which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/Entity which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/EntityReference which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/Node/baseURIObject which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/Node/nodePrincipal which is a redirect
    • and 8 more flaws omitted

URL: /pt-BR/docs/Web/API/Node/baseURI
Title: Node.baseURI
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/Node/baseURIObject which is a redirect

URL: /pt-BR/docs/Web/API/Request
Title: Request
Flaw count: 17

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/Request/context which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/Body which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/Body/body which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/Body/bodyUsed which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/Boolean which is a redirect
    • and 12 more flaws omitted

URL: /pt-BR/docs/Web/API/Request/Request
Title: Request()
Flaw count: 4

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/ByteString which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/BufferSource which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/GlobalFetch/fetch which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/Body/blob which is a redirect

URL: /pt-BR/docs/Web/API/Response
Title: Response
Flaw count: 16

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/GlobalFetch/fetch which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/Response/useFinalURL which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/Body which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/Body/body which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/Body/bodyUsed which is a redirect
    • and 11 more flaws omitted

URL: /pt-BR/docs/Web/API/RTCIceTransport
Title: RTCIceTransport
Flaw count: 6

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/RTCIceGathererState which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/RTCIceRole which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/RTCIceTransportState which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/RTCIceTransport/ongatheringstatechange which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/RTCIceTransport/onselectedcandidatepairchange which is a redirect
    • and 1 more flaws omitted

URL: /pt-BR/docs/Web/API/ServiceWorkerContainer/register
Title: ServiceWorkerContainer.register()
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/Promise which is a redirect

URL: /pt-BR/docs/Web/API/SubtleCrypto/deriveKey
Title: SubtleCrypto.deriveKey()
Flaw count: 2

  • macros:
    • Macro jsxref produces link /pt-BR/docs/Web/JavaScript/Reference/ArrayBufferView which doesn't resolve
    • Macro glossary produces link /pt-BR/docs/Glossary/verification which doesn't resolve

URL: /pt-BR/docs/Web/API/URL
Title: URL
Flaw count: 3

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/URL/createObjectURL which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/URL/revokeObjectURL which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/URL/createObjectURL which is a redirect

URL: /pt-BR/docs/Web/API/URL/createObjectURL_static
Title: URL.createObjectURL()
Flaw count: 4

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/URL/revokeObjectURL which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/URL/revokeObjectURL which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/URL/createObjectURL which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/URL/revokeObjectURL which is a redirect

URL: /pt-BR/docs/Web/API/URL/revokeObjectURL_static
Title: URL.revokeObjectURL()
Flaw count: 3

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/URL/createObjectURL which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/URL/createObjectURL which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/URL/createObjectURL which is a redirect

URL: /pt-BR/docs/Web/API/URLSearchParams/values
Title: URLSearchParams.values()
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/URLUtils which doesn't resolve

URL: /pt-BR/docs/Web/API/WebSocket
Title: WebSocket
Flaw count: 4

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/EventListener which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/EventListener which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/EventListener which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/EventListener which is a redirect

URL: /pt-BR/docs/Web/API/Window/fetch
Title: fetch()
Flaw count: 3

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/fetch which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/fetch which is a redirect
    • Macro domxref produces link /pt-BR/docs/Web/API/BufferSource which doesn't resolve

URL: /pt-BR/docs/Web/API/XMLHttpRequest/send
Title: XMLHttpRequest.send()
Flaw count: 2

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/BufferSource which doesn't resolve
    • Macro domxref produces link /pt-BR/docs/Web/API/ArrayBufferView which is a redirect

URL: /pt-BR/docs/Web/HTML/Reference/Elements/input/button
Title: <input type="button">
Flaw count: 1

  • macros:
    • Macro domxref produces link /pt-BR/docs/Web/API/WindowTimers/setTimeout which is a redirect

URL: /pt-BR/docs/Web/HTML/Reference/Elements/input/password
Title: <input type="password">
Flaw count: 2

  • macros:
    • Macro glossary produces link /pt-BR/docs/Glossary/agente_de_usuário which doesn't resolve
    • Macro glossary produces link /pt-BR/docs/Glossary/OS which doesn't resolve

URL: /pt-BR/docs/Web/HTML/Reference/Elements/input/range
Title: <input type="range">
Flaw count: 3

  • unknown:
    • Error opening /home/runner/work/translated-content/translated-content/files/pt-br/web/html/reference/elements/input/range/macslider-plain.png: No such file or directory (os error 2)
    • Error opening /home/runner/work/translated-content/translated-content/files/pt-br/web/html/reference/elements/input/range/macslider-ticks.png: No such file or directory (os error 2)
    • Error opening /home/runner/work/translated-content/translated-content/files/pt-br/web/html/reference/elements/input/range/macslider-labels.png: No such file or directory (os error 2)

URL: /pt-BR/docs/Web/HTML/Reference/Elements/input/time
Title: <input type="time">
Flaw count: 4

  • unknown:
    • Error opening /home/runner/work/translated-content/translated-content/files/pt-br/web/html/reference/elements/input/time/chrome-time.png: No such file or directory (os error 2)
    • Error opening /home/runner/work/translated-content/translated-content/files/pt-br/web/html/reference/elements/input/time/firefox-time.png: No such file or directory (os error 2)
    • Error opening /home/runner/work/translated-content/translated-content/files/pt-br/web/html/reference/elements/input/time/edge-time.png: No such file or directory (os error 2)
    • Error opening /home/runner/work/translated-content/translated-content/files/pt-br/web/html/reference/elements/input/time/chrome-android-time.png: No such file or directory (os error 2)
External URLs (2)

URL: /pt-BR/docs/Web/API/Web_components/Using_custom_elements
Title: Usando custom elements


URL: /pt-BR/docs/Web/API/XMLHttpRequest/send
Title: XMLHttpRequest.send()

@caugner
caugner marked this pull request as ready for review May 22, 2026 12:37
@caugner
caugner requested a review from a team as a code owner May 22, 2026 12:37
@caugner
caugner requested review from clovislima and removed request for a team May 22, 2026 12:37

@caugner caugner left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-approval, reviewed the changes, they look as expected.

@caugner
caugner merged commit 4352034 into main May 22, 2026
11 checks passed
@caugner
caugner deleted the migrate-domstring-usvstring-to-string-pt-br branch May 22, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

l10n-pt-br Issues related to Brazilian Portuguese

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant