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

Unified Diff: Source/core/dom/Element.cpp

Issue 301403002: Deprecate the Element.prefix setter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test 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/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 5d886fa4d6f12b01ebfc27af468349eaa6fbd69b..4c72b53bc9ded41494c17b6ae7df911d414db6cd 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1201,7 +1201,7 @@ String Element::nodeName() const
void Element::setPrefix(const AtomicString& prefix, ExceptionState& exceptionState)
{
- UseCounter::count(document(), UseCounter::ElementSetPrefix);
+ UseCounter::countDeprecation(document(), UseCounter::ElementSetPrefix);
if (!prefix.isEmpty() && !Document::isValidName(prefix)) {
exceptionState.throwDOMException(InvalidCharacterError, "The prefix '" + prefix + "' is not a valid name.");
« no previous file with comments | « LayoutTests/fast/dom/node-prefix-setter-namespace-exception-expected.txt ('k') | Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698