Bug 1245751 - Part 13: Add href in kURLAttributesSVG. draft
authorBoris Chiou <boris.chiou@gmail.com>
Tue, 19 Jul 2016 11:25:49 +0800
changeset 399954 fc575289e0dd50630dbf291ac3c9871225fdbde9
parent 399953 b77ed08e806e0626987c7dc5f110aed91f8125a5
child 399955 e748ca17851fd372dfe122bec3aee22e8ede2134
push id26045
push userbmo:boris.chiou@gmail.com
push dateFri, 12 Aug 2016 12:18:34 +0000
bugs1245751
milestone51.0a1
Bug 1245751 - Part 13: Add href in kURLAttributesSVG. MozReview-Commit-ID: IfUYXp1VKaz
dom/base/nsTreeSanitizer.cpp
--- a/dom/base/nsTreeSanitizer.cpp
+++ b/dom/base/nsTreeSanitizer.cpp
@@ -587,16 +587,17 @@ nsIAtom** const kAttributesSVG[] = {
   &nsGkAtoms::y2, // y2
   &nsGkAtoms::yChannelSelector, // yChannelSelector
   &nsGkAtoms::z, // z
   &nsGkAtoms::zoomAndPan, // zoomAndPan
   nullptr
 };
 
 nsIAtom** const kURLAttributesSVG[] = {
+  &nsGkAtoms::href,
   nullptr
 };
 
 nsIAtom** const kElementsMathML[] = {
    &nsGkAtoms::abs_, // abs
    &nsGkAtoms::_and, // and
    &nsGkAtoms::annotation_, // annotation
    &nsGkAtoms::annotation_xml_, // annotation-xml