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

Unified Diff: pkg/third_party/html5lib/lib/dom.dart

Issue 165353002: fix accidental breaking changes in html5lib, deprecate instead (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/third_party/html5lib/CHANGELOG.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/third_party/html5lib/lib/dom.dart
diff --git a/pkg/third_party/html5lib/lib/dom.dart b/pkg/third_party/html5lib/lib/dom.dart
index 66fa1b364c74ff60c67b54e6d7784868bbbcc961..6fceb65acb602c2a140b8531a43c6a07dcb7b73d 100644
--- a/pkg/third_party/html5lib/lib/dom.dart
+++ b/pkg/third_party/html5lib/lib/dom.dart
@@ -154,6 +154,12 @@ abstract class Node {
int get nodeType;
+ /** *Deprecated* use [text], [Text.data] or [Comment.data]. */
+ @deprecated String get value => null;
+
+ /** *Deprecated* use [nodeType]. */
+ @deprecated int get $dom_nodeType => nodeType;
+
String get outerHtml {
var str = new StringBuffer();
_addOuterHtml(str);
@@ -433,6 +439,10 @@ class Text extends Node {
Text(this.data) : super(null);
+ /** *Deprecated* use [data]. */
+ @deprecated String get value => data;
+ @deprecated set value(String x) { data = x; }
+
int get nodeType => Node.TEXT_NODE;
String toString() => '"$data"';
« no previous file with comments | « pkg/third_party/html5lib/CHANGELOG.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698