Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
Fix undeclared symbol on kInvalidCharacterError
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwibrowser authored Oct 9, 2020
1 parent 226296f commit db91489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/blink/renderer/core/dom/element.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ bool Element::toggleAttribute(const AtomicString& qualified_name,
// an "InvalidCharacterError" DOMException.
if (!Document::IsValidName(qualified_name)) {
exception_state.ThrowDOMException(
DOMExceptionCode::kInvalidCharacterError,
kInvalidCharacterError,
"'" + qualified_name + "' is not a valid attribute name.");
return false;
}
Expand Down Expand Up @@ -1466,7 +1466,7 @@ bool Element::toggleAttribute(const AtomicString& qualified_name,
// an "InvalidCharacterError" DOMException.
if (!Document::IsValidName(qualified_name)) {
exception_state.ThrowDOMException(
DOMExceptionCode::kInvalidCharacterError,
kInvalidCharacterError,
"'" + qualified_name + "' is not a valid attribute name.");
return false;
}
Expand Down

0 comments on commit db91489

Please sign in to comment.