Update to null safe package:html

Change-Id: I667efbe0f895628130bc695e96a7f95a991c2e9d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/181040
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
This commit is contained in:
Nate Bosch 2021-01-27 18:41:10 +00:00 committed by commit-bot@chromium.org
parent f5743e6c66
commit 6e1a0b08c7
6 changed files with 7 additions and 7 deletions

View file

@ -296,7 +296,7 @@
"name": "html",
"rootUri": "../third_party/pkg/html",
"packageUri": "lib/",
"languageVersion": "2.8"
"languageVersion": "2.12"
},
{
"name": "http",

2
DEPS
View file

@ -106,7 +106,7 @@ vars = {
"fixnum_rev": "16d3890c6dc82ca629659da1934e412292508bba",
"file_rev": "0e09370f581ab6388d46fda4cdab66638c0171a1",
"glob_rev": "7c0ef8d4fa086f6b185c4dd724b700e7d7ad8f79",
"html_rev": "7f31979303f916f2aabb9e2091950798abdd9ca1",
"html_rev": "00cd3c22dac0e68e6ed9e7e4945101aedb1b3109",
"http_io_rev": "2fa188caf7937e313026557713f7feffedd4978b",
"http_multi_server_rev" : "e8c8be7f15b4fb50757ff5bf29766721fbe24fe4",
"http_parser_rev": "5dd4d16693242049dfb43b5efa429fedbf932e98",

View file

@ -169,7 +169,7 @@ mixin HtmlMixin {
void dl(void Function() callback) => element('dl', {}, callback);
void dt(String cls, void Function() callback) =>
element('dt', {'class': cls}, callback);
void element(String name, Map<dynamic, String> attributes,
void element(String name, Map<Object, String> attributes,
[void Function() callback]);
void gray(void Function() callback) =>
element('span', {'style': 'color:#999999'}, callback);

View file

@ -169,7 +169,7 @@ abstract class HtmlMixin {
void dl(void Function() callback) => element('dl', {}, callback);
void dt(String cls, void Function() callback) =>
element('dt', {'class': cls}, callback);
void element(String name, Map<dynamic, String> attributes,
void element(String name, Map<Object, String> attributes,
[void Function() callback]);
void gray(void Function() callback) =>
element('span', {'style': 'color:#999999'}, callback);

View file

@ -51,7 +51,7 @@ bool isWhitespaceNode(dom.Node node) {
/// Create an HTML element with the given name, attributes, and child nodes.
dom.Element makeElement(
String name, Map<dynamic, String> attributes, List<dom.Node> children) {
String name, Map<Object, String> attributes, List<dom.Node> children) {
var result = dom.Element.tag(name);
result.attributes.addAll(attributes);
for (var child in children) {
@ -94,7 +94,7 @@ mixin HtmlGenerator {
/// Execute [callback], wrapping its output in an element with the given
/// [name] and [attributes].
void element(String name, Map<dynamic, String> attributes,
void element(String name, Map<Object, String> attributes,
[void Function()? callback]) {
add(makeElement(name, attributes, collectHtml(callback)));
}

View file

@ -482,7 +482,7 @@ abstract class HtmlCodeGenerator {
/// Execute [callback], wrapping its output in an element with the given
/// [name] and [attributes].
void element(String name, Map<dynamic, String> attributes,
void element(String name, Map<Object, String> attributes,
[void Function()? callback]) {
add(makeElement(name, attributes, collectHtml(callback)));
}