summaryrefslogtreecommitdiffstats
path: root/dom/html/HTMLAnchorElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/HTMLAnchorElement.h')
-rw-r--r--dom/html/HTMLAnchorElement.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/dom/html/HTMLAnchorElement.h b/dom/html/HTMLAnchorElement.h
index 4d89c6a75b..88669549e3 100644
--- a/dom/html/HTMLAnchorElement.h
+++ b/dom/html/HTMLAnchorElement.h
@@ -68,11 +68,11 @@ class HTMLAnchorElement final : public nsGenericHTMLElement,
// WebIDL API
- void GetHref(nsAString& aValue) const {
+ void GetHref(nsACString& aValue) const {
GetURIAttr(nsGkAtoms::href, nullptr, aValue);
}
- void SetHref(const nsAString& aValue, mozilla::ErrorResult& rv) {
- SetHTMLAttr(nsGkAtoms::href, aValue, rv);
+ void SetHref(const nsACString& aValue, ErrorResult& aRv) {
+ SetHTMLAttr(nsGkAtoms::href, NS_ConvertUTF8toUTF16(aValue), aRv);
}
void GetTarget(nsAString& aValue) const;
void SetTarget(const nsAString& aValue, mozilla::ErrorResult& rv) {
@@ -180,8 +180,6 @@ class HTMLAnchorElement final : public nsGenericHTMLElement,
void SetShape(const nsAString& aValue, mozilla::ErrorResult& rv) {
SetHTMLAttr(nsGkAtoms::shape, aValue, rv);
}
- void Stringify(nsAString& aResult) const { GetHref(aResult); }
- void ToString(nsAString& aSource) const { GetHref(aSource); }
void NodeInfoChanged(Document* aOldDoc) final {
ClearHasPendingLinkUpdate();