Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
af331257
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
af331257
编写于
10月 24, 2014
作者:
H
Hixie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Specs: fix markdown in the markup spec
Review URL:
https://codereview.chromium.org/675853004
上级
420d715e
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
15 addition
and
15 deletion
+15
-15
specs/markup.md
specs/markup.md
+15
-15
未找到文件。
specs/markup.md
浏览文件 @
af331257
...
...
@@ -144,55 +144,55 @@ Sky Markup: Elements
The Sky language consists of very few elements, since it is expected
that everything of note would be provided by frameworks.
<import src="foo.sky">
```
<import
src=
"foo.sky"
>
```
- Downloads and imports foo.sky in the background.
<import src="foo.sky" as="foo">
```
<import
src=
"foo.sky"
as=
"foo"
>
```
- Downloads and imports foo.sky in the background, using "foo" as its
local name (see
<script>
).
local name (see
```
<script>
```
).
<template>
```
<
template
>
```
- The contents of the element aren't placed in the Element itself.
They are instead placed into a DocumentFragment that you can obtain
from the element's "content" attribute.
<script>
```
<
script
>
```
- Blocks until all previous imports have been loaded, then runs the
script, with either 'module' or 'application' as the first
argument, the exports of any imports that have "as" attributes at
this time passed in as subsequent arguments, and with "this" set to
null.
<style>
```
<
style
>
```
- Adds the contents to the document's styles.
<content>
<content select="...">
```
<
content
>
```
```
<
content
select
=
"
...
"
>
```
- In a shadow tree, acts as an insertion point for distributed nodes.
The select="" attribute gives the selector to use to pick the nodes
to place in this insertion point; it defaults to everything.
<shadow>
```
<
shadow
>
```
- In a shadow tree, acts as an insertion point for older shadow trees.
<img src="foo.bin">
```
<
img
src
=
"
foo.bin
"
>
```
- Sky fetches the bits for foo.bin, looks for a decoder for those
bits, and renders the bits that the decoder returns.
<iframe src="foo.bin">
```
<
iframe
src
=
"
foo.bin
"
>
```
- Sky tells mojo to open an application for foo.bin, and hands that
application a view so that the application can render appropriately.
<t>
- Within a
<t>
section, whitespace is not trimmed from the start and
```
<
t
>
```
- Within a
```
<
t
>
```
section, whitespace is not trimmed from the start and
end of text nodes by the parser.
TOOD(ianh): figure out if the authoring aesthetics of this are ok
<a href="foo.bin">
```
<
a
href
=
"
foo.bin
"
>
```
- A widget that, when invoked, causes mojo to open a new application
for "foo.bin".
<title>
```
<
title
>
```
-
Sets the contents as the document's title (as provided by Sky to
the view manager). (Actually just ensures that any time the element
is mutated, theTitleElement.ownerScope.ownerDocument.title is set
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录