Bug 917598 - ISimpleDOMNode::innerHTML does not work on math elements, r=tbsaunde
authorAlexander Surkov <surkov.alexander@gmail.com>
Wed, 16 Oct 2013 23:10:55 -0400
changeset 151072 fb0bfd363a0fe57117c6f99f8667cc677195181e
parent 151071 18d72b85134557a949f6392e8ec86a73aa48a83c
child 151073 ee100983f9210e21d5030bbf176a9fe075f3ac14
push id35055
push usersurkov.alexander@gmail.com
push dateThu, 17 Oct 2013 03:11:07 +0000
treeherdermozilla-inbound@fb0bfd363a0f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs917598
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 917598 - ISimpleDOMNode::innerHTML does not work on math elements, r=tbsaunde
accessible/src/windows/sdn/sdnAccessible.cpp
--- a/accessible/src/windows/sdn/sdnAccessible.cpp
+++ b/accessible/src/windows/sdn/sdnAccessible.cpp
@@ -461,22 +461,21 @@ sdnAccessible::get_innerHTML(BSTR __RPC_
 
   if (!aInnerHTML)
     return E_INVALIDARG;
   *aInnerHTML = nullptr;
 
   if (IsDefunct())
     return CO_E_OBJNOTCONNECTED;
 
-  nsCOMPtr<nsIDOMHTMLElement> htmlElement = do_QueryInterface(mNode);
-  if (!htmlElement)
+  if (!mNode->IsElement())
     return S_FALSE;
 
   nsAutoString innerHTML;
-  htmlElement->GetInnerHTML(innerHTML);
+  mNode->AsElement()->GetInnerHTML(innerHTML);
   if (innerHTML.IsEmpty())
     return S_FALSE;
 
   *aInnerHTML = ::SysAllocStringLen(innerHTML.get(), innerHTML.Length());
   if (!*aInnerHTML)
     return E_OUTOFMEMORY;
 
   return S_OK;