diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-23 14:52:16 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-23 14:52:16 +0000 |
commit | 7572f371867ac8fd61963aced41382357d0e28f8 (patch) | |
tree | c1685be6dd885ac1d903dbf21f68c2cf8ba252ad /dom/base | |
parent | a680bdc637e0393aaa08d575c66f7166b788b443 (diff) | |
download | uxp-7572f371867ac8fd61963aced41382357d0e28f8.tar.gz |
Issue #1656 - Part 2: Unmangle some unfortunate UTF-8 victims.
The poor fellows got lost in an ASCII-interpretation of the world.
Diffstat (limited to 'dom/base')
-rw-r--r-- | dom/base/Element.cpp | 12 | ||||
-rw-r--r-- | dom/base/nsNodeUtils.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp index a9850a9aeb..940045ca70 100644 --- a/dom/base/Element.cpp +++ b/dom/base/Element.cpp @@ -1069,7 +1069,7 @@ ShadowRoot* Element::GetShadowRootByMode() const { /** - * 1. Let shadow be context object???s shadow root. + * 1. Let shadow be context object’s shadow root. * 2. If shadow is null or its mode is "closed", then return null. */ ShadowRoot* shadowRoot = GetShadowRoot(); @@ -1088,7 +1088,7 @@ already_AddRefed<ShadowRoot> Element::AttachShadow(const ShadowRootInit& aInit, ErrorResult& aError) { /** - * 1. If context object???s namespace is not the HTML namespace, + * 1. If context object’s namespace is not the HTML namespace, * then throw a "NotSupportedError" DOMException. */ if (!IsHTMLElement()) { @@ -1097,7 +1097,7 @@ Element::AttachShadow(const ShadowRootInit& aInit, ErrorResult& aError) } /** - * 2. If context object???s local name is not + * 2. If context object’s local name is not * a valid custom element name, "article", "aside", "blockquote", * "body", "div", "footer", "h1", "h2", "h3", "h4", "h5", "h6", * "header", "main" "nav", "p", "section", or "span", @@ -1181,8 +1181,8 @@ Element::AttachShadowInternal(bool aClosed, ErrorResult& aError) /** * 4. Let shadow be a new shadow root whose node document is - * context object???s node document, host is context object, - * and mode is init???s mode. + * context object’s node document, host is context object, + * and mode is init’s mode. */ RefPtr<ShadowRoot> shadowRoot = new ShadowRoot(this, aClosed, nodeInfo.forget(), protoBinding); @@ -1190,7 +1190,7 @@ Element::AttachShadowInternal(bool aClosed, ErrorResult& aError) shadowRoot->SetIsComposedDocParticipant(IsInComposedDoc()); /** - * 5. Set context object???s shadow root to shadow. + * 5. Set context object’s shadow root to shadow. */ SetShadowRoot(shadowRoot); diff --git a/dom/base/nsNodeUtils.cpp b/dom/base/nsNodeUtils.cpp index 5aaa13223a..7d31358487 100644 --- a/dom/base/nsNodeUtils.cpp +++ b/dom/base/nsNodeUtils.cpp @@ -540,7 +540,7 @@ nsNodeUtils::CloneAndAdopt(nsINode *aNode, bool aClone, bool aDeep, nsIDocument* newDoc = aNode->OwnerDoc(); if (newDoc) { if (CustomElementRegistry::IsCustomElementEnabled()) { - // Adopted callback must be enqueued whenever a node???s + // Adopted callback must be enqueued whenever a node’s // shadow-including inclusive descendants that is custom. Element* element = aNode->IsElement() ? aNode->AsElement() : nullptr; if (element) { |