Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Unified Diff: Source/core/html/HTMLAnchorElement.cpp

Issue 263353004: HTMLAnchorElement.text should not be readonly (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLAnchorElement.cpp
diff --git a/Source/core/html/HTMLAnchorElement.cpp b/Source/core/html/HTMLAnchorElement.cpp
index c9bf7fdf46487ca18fd55fadc7896deb0b6d5f1b..ed60c2176837cffc90d4b896dd5a8f9c51ad6543 100644
--- a/Source/core/html/HTMLAnchorElement.cpp
+++ b/Source/core/html/HTMLAnchorElement.cpp
@@ -337,6 +337,10 @@ AtomicString HTMLAnchorElement::target() const
return getAttribute(targetAttr);
}
+void HTMLAnchorElement::setText(const String& text)
+{
+ setTextContent(text);
+}
String HTMLAnchorElement::text()
{

Powered by Google App Engine
This is Rietveld 408576698