Bug 1245751 - Part 13: Add href in kURLAttributesSVG. draft
authorBoris Chiou <boris.chiou@gmail.com>
Tue, 19 Jul 2016 11:25:49 +0800
changeset 407864 5b9936110a070f4c6b6f48b130057484a9fd0b46
parent 407863 8250770d3bb22123a3a881fd8c2fa9a42841b1a5
child 407865 a074ed878638900157e00d431d694176f0490112
push id28064
push userbmo:boris.chiou@gmail.com
push dateWed, 31 Aug 2016 04:26:14 +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
@@ -588,16 +588,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