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

Side by Side Diff: sdk/lib/svg/dartium/svg_dartium.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/svg/dart2js/svg_dart2js.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library dart.dom.svg; 1 library dart.dom.svg;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:_internal' hide deprecated; 5 import 'dart:_internal' hide deprecated;
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:nativewrappers'; 8 import 'dart:nativewrappers';
9 import 'dart:_blink' as _blink; 9 import 'dart:_blink' as _blink;
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 5480 matching lines...) Expand 10 before | Expand all | Expand 10 after
5491 } 5491 }
5492 5492
5493 // Unsupported methods inherited from Element. 5493 // Unsupported methods inherited from Element.
5494 5494
5495 @DomName('Element.insertAdjacentText') 5495 @DomName('Element.insertAdjacentText')
5496 void insertAdjacentText(String where, String text) { 5496 void insertAdjacentText(String where, String text) {
5497 throw new UnsupportedError("Cannot invoke insertAdjacentText on SVG."); 5497 throw new UnsupportedError("Cannot invoke insertAdjacentText on SVG.");
5498 } 5498 }
5499 5499
5500 @DomName('Element.insertAdjacentHTML') 5500 @DomName('Element.insertAdjacentHTML')
5501 void insertAdjacentHtml(String where, String text) { 5501 void insertAdjacentHtml(String where, String text, {NodeValidator validator,
5502 NodeTreeSanitizer treeSanitizer}) {
5502 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG."); 5503 throw new UnsupportedError("Cannot invoke insertAdjacentHtml on SVG.");
5503 } 5504 }
5504 5505
5505 @DomName('Element.insertAdjacentHTML') 5506 @DomName('Element.insertAdjacentElement')
5506 Element insertAdjacentElement(String where, Element element) { 5507 Element insertAdjacentElement(String where, Element element) {
5507 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG."); 5508 throw new UnsupportedError("Cannot invoke insertAdjacentElement on SVG.");
5508 } 5509 }
5509 5510
5510 HtmlCollection get _children { 5511 HtmlCollection get _children {
5511 throw new UnsupportedError("Cannot get _children on SVG."); 5512 throw new UnsupportedError("Cannot get _children on SVG.");
5512 } 5513 }
5513 5514
5514 bool get isContentEditable => false; 5515 bool get isContentEditable => false;
5515 void click() { 5516 void click() {
(...skipping 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after
7521 @DocsEditable() 7522 @DocsEditable()
7522 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 7523 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
7523 /** 7524 /**
7524 * Constructor instantiated by the DOM when a custom element has been created. 7525 * Constructor instantiated by the DOM when a custom element has been created.
7525 * 7526 *
7526 * This can only be called by subclasses from their created constructor. 7527 * This can only be called by subclasses from their created constructor.
7527 */ 7528 */
7528 _SVGVKernElement.created() : super.created(); 7529 _SVGVKernElement.created() : super.created();
7529 7530
7530 } 7531 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698