mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This has the following implications: - There's no createElement() function any more. If you want to create an element from script, you have to use its constructor. - There's no async element registration. The parser will block until all the imports are imported when you use a tag name of a custom element that hasn't been registered yet, in case one of the imports defines it. - If you try to construct a non-registered element in markup, it turns into an <error> element. - <div>, <span>, and <error> are new built-in elements. R=esprehn@chromium.org Review URL: https://codereview.chromium.org/695423004
The Sky Environment
The main files loaded by the Sky environment are Sky files, though they can refer to binary resources like images and fonts.
Sky files
Conventional MIME type: text/sky, though this type is neither
necessary nor sufficient to indicate that a file is a Sky file; only
the signature matters for type dispatch of Sky files.
Conventional extension: .sky
Signatures:
For application files, one of the following:
23 21 6d 6f 6a 6f 20 6d 6f 6a 6f 3a 73 6b 79 0a("#!mojo mojo:sky\n")23 21 6d 6f 6a 6f 20 6d 6f 6a 6f 3a 73 6b 79 0d("#!mojo mojo:sky\r")23 21 6d 6f 6a 6f 20 6d 6f 6a 6f 3a 73 6b 79 20("#!mojo mojo:sky")
For module files, one of the following:
53 4b 59 20 4d 4f 44 55 4c 45 0a("SKY MODULE\n")53 4b 59 20 4d 4f 44 55 4c 45 0d("SKY MODULE\r")53 4b 59 20 4d 4f 44 55 4c 45 20("SKY MODULE")