1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-05 09:20:04 +00:00
dart-sdk/CHANGELOG.md
Stephen Adams aeaf82577e dart:html: Add Element.removeAttribute
- Improve `element.attributes.remove(name)` to compile to `element.removeAttribute(name)`.
- Improve `element.getNamespacedAttributes(namespace).remove(name)` to compile to
  `element.removeAttributeNS(namespace, name)`.
- Add removeAttribute[NS].
- Add hasAttriute[NS].
- Assert attribute names are not null to prevent conversion to "null"/"undefined".
- TODO: Assert values are not null to prevent conversion to "null"/"undefined".
- namespaceURI does not need checking since null and undefined map to 'no namespace'.

Fixes https://github.com/dart-lang/sdk/issues/35655

Change-Id: Ie5bee23c88e8fb92f9d46f29fdf4b7f3175a2aa3
Reviewed-on: https://dart-review.googlesource.com/c/90160
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
2019-01-18 19:06:24 +00:00

127 KiB

2.1.1-dev.XX.0

(Add new changes here, and they will be copied to the change section for the next dev version)

Language

Core library changes

dart:core

  • Made DateTime.parse() also recognize , as a valid decimal separator when parsing from a string. (Issue 35576)

dart:html

  • Added methods Element.removeAttribute, Element.removeAttributeNS, Element.hasAttribute and Element.hasAttributeNS. (Issue 35655).
  • Improved dart2js compilation of element.attributes.remove(name) to generate element.removeAttribute(name), so that there is no performance reason to migrate to the above methods.
  • Fixed a number of 'dart:html' P1 bugs:

    • Fixed HTML API's with callback typedef to correctly convert Dart function to JS function.
    • HttpStatus constants exposed in dart:html
    • Expose DomName ondblclick and dblclickEvent for Angular analyzer.
    • Fixed removeAll on classes Set should be Iterable