Bug 740811. Make SVGElement.prototype be Element.prototype again. r=peterv, a=akeybl

This commit is contained in:
Boris Zbarsky 2012-04-20 21:44:35 -04:00
parent 8d6a060fd5
commit d1a2ce74b8
3 changed files with 29 additions and 1 deletions

View File

@ -3622,7 +3622,7 @@ nsDOMClassInfo::Init()
DOM_CLASSINFO_SVG_TEXT_CONTENT_ELEMENT_MAP_ENTRIES
DOM_CLASSINFO_MAP_END
DOM_CLASSINFO_MAP_BEGIN_NO_CLASS_IF(SVGUnknownElement, nsIDOMSVGElement)
DOM_CLASSINFO_MAP_BEGIN(SVGUnknownElement, nsIDOMSVGElement)
DOM_CLASSINFO_SVG_ELEMENT_MAP_ENTRIES
DOM_CLASSINFO_MAP_END

View File

@ -156,6 +156,7 @@ _TEST_FILES = \
test_onerror_message.html \
test_bug735237.html \
test_bug739038.html \
test_bug740811.html \
$(NULL)
libs:: $(_TEST_FILES)

View File

@ -0,0 +1,27 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=740811
-->
<head>
<meta charset="utf-8">
<title>Test for Bug 740811</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=740811">Mozilla Bug 740811</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">
/** Test for Bug 740811 **/
is(Object.getPrototypeOf(SVGElement.prototype), Element.prototype,
"Bogus proto for SVGElement");
</script>
</pre>
</body>
</html>