Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: sdk/lib/svg/dart2js/svg_dart2js.dart

Issue 1123173003: Another try at appendHtml and insertAdjacentHtml should be consistently sanitized (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * Scalable Vector Graphics: 2 * Scalable Vector Graphics:
3 * Two-dimensional vector graphics with support for events and animation. 3 * Two-dimensional vector graphics with support for events and animation.
4 * 4 *
5 * For details about the features and syntax of SVG, a W3C standard, 5 * For details about the features and syntax of SVG, a W3C standard,
6 * refer to the 6 * refer to the
7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). 7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/).
8 */ 8 */
9 library dart.dom.svg; 9 library dart.dom.svg;
10 10
(...skipping 4840 matching lines...) Expand 10 before | Expand all | Expand 10 after
4851 } 4851 }
4852 4852
4853 // Unsupported methods inherited from Element. 4853 // Unsupported methods inherited from Element.
4854 4854
4855 @DomName('Element.insertAdjacentText') 4855 @DomName('Element.insertAdjacentText')
4856 void insertAdjacentText(String where, String text) { 4856 void insertAdjacentText(String where, String text) {
4857 throw new UnsupportedError("Cannot invoke insertAdjacentText on SVG."); 4857 throw new UnsupportedError("Cannot invoke insertAdjacentText on SVG.");
4858 } 4858 }
4859 4859
4860 @DomName('Element.insertAdjacentHTML') 4860 @DomName('Element.insertAdjacentHTML')
4861 void insertAdjacentHtml(String where, String text) { 4861 void insertAdjacentHtml(String where, String text, {NodeValidator validator,
4862 NodeTreeSanitizer treeSanitizer}) {
4862 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); 4863 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG.");
4863 } 4864 }
4864 4865
4865 @DomName('Element.insertAdjacentHTML') 4866 @DomName('Element.insertAdjacentElement')
4866 Element insertAdjacentElement(String where, Element element) { 4867 Element insertAdjacentElement(String where, Element element) {
4867 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); 4868 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG.");
4868 } 4869 }
4869 4870
4870 HtmlCollection get _children { 4871 HtmlCollection get _children {
4871 throw new UnsupportedError("Cannot get _children on SVG."); 4872 throw new UnsupportedError("Cannot get _children on SVG.");
4872 } 4873 }
4873 4874
4874 bool get isContentEditable => false; 4875 bool get isContentEditable => false;
4875 void click() { 4876 void click() {
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
6797 @DomName('SVGVKernElement.SVGVKernElement') 6798 @DomName('SVGVKernElement.SVGVKernElement')
6798 @DocsEditable() 6799 @DocsEditable()
6799 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 6800 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
6800 /** 6801 /**
6801 * Constructor instantiated by the DOM when a custom element has been created. 6802 * Constructor instantiated by the DOM when a custom element has been created.
6802 * 6803 *
6803 * This can only be called by subclasses from their created constructor. 6804 * This can only be called by subclasses from their created constructor.
6804 */ 6805 */
6805 _SVGVKernElement.created() : super.created(); 6806 _SVGVKernElement.created() : super.created();
6806 } 6807 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698