From b9783c06657382caf2267a9a098ffa8e95a7f2ab Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Sat, 31 Jul 2021 09:33:29 -0400 Subject: remove link 'title' attributes that's just the 'href' (zh-cn, part 5) --- .../how_to_build_custom_form_controls/index.html | 2 +- files/zh-cn/web/api/beforeunloadevent/index.html | 2 +- files/zh-cn/web/api/blobbuilder/index.html | 2 +- .../api/eventtarget/addeventlistener/index.html | 4 +- .../web/api/globaleventhandlers/onload/index.html | 2 +- files/zh-cn/web/api/htmlfieldsetelement/index.html | 2 +- files/zh-cn/web/api/idbobjectstore/index.html | 2 +- .../zh-cn/web/api/navigation_timing_api/index.html | 2 +- files/zh-cn/web/api/svganimatedangle/index.html | 2 +- files/zh-cn/web/api/svgcircleelement/index.html | 2 +- files/zh-cn/web/api/touch/radiusy/index.html | 2 +- files/zh-cn/web/api/touch/screenx/index.html | 2 +- files/zh-cn/web/api/touch/screeny/index.html | 2 +- .../web/api/touchevent/changedtouches/index.html | 2 +- files/zh-cn/web/api/touchevent/index.html | 2 +- .../index.html | 2 +- .../structured_clone_algorithm/index.html | 2 +- .../web/api/webrtc_api/session_lifetime/index.html | 2 +- .../windoweventhandlers/onbeforeunload/index.html | 4 +- .../api/windoweventhandlers/onpopstate/index.html | 2 +- files/zh-cn/web/css/background-size/index.html | 2 +- files/zh-cn/web/css/text-rendering/index.html | 2 +- files/zh-cn/web/css/url()/index.html | 2 +- .../web/demos_of_open_web_technologies/index.html | 6 +-- files/zh-cn/web/html/element/a/index.html | 4 +- files/zh-cn/web/html/element/area/index.html | 2 +- files/zh-cn/web/html/element/col/index.html | 2 +- files/zh-cn/web/html/element/colgroup/index.html | 2 +- files/zh-cn/web/html/element/head/index.html | 2 +- files/zh-cn/web/html/element/input/index.html | 2 +- files/zh-cn/web/html/element/strong/index.html | 2 +- files/zh-cn/web/html/element/summary/index.html | 2 +- files/zh-cn/web/html/element/table/index.html | 2 +- files/zh-cn/web/html/element/time/index.html | 4 +- files/zh-cn/web/html/element/video/index.html | 4 +- .../html/global_attributes/data-_star_/index.html | 2 +- .../html/quirks_mode_and_standards_mode/index.html | 2 +- .../web/http/basics_of_http/data_uris/index.html | 2 +- .../list_of_default_accept_values/index.html | 14 +++---- files/zh-cn/web/http/cors/index.html | 6 +-- files/zh-cn/web/http/headers/index.html | 44 +++++++++++----------- .../web/http/headers/user-agent/firefox/index.html | 2 +- .../http/headers/x-dns-prefetch-control/index.html | 2 +- .../web/http/headers/x-frame-options/index.html | 6 +-- .../zh-cn/web/http/link_prefetching_faq/index.html | 6 +-- files/zh-cn/web/mathml/authoring/index.html | 2 +- .../responsive_design_building_blocks/index.html | 14 +++---- .../web/security/same-origin_policy/index.html | 6 +-- files/zh-cn/web/svg/attribute/mask/index.html | 2 +- files/zh-cn/web/svg/content_type/index.html | 4 +- 50 files changed, 99 insertions(+), 99 deletions(-) (limited to 'files/zh-cn') diff --git a/files/zh-cn/learn/forms/how_to_build_custom_form_controls/index.html b/files/zh-cn/learn/forms/how_to_build_custom_form_controls/index.html index 106badb508..0aace19c98 100644 --- a/files/zh-cn/learn/forms/how_to_build_custom_form_controls/index.html +++ b/files/zh-cn/learn/forms/how_to_build_custom_form_controls/index.html @@ -404,7 +404,7 @@ original_slug: Learn/HTML/Forms/How_to_build_custom_form_widgets

在我们将要构建的代码之中,我们将会使用标准的 DOM API 来完成我们所要做的所有工作。尽管 DOM API 在浏览器中得到了更好支持,但是在旧的浏览器上还是会出现问题。( 特别是非常老的 Internet Explorer)。

-

如果你想要避免旧浏览器带来的麻烦,这儿有两种解决方案:使用专门的框架,比如 jQuery, $dom, prototype, Dojo, YUI, 或者类似的框架,或者通过填充你想使用的缺失的特性 (这可以通过条件加载轻松完成——例如使用 yepnope 这样的库。

+

如果你想要避免旧浏览器带来的麻烦,这儿有两种解决方案:使用专门的框架,比如 jQuery, $dom, prototype, Dojo, YUI, 或者类似的框架,或者通过填充你想使用的缺失的特性 (这可以通过条件加载轻松完成——例如使用 yepnope 这样的库。

我们打算使用的特性如下所示(按照风险程度从高到低排列):

diff --git a/files/zh-cn/web/api/beforeunloadevent/index.html b/files/zh-cn/web/api/beforeunloadevent/index.html index 69626e0ec7..6063ef1282 100644 --- a/files/zh-cn/web/api/beforeunloadevent/index.html +++ b/files/zh-cn/web/api/beforeunloadevent/index.html @@ -67,5 +67,5 @@ window.addEventListener("beforeunload", function( event ) {
  • {{Event("load")}}
  • {{Event("beforeunload")}}
  • {{Event("unload")}}
  • -
  • 卸载文档 — 提示卸载文档
  • +
  • 卸载文档 — 提示卸载文档
  • diff --git a/files/zh-cn/web/api/blobbuilder/index.html b/files/zh-cn/web/api/blobbuilder/index.html index 03248ac1e5..1750cc61c1 100644 --- a/files/zh-cn/web/api/blobbuilder/index.html +++ b/files/zh-cn/web/api/blobbuilder/index.html @@ -162,7 +162,7 @@ void append(

    相关链接

    useCapture  {{optional_inline}}
    -
    {{jsxref("Boolean")}},在DOM树中,注册了listener的元素, 是否要先于它下面的EventTarget,调用该listener。 当useCapture(设为true) 时,沿着DOM树向上冒泡的事件,不会触发listener。当一个元素嵌套了另一个元素,并且两个元素都对同一事件注册了一个处理函数时,所发生的事件冒泡和事件捕获是两种不同的事件传播方式。事件传播模式决定了元素以哪个顺序接收事件。进一步的解释可以查看 事件流 及 JavaScript Event order 文档。 如果没有指定, useCapture 默认为 false 。 
    +
    {{jsxref("Boolean")}},在DOM树中,注册了listener的元素, 是否要先于它下面的EventTarget,调用该listener。 当useCapture(设为true) 时,沿着DOM树向上冒泡的事件,不会触发listener。当一个元素嵌套了另一个元素,并且两个元素都对同一事件注册了一个处理函数时,所发生的事件冒泡和事件捕获是两种不同的事件传播方式。事件传播模式决定了元素以哪个顺序接收事件。进一步的解释可以查看 事件流 及 JavaScript Event order 文档。 如果没有指定, useCapture 默认为 false 。 
    注意: 对于事件目标上的事件监听器来说,事件会处于“目标阶段”,而不是冒泡阶段或者捕获阶段。在目标阶段的事件会触发该元素(即事件目标)上的所有监听器,而不在乎这个监听器到底在注册时useCapture 参数值是true还是false。
    @@ -661,7 +661,7 @@ window.addEventListener('scroll', function(event) {
    diff --git a/files/zh-cn/web/api/globaleventhandlers/onload/index.html b/files/zh-cn/web/api/globaleventhandlers/onload/index.html index a9a56d9c6b..3862a1aa88 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onload/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onload/index.html @@ -66,7 +66,7 @@ translation_of: Web/API/GlobalEventHandlers/onload

    规范

    -

    这个事件处理程序在  HTML 中指定。

    +

    这个事件处理程序在  HTML 中指定。

    参见

    diff --git a/files/zh-cn/web/api/htmlfieldsetelement/index.html b/files/zh-cn/web/api/htmlfieldsetelement/index.html index 51b93938c5..97b7692640 100644 --- a/files/zh-cn/web/api/htmlfieldsetelement/index.html +++ b/files/zh-cn/web/api/htmlfieldsetelement/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/HTMLFieldSetElement ---

    {{ ApiRef() }}

    HTML Field Set Element

    -

    DOM fieldset elements expose the HTMLFieldSetElement  ({{ HTMLVersionInline(4) }} HTMLFieldSetElement) interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of field-set elements.

    +

    DOM fieldset elements expose the HTMLFieldSetElement  ({{ HTMLVersionInline(4) }} HTMLFieldSetElement) interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of field-set elements.

    属性

    以下属性除了 form 都是在 {{ HTMLVersionInline(5) }} 中新添加的.

    diff --git a/files/zh-cn/web/api/idbobjectstore/index.html b/files/zh-cn/web/api/idbobjectstore/index.html index 172820799e..62eb51e71f 100644 --- a/files/zh-cn/web/api/idbobjectstore/index.html +++ b/files/zh-cn/web/api/idbobjectstore/index.html @@ -342,7 +342,7 @@ translation_of: Web/API/IDBObjectStore
    IDBRequest
    -
    A request object on which subsequent events related to this operation are fired. As per spec the result of the Object Store Deletion Operation algorithm is undefined, so it's not possible to know if some records were actually deleted by looking at the request result.
    +
    A request object on which subsequent events related to this operation are fired. As per spec the result of the Object Store Deletion Operation algorithm is undefined, so it's not possible to know if some records were actually deleted by looking at the request result.
    Exceptions
    diff --git a/files/zh-cn/web/api/navigation_timing_api/index.html b/files/zh-cn/web/api/navigation_timing_api/index.html index a0cc8c3d75..243e3f5088 100644 --- a/files/zh-cn/web/api/navigation_timing_api/index.html +++ b/files/zh-cn/web/api/navigation_timing_api/index.html @@ -137,7 +137,7 @@ var pageLoadTime = perfData.loadEventEnd - perfData.navigationStart;

    规范

    浏览器兼容性

    diff --git a/files/zh-cn/web/api/svganimatedangle/index.html b/files/zh-cn/web/api/svganimatedangle/index.html index ff9a9edcd9..05955b7429 100644 --- a/files/zh-cn/web/api/svganimatedangle/index.html +++ b/files/zh-cn/web/api/svganimatedangle/index.html @@ -32,7 +32,7 @@ translation_of: Web/API/SVGAnimatedAngle - +
    Normative documentSVG 1.1 (2nd Edition)SVG 1.1 (2nd Edition)
    diff --git a/files/zh-cn/web/api/svgcircleelement/index.html b/files/zh-cn/web/api/svgcircleelement/index.html index e087961f10..a956d4ec03 100644 --- a/files/zh-cn/web/api/svgcircleelement/index.html +++ b/files/zh-cn/web/api/svgcircleelement/index.html @@ -41,7 +41,7 @@ translation_of: Web/API/SVGCircleElement 规范文档 - SVG 1.1 (2nd Edition) + SVG 1.1 (2nd Edition) diff --git a/files/zh-cn/web/api/touch/radiusy/index.html b/files/zh-cn/web/api/touch/radiusy/index.html index 2243af5c73..7e76c7b6c3 100644 --- a/files/zh-cn/web/api/touch/radiusy/index.html +++ b/files/zh-cn/web/api/touch/radiusy/index.html @@ -18,7 +18,7 @@ translation_of: Web/API/Touch/radiusY 能够包围用户和触摸平面的接触面的最小椭圆的垂直轴(Y轴)半径.

    标准定义

    -

    Touch Events Specification

    +

    Touch Events Specification

    相关链接

    {{htmlattrdef("hreflang")}}
    -
    该属性用于指定链接文档的人类语言。其仅提供建议,并没有内置的功能。hreflang 允许的值取决于HTML5 BCP47
    +
    该属性用于指定链接文档的人类语言。其仅提供建议,并没有内置的功能。hreflang 允许的值取决于HTML5 BCP47
    {{htmlattrdef("ping")}}
    包含一个以空格分隔的url列表,当跟随超链接时,将由浏览器(在后台)发送带有正文 PING 的 POST 请求。通常用于跟踪。
    @@ -118,7 +118,7 @@ translation_of: Web/HTML/Element/a

    过时的

    {{htmlattrdef("charset")}} {{obsoleteGeneric("inline","HTML5")}}
    -
    此属性定义链接资源的字符编码。该值是一个空格- 和/或逗号分隔的RFC 2045中定义的字符集列表。默认值是ISO-8859-1。 +
    此属性定义链接资源的字符编码。该值是一个空格- 和/或逗号分隔的RFC 2045中定义的字符集列表。默认值是ISO-8859-1。

    使用说明: 在 HTML5 中该属性已作废,不应使用。 为了实现其效果,使用HTTP content - type header的链接资源。

    diff --git a/files/zh-cn/web/html/element/area/index.html b/files/zh-cn/web/html/element/area/index.html index 0afb9521e6..62fe488405 100644 --- a/files/zh-cn/web/html/element/area/index.html +++ b/files/zh-cn/web/html/element/area/index.html @@ -49,7 +49,7 @@ translation_of: Web/HTML/Element/area
    {{htmlattrdef("hreflang")}} {{HTMLVersionInline("5")}}
    -
    指明链接资源的语言类型, 值的范围参考BCP47. 这个属性只能在指明href属性之后使用.
    +
    指明链接资源的语言类型, 值的范围参考BCP47. 这个属性只能在指明href属性之后使用.
    diff --git a/files/zh-cn/web/html/element/col/index.html b/files/zh-cn/web/html/element/col/index.html index 317a35f680..28eb2b5fb4 100644 --- a/files/zh-cn/web/html/element/col/index.html +++ b/files/zh-cn/web/html/element/col/index.html @@ -54,7 +54,7 @@ translation_of: Web/HTML/Element/col
    {{htmlattrdef("bgcolor")}} {{Non-standard_inline}}
    -
    定义列中对应的每个单元格的背景色。其值是 sRGB 定义的6位16进制代码之一,前缀为 '#'。 也可以使用以下16个预定义的颜色字符: +
    定义列中对应的每个单元格的背景色。其值是 sRGB 定义的6位16进制代码之一,前缀为 '#'。 也可以使用以下16个预定义的颜色字符: diff --git a/files/zh-cn/web/html/element/colgroup/index.html b/files/zh-cn/web/html/element/colgroup/index.html index 5ebaef5929..fc15883a37 100644 --- a/files/zh-cn/web/html/element/colgroup/index.html +++ b/files/zh-cn/web/html/element/colgroup/index.html @@ -85,7 +85,7 @@ translation_of: Web/HTML/Element/colgroup
    {{htmlattrdef("bgcolor")}} {{Non-standard_inline}}
    -
    这个属性用于定义列组中的每一个列成员的背景颜色。在 sRGB 的定义中,它是一个以 '#' 开头的 6 位 16 进制值,有 16 个预定义的表示颜色的字符串可以使用,如下所示: +
    这个属性用于定义列组中的每一个列成员的背景颜色。在 sRGB 的定义中,它是一个以 '#' 开头的 6 位 16 进制值,有 16 个预定义的表示颜色的字符串可以使用,如下所示:
    diff --git a/files/zh-cn/web/html/element/head/index.html b/files/zh-cn/web/html/element/head/index.html index 338521df1f..e2cc54a600 100644 --- a/files/zh-cn/web/html/element/head/index.html +++ b/files/zh-cn/web/html/element/head/index.html @@ -41,7 +41,7 @@ translation_of: Web/HTML/Element/head

    附注

    -

    如果在文档中忽略了 <head> 标签,则大部分浏览器会自动创建一个 <head> 元素。当然,有一些不会
    +

    如果在文档中忽略了 <head> 标签,则大部分浏览器会自动创建一个 <head> 元素。当然,有一些不会
    下面这些浏览器经测试不会自动创建一个 head 元素:Android <=1.6, iPhone <=3.1.3, Nokia 90, Opera <=9.27, and Safari <=3.2.1。

    规范

    diff --git a/files/zh-cn/web/html/element/input/index.html b/files/zh-cn/web/html/element/input/index.html index 6747278313..2c35a8ea74 100644 --- a/files/zh-cn/web/html/element/input/index.html +++ b/files/zh-cn/web/html/element/input/index.html @@ -578,7 +578,7 @@ translation_of: Web/HTML/Element/input

    When the form above is submitted, the input cause both the name / value pair of fruit=cherry and the dirname / direction pair of fruit.dir=ltr to be sent.

    {{ htmlattrdef("disabled") }}
    -
    这个布尔属性表示此表单控件不可用。 特别是在禁用的控件中, click 事件 将不会被分发 。 并且,禁用的控件的值在提交表单时也不会被提交。如果 type 属性为  hidden,此属性将被忽略。
    +
    这个布尔属性表示此表单控件不可用。 特别是在禁用的控件中, click 事件 将不会被分发 。 并且,禁用的控件的值在提交表单时也不会被提交。如果 type 属性为  hidden,此属性将被忽略。
    Note: Although not required by the specification, Firefox will by default persist the dynamic disabled state of an <input> across page loads. Use the {{htmlattrxref("autocomplete","input")}} attribute to control this feature.
    diff --git a/files/zh-cn/web/html/element/strong/index.html b/files/zh-cn/web/html/element/strong/index.html index 3c26687500..b630ce99f0 100644 --- a/files/zh-cn/web/html/element/strong/index.html +++ b/files/zh-cn/web/html/element/strong/index.html @@ -34,7 +34,7 @@ translation_of: Web/HTML/Element/strong - +
    规范文档HTML5, section 4.6.3; HTML 4.01, section 9.2.1HTML5, section 4.6.3; HTML 4.01, section 9.2.1
    diff --git a/files/zh-cn/web/html/element/summary/index.html b/files/zh-cn/web/html/element/summary/index.html index eb18e10ed3..c959270b5d 100644 --- a/files/zh-cn/web/html/element/summary/index.html +++ b/files/zh-cn/web/html/element/summary/index.html @@ -30,7 +30,7 @@ translation_of: Web/HTML/Element/summary 文档规范 - HTML5, section 4.11.2 + HTML5, section 4.11.2 diff --git a/files/zh-cn/web/html/element/table/index.html b/files/zh-cn/web/html/element/table/index.html index 8511032381..ac7c7d5d12 100644 --- a/files/zh-cn/web/html/element/table/index.html +++ b/files/zh-cn/web/html/element/table/index.html @@ -91,7 +91,7 @@ translation_of: Web/HTML/Element/table
    {{htmlattrdef("bgcolor")}} {{Deprecated_inline}}
    -
    这个属性定义了表格的背景颜色。 它是一个6位的十六进制编码,定义于 sRGB,需要加上'#'作为前缀。 当然也可以使用下面已经被预先定义的字符串,来表示常用的16种颜色: +
    这个属性定义了表格的背景颜色。 它是一个6位的十六进制编码,定义于 sRGB,需要加上'#'作为前缀。 当然也可以使用下面已经被预先定义的字符串,来表示常用的16种颜色: diff --git a/files/zh-cn/web/html/element/time/index.html b/files/zh-cn/web/html/element/time/index.html index 3679df8d0f..0e5b97e110 100644 --- a/files/zh-cn/web/html/element/time/index.html +++ b/files/zh-cn/web/html/element/time/index.html @@ -35,7 +35,7 @@ translation_of: Web/HTML/Element/time - +
    标准文档HTML5, section 4.6.10HTML5, section 4.6.10
    @@ -46,7 +46,7 @@ translation_of: Web/HTML/Element/time
    {{ htmlattrdef("datetime") }}
    -
    该属性表示此元素的时间和日期,并且属性值必须是一个有效的日期格式,并可包含时间。 如果此值不能被解析为日期,元素不会有一个关联的时间戳.
    +
    该属性表示此元素的时间和日期,并且属性值必须是一个有效的日期格式,并可包含时间。 如果此值不能被解析为日期,元素不会有一个关联的时间戳.
    {{ htmlattrdef("pubdate") }}
    (该属性仍在被WHATWG 和 W3C组织设计和讨论中.) This Boolean attribute specifies that the date and time given by the element is the publication date of a document. The document it applies to is either the nearest ancestor article element or the document as a whole (if there is no ancestor article element). If true, the time element must have a corresponding date. Additionally, each time element indicating a publication date must be the only time element that does so for that document.
    diff --git a/files/zh-cn/web/html/element/video/index.html b/files/zh-cn/web/html/element/video/index.html index 544f902feb..dbaa58d81c 100644 --- a/files/zh-cn/web/html/element/video/index.html +++ b/files/zh-cn/web/html/element/video/index.html @@ -71,7 +71,7 @@ translation_of: Web/HTML/Element/video 规范文档 - HTML5, 4.8.6节 + HTML5, 4.8.6节 @@ -283,7 +283,7 @@ AddType video/ogg .ogg
  • 用canvas操作video
  • nsIDOMHTMLMediaElement
  • TinyVid - 在HTML5中使用ogg文件的例子。
  • -
  • video 元素 (HTML5 规范)
  • +
  • video 元素 (HTML5 规范)
  • Ogg 格式媒体文件的服务器配置
  • diff --git a/files/zh-cn/web/html/global_attributes/data-_star_/index.html b/files/zh-cn/web/html/global_attributes/data-_star_/index.html index ed5adaae8f..091b601686 100644 --- a/files/zh-cn/web/html/global_attributes/data-_star_/index.html +++ b/files/zh-cn/web/html/global_attributes/data-_star_/index.html @@ -12,7 +12,7 @@ translation_of: Web/HTML/Global_attributes/data-*
    {{EmbedInteractiveExample("pages/tabbed/attribute-data.html","tabbed-standard")}}
    -

    所有这些自定义数据属性都可以通过所属元素的 {{domxref("HTMLElement")}} 接口来访问。  {{domxref("HTMLElement.dataset")}} 属性可以访问它们。 * 可以使用遵循 xml名称生产规则 的任何名称来被替换,并具有以下限制:

    +

    所有这些自定义数据属性都可以通过所属元素的 {{domxref("HTMLElement")}} 接口来访问。  {{domxref("HTMLElement.dataset")}} 属性可以访问它们。 * 可以使用遵循 xml名称生产规则 的任何名称来被替换,并具有以下限制:

    • 该名称不能以xml开头,无论这些字母是大写还是小写;
    • diff --git a/files/zh-cn/web/html/quirks_mode_and_standards_mode/index.html b/files/zh-cn/web/html/quirks_mode_and_standards_mode/index.html index 6ea0826b47..c726d21f1d 100644 --- a/files/zh-cn/web/html/quirks_mode_and_standards_mode/index.html +++ b/files/zh-cn/web/html/quirks_mode_and_standards_mode/index.html @@ -31,7 +31,7 @@ translation_of: Web/HTML/Quirks_Mode_and_Standards_Mode

      在 HTML5 中,DOCTYPE 唯一的作用是启用标准模式。更早期的 HTML 标准中,DOCTYPE 会附加其他意义,但没有任何浏览器会将 DOCTYPE 用于怪异模式和标准模式之间互换以外的用途。

      -

      另请参阅 when different browsers choose various modes 的详细说明。

      +

      另请参阅 when different browsers choose various modes 的详细说明。

      XHTML

      diff --git a/files/zh-cn/web/http/basics_of_http/data_uris/index.html b/files/zh-cn/web/http/basics_of_http/data_uris/index.html index 1373bc29dc..00c69d644e 100644 --- a/files/zh-cn/web/http/basics_of_http/data_uris/index.html +++ b/files/zh-cn/web/http/basics_of_http/data_uris/index.html @@ -68,7 +68,7 @@ YSBzbGlnaHRseSBsb25nZXIgdGVzdCBmb3IgdGV2ZXIK
      语法
      data URLs 的格式很简单,但很容易会忘记把逗号加在 "data" 协议名后面,在对数据进行 base64 编码时也很容易发生错误。
      HTML代码格式化
      -
      一个 data URL 是一个文件中的文件,相对于文档来说这个文件可能就非常的长。因为 data URL 也是 URL,所以 data 会用空白符(换行符, 制表符, 空格)来对它进行格式化。但如果数据是经过 base64 编码的,就可能会遇到一些问题
      +
      一个 data URL 是一个文件中的文件,相对于文档来说这个文件可能就非常的长。因为 data URL 也是 URL,所以 data 会用空白符(换行符, 制表符, 空格)来对它进行格式化。但如果数据是经过 base64 编码的,就可能会遇到一些问题
      长度限制
      虽然 Firefox 支持无限长度的 data URLs,但是标准中并没有规定浏览器必须支持任意长度的 data URIs。比如,Opera 11浏览器限制 URLs 最长为 65535 个字符,这意味着 data URLs 最长为 65529 个字符(如果你使用纯文本 data:, 而不是指定一个 MIME 类型的话,那么 65529 字符长度是编码后的长度,而不是源文件)。
      缺乏错误处理
      diff --git a/files/zh-cn/web/http/content_negotiation/list_of_default_accept_values/index.html b/files/zh-cn/web/http/content_negotiation/list_of_default_accept_values/index.html index 0da28e9bf9..3b7288d8fc 100644 --- a/files/zh-cn/web/http/content_negotiation/list_of_default_accept_values/index.html +++ b/files/zh-cn/web/http/content_negotiation/list_of_default_accept_values/index.html @@ -42,7 +42,7 @@ original_slug: Web/HTTP/Content_negotiation/Accept_默认值 Internet Explorer 8 image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, application/msword, */* -  请参见 IE and the Accept Header (IEInternals' MSDN blog). +  请参见 IE and the Accept Header (IEInternals' MSDN blog). Edge @@ -87,12 +87,12 @@ original_slug: Web/HTTP/Content_negotiation/Accept_默认值 Internet Explorer 8 及更早版本 */* -  请参见 IE and the Accept Header (IEInternals' MSDN blog) +  请参见 IE and the Accept Header (IEInternals' MSDN blog) Internet Explorer 9 image/png,image/svg+xml,image/*;q=0.8, */*;q=0.5 - 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) + 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) @@ -189,12 +189,12 @@ original_slug: Web/HTTP/Content_negotiation/Accept_默认值 Internet Explorer 8 及更早版本 */* - 请参见 IE and the Accept Header (IEInternals' MSDN blog) + 请参见 IE and the Accept Header (IEInternals' MSDN blog) Internet Explorer 9 application/javascript, */*;q=0.8 - 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) + 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) @@ -223,12 +223,12 @@ original_slug: Web/HTTP/Content_negotiation/Accept_默认值 Internet Explorer 8 及更早版本 */* - 请参见 IE and the Accept Header (IEInternals' MSDN blog) + 请参见 IE and the Accept Header (IEInternals' MSDN blog) Internet Explorer 9 text/css - 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) + 请参见 Fiddler is better with Internet Explorer 9 (IEInternals' MSDN blog) Chrome 12 diff --git a/files/zh-cn/web/http/cors/index.html b/files/zh-cn/web/http/cors/index.html index 80755243d5..cdd058c212 100644 --- a/files/zh-cn/web/http/cors/index.html +++ b/files/zh-cn/web/http/cors/index.html @@ -36,11 +36,11 @@ original_slug: Web/HTTP/Access_control_CORS

      什么情况下需要 CORS ?

      -

      这份 cross-origin sharing standard 允许在下列场景中使用跨站点 HTTP 请求:

      +

      这份 cross-origin sharing standard 允许在下列场景中使用跨站点 HTTP 请求:

      @@ -258,7 +258,7 @@ Access-Control-Allow-Methods: POST, GET, OPTIONS Access-Control-Allow-Headers: X-PINGOTHER, Content-Type Access-Control-Max-Age: 86400 -

      首部字段 Access-Control-Allow-Methods 表明服务器允许客户端使用 POST, GET OPTIONS 方法发起请求。该字段与 HTTP/1.1 Allow: response header 类似,但仅限于在需要访问控制的场景中使用。

      +

      首部字段 Access-Control-Allow-Methods 表明服务器允许客户端使用 POST, GET OPTIONS 方法发起请求。该字段与 HTTP/1.1 Allow: response header 类似,但仅限于在需要访问控制的场景中使用。

      首部字段 Access-Control-Allow-Headers 表明服务器允许请求中携带字段 X-PINGOTHER Content-Type Access-Control-Allow-Methods 一样,Access-Control-Allow-Headers 的值为逗号分割的列表。

      diff --git a/files/zh-cn/web/http/headers/index.html b/files/zh-cn/web/http/headers/index.html index 8a7cdd0e13..e23e0b0ac6 100644 --- a/files/zh-cn/web/http/headers/index.html +++ b/files/zh-cn/web/http/headers/index.html @@ -9,7 +9,7 @@ translation_of: Web/HTTP/Headers

      HTTP 消息头允许客户端和服务器通过 request response传递附加信息。一个请求头由名称(不区分大小写)后跟一个冒号“:”,冒号后跟具体的值(不带换行符)组成。该值前面的引导空白会被忽略。

      -

      自定专用消息头可通过'X-' 前缀来添加;但是这种用法被IETF在2012年6月发布的 RFC6648 中明确弃用,原因是其会在非标准字段成为标准时造成不便;其他的消息头在 IANA 注册表 中列出, 其原始内容在 RFC 4229 中定义。 此外,IANA 还维护着被提议的新HTTP 消息头注册表.

      +

      自定专用消息头可通过'X-' 前缀来添加;但是这种用法被IETF在2012年6月发布的 RFC6648 中明确弃用,原因是其会在非标准字段成为标准时造成不便;其他的消息头在 IANA 注册表 中列出, 其原始内容在 RFC 4229 中定义。 此外,IANA 还维护着被提议的新HTTP 消息头注册表.

      根据不同上下文,可将消息头分为:

      @@ -88,49 +88,49 @@ translation_of: Web/HTTP/Headers Access-Control-Allow-Credentials HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Allow-Origin HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Allow-Methods HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Allow-Headers HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Max-Age HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Expose-Headers HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("2") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Request-Method HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Access-Control-Request-Headers HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - W3C Cross-Origin Resource Sharing + W3C Cross-Origin Resource Sharing Age @@ -220,7 +220,7 @@ translation_of: Web/HTTP/Headers Cookie - RFC 2109 + RFC 2109 DNT @@ -298,7 +298,7 @@ translation_of: Web/HTTP/Headers Last-Event-ID 给出服务器在先前HTTP连接上接收的最后事件的ID。用于同步文本/事件流。 Server-Sent Events - Server-Sent Events spec + Server-Sent Events spec Last-Modified @@ -315,7 +315,7 @@ translation_of: Web/HTTP/Headers

      For the rel=prefetch case, see Link Prefetching FAQ

      -

      Introduced in HTTP 1.1's RFC 2068, section 19.6.2.4, it was removed in the final HTTP 1.1 spec, then reintroduced, with some extensions, in RFC 5988

      +

      Introduced in HTTP 1.1's RFC 2068, section 19.6.2.4, it was removed in the final HTTP 1.1 spec, then reintroduced, with some extensions, in RFC 5988

      @@ -340,7 +340,7 @@ translation_of: Web/HTTP/Headers Origin HTTP Access Control and Server Side Access Control{{ gecko_minversion_inline("1.9.1") }} - More recently defined in the Fetch spec (see Fetch API.) Originally defined in W3C Cross-Origin Resource Sharing + More recently defined in the Fetch spec (see Fetch API.) Originally defined in W3C Cross-Origin Resource Sharing Pragma @@ -384,31 +384,31 @@ translation_of: Web/HTTP/Headers Sec-Websocket-Extensions -  Websockets +  Websockets Sec-Websocket-Key -  Websockets +  Websockets Sec-Websocket-Origin -  Websockets +  Websockets Sec-Websocket-Protocol -  Websockets +  Websockets Sec-Websocket-Version -  Websockets +  Websockets Server @@ -420,19 +420,19 @@ translation_of: Web/HTTP/Headers Set-Cookie - RFC 2109 + RFC 2109 Set-Cookie2 - RFC 2965 + RFC 2965 Strict-Transport-Security HTTP Strict Transport Security - IETF reference + IETF reference TCN @@ -452,7 +452,7 @@ translation_of: Web/HTTP/Headers

      列出将在消息正文之后在尾部块中传输的头。这允许服务器计算一些值,如Content-MD5:在传输数据时。请注意,Trailer:标头不得列出Content-Length :, Trailer:或Transfer-Encoding:headers。

      - RFC 2616, §14.40 + RFC 2616, §14.40 Transfer-Encoding diff --git a/files/zh-cn/web/http/headers/user-agent/firefox/index.html b/files/zh-cn/web/http/headers/user-agent/firefox/index.html index 284ff8599a..2e70d22e31 100644 --- a/files/zh-cn/web/http/headers/user-agent/firefox/index.html +++ b/files/zh-cn/web/http/headers/user-agent/firefox/index.html @@ -344,7 +344,7 @@ Mozilla/5.0 (Android 4.4; Tablet; rv:41.0) Gecko/41.0 Firefox/4

      参见

        -
      • Firefox OS User Agent (参考博客文章以及 bug 777710
      • +
      • Firefox OS User Agent (参考博客文章以及 bug 777710
      • Firefox 4 的最终 User Agent(博客文章)
      • 检测UA字符串以获得跨浏览器支持
      • window.navigator.userAgent
      • diff --git a/files/zh-cn/web/http/headers/x-dns-prefetch-control/index.html b/files/zh-cn/web/http/headers/x-dns-prefetch-control/index.html index fa88398051..5cec7c1430 100644 --- a/files/zh-cn/web/http/headers/x-dns-prefetch-control/index.html +++ b/files/zh-cn/web/http/headers/x-dns-prefetch-control/index.html @@ -75,7 +75,7 @@ X-DNS-Prefetch-Control: off
        <link rel="dns-prefetch" href="http://www.spreadfirefox.com/">
         
        -

        在这个例子中,Firefox 将预解析域名"www.spreadfirefox.com"。

        +

        在这个例子中,Firefox 将预解析域名"www.spreadfirefox.com"。

        而且,{{ HTMLElement("link") }} 元素也可以使用不完整的 URL 的主机名来标记预解析,但这些主机名前必需要有双斜线:

        diff --git a/files/zh-cn/web/http/headers/x-frame-options/index.html b/files/zh-cn/web/http/headers/x-frame-options/index.html index cbc5c27c07..9a50a060ff 100644 --- a/files/zh-cn/web/http/headers/x-frame-options/index.html +++ b/files/zh-cn/web/http/headers/x-frame-options/index.html @@ -154,7 +154,7 @@ app.use(frameguard({ action: 'sameorigin' })) diff --git a/files/zh-cn/web/http/link_prefetching_faq/index.html b/files/zh-cn/web/http/link_prefetching_faq/index.html index d930f142f0..7d2842221f 100644 --- a/files/zh-cn/web/http/link_prefetching_faq/index.html +++ b/files/zh-cn/web/http/link_prefetching_faq/index.html @@ -33,7 +33,7 @@ translation_of: Web/HTTP/Link_prefetching_FAQ
        <meta http-equiv="Link" content="</images/big.jpeg>; rel=prefetch">
         
        -

        Link: header 的格式在 RFC 5988 section 5 中有所描述。

        +

        Link: header 的格式在 RFC 5988 section 5 中有所描述。

        浏览器检查所有这些预取提示,并将每一个独立的请求排到队列之中,然后浏览器空闲时将对这些请求进行预取。每个页面都可以有多个预取提示,因为预取多个文档是合理的。例如,未来要访问的页面可能包含多张大图。

        @@ -55,7 +55,7 @@ translation_of: Web/HTTP/Link_prefetching_FAQ

        浏览器的空闲时间是如何确定的?

        -

        在目前(Moilla 1.2),空闲时间的确定是通过 nsIWebProgressListener API 实现的。我们在顶层 nsIWebProgress 对象 ("@mozilla.org/docloaderservice;1") 上附加了一个监听器。通过监听器,我们能够收到文档开始和停止的通知,从而将最后一个文档停止到下一个文档开始之间的间隔作为空闲时间的近似值。最后一个文档停止的通知大致会在顶层文档的 onLoad 方法即将被触发时发出。此时即是开始预取的时间点。如果一个子文档包含了预取提示,这些预取操作将会等到最顶层文档和其子文档完成加载后才会开始进行。

        +

        在目前(Moilla 1.2),空闲时间的确定是通过 nsIWebProgressListener API 实现的。我们在顶层 nsIWebProgress 对象 ("@mozilla.org/docloaderservice;1") 上附加了一个监听器。通过监听器,我们能够收到文档开始和停止的通知,从而将最后一个文档停止到下一个文档开始之间的间隔作为空闲时间的近似值。最后一个文档停止的通知大致会在顶层文档的 onLoad 方法即将被触发时发出。此时即是开始预取的时间点。如果一个子文档包含了预取提示,这些预取操作将会等到最顶层文档和其子文档完成加载后才会开始进行。

        @@ -112,7 +112,7 @@ translation_of: Web/HTTP/Link_prefetching_FAQ

        隐私问题

        -

        除了上面已经提到的引用和URL跟随含义外,预取通常会导致访问预取站点的cookie。 (例如,如果您使用google amazon,则google结果页面将预取www.amazon.com,从而导致amazon cookie来回发送。您可以在Firefox中阻止第三方cookie,请参参阅 Disabling third party cookies。)

        +

        除了上面已经提到的引用和URL跟随含义外,预取通常会导致访问预取站点的cookie。 (例如,如果您使用google amazon,则google结果页面将预取www.amazon.com,从而导致amazon cookie来回发送。您可以在Firefox中阻止第三方cookie,请参参阅 Disabling third party cookies。)

        关于...?

        diff --git a/files/zh-cn/web/mathml/authoring/index.html b/files/zh-cn/web/mathml/authoring/index.html index 96e7263797..17654f3f36 100644 --- a/files/zh-cn/web/mathml/authoring/index.html +++ b/files/zh-cn/web/mathml/authoring/index.html @@ -191,7 +191,7 @@ m|math { ... -

        LaTeXMathML is a similar script that allows to parse more LaTeX commands. The installation is similar: copy LaTeXMathML.js and LaTeXMathML.standardarticle.css, add links in the header of your document and the LaTeX content of your Web page marked by the "LaTeX" class will be automatically parsed and converted to HTML+MathML:

        +

        LaTeXMathML is a similar script that allows to parse more LaTeX commands. The installation is similar: copy LaTeXMathML.js and LaTeXMathML.standardarticle.css, add links in the header of your document and the LaTeX content of your Web page marked by the "LaTeX" class will be automatically parsed and converted to HTML+MathML:

        <head>
         ...
        diff --git a/files/zh-cn/web/progressive_web_apps/responsive/responsive_design_building_blocks/index.html b/files/zh-cn/web/progressive_web_apps/responsive/responsive_design_building_blocks/index.html
        index fa8fc121d3..37d5126d13 100644
        --- a/files/zh-cn/web/progressive_web_apps/responsive/responsive_design_building_blocks/index.html
        +++ b/files/zh-cn/web/progressive_web_apps/responsive/responsive_design_building_blocks/index.html
        @@ -26,7 +26,7 @@ translation_of: Web/Progressive_web_apps/Responsive/responsive_design_building_b
         

        We've written a simple-but-fun prototype for an application called Snapshot, which takes a video stream from your webcam (using {{domxref("navigator.getUserMedia", "getUserMedia()")}}) then allows you to capture stills from that video stream (using HTML5 {{HTMLElement("canvas")}}), and save them to a gallery. You can then view previously-captured images and delete them. Other articles will discuss the functionality in more detail, but here we're interested in the layout.

        -

        Note: You can find the Snapshot app on Github; check out the code and help improve it. You can also see Snapshot running live. Note that getUserMedia() is an experimental technology, which currently only works in Google Chrome and Firefox desktop. More functionality and a clean up of the styling of Snapshot are planned for a future date.

        +

        Note: You can find the Snapshot app on Github; check out the code and help improve it. You can also see Snapshot running live. Note that getUserMedia() is an experimental technology, which currently only works in Google Chrome and Firefox desktop. More functionality and a clean up of the styling of Snapshot are planned for a future date.

        Our desktop layout for Snapshot is three columns, containing the camera viewer, image capture view, and gallery, respectively.

        @@ -83,7 +83,7 @@ x-card:nth-child(3) { box-sizing: border-box; }
        -

        This basically means that {{cssxref("width")}} and {{cssxref("height")}} will now set the dimensions of an element all the way up to and including the border, not just the content. So if you set width: 40%, the box width will always be 40% of its parent, and any {{cssxref("padding")}} and {{cssxref("border")}} widths set on the box will be subtracted from the content width, not added to it. Very useful! Read more about this at * { Box-sizing: Border-box } FTW, by Paul Irish.

        +

        This basically means that {{cssxref("width")}} and {{cssxref("height")}} will now set the dimensions of an element all the way up to and including the border, not just the content. So if you set width: 40%, the box width will always be 40% of its parent, and any {{cssxref("padding")}} and {{cssxref("border")}} widths set on the box will be subtracted from the content width, not added to it. Very useful! Read more about this at * { Box-sizing: Border-box } FTW, by Paul Irish.

        Flexible replaced elements

        @@ -232,7 +232,7 @@ x-card:nth-child(3) {

        Last, we have used flex: 1; to make the buttons always take up the same proportion of space on the line. Let's have a look at the mobile layout, in the below image.

        -

        single column layout for mobile app view, with three buttons to navigate between cards, an image viewer, and a Save Picture button at the button.But there are more tricks up our sleeves for this mobile app layout! As mentioned above, we used Mozilla Brick, a collection of ready-rolled mobile UI components, in the making of the mobile app layout. In particular, we used the deck component for the nice transition effect between cards when the buttons are pressed. For more on using Brick, read Mozilla Brick: ready made UI components.

        +

        single column layout for mobile app view, with three buttons to navigate between cards, an image viewer, and a Save Picture button at the button.But there are more tricks up our sleeves for this mobile app layout! As mentioned above, we used Mozilla Brick, a collection of ready-rolled mobile UI components, in the making of the mobile app layout. In particular, we used the deck component for the nice transition effect between cards when the buttons are pressed. For more on using Brick, read Mozilla Brick: ready made UI components.

        What's more relevant to this article is that we didn't want the Brick CSS and JavaScript files being applied to the markup unless we were looking at the mobile app view. To achieve this, we applied the Brick CSS to the page using a separate {{HTMLElement("link")}} element with a media attribute:

        @@ -325,7 +325,7 @@ x-card:nth-child(3) {

        This causes our browser to render our mobile app layout properly — width=480 tells the browser "render this markup at 480 pixels wide", hence the media queries kick in appropriately. There are many more options available in the viewport meta tag, which you can read about in Using the viewport meta tag to control layout on mobile browsers.

        -

        Note: There is a spec called device adaptation, which defines the same functionality but in CSS, using a @viewport at-rule. This is probably a more logical place to put such information, but the spec is not as well supported as the viewport meta tag, therefore you should stick with that for now.

        +

        Note: There is a spec called device adaptation, which defines the same functionality but in CSS, using a @viewport at-rule. This is probably a more logical place to put such information, but the spec is not as well supported as the viewport meta tag, therefore you should stick with that for now.

        Responsive images/video

        @@ -364,7 +364,7 @@ x-card:nth-child(3) { } } -

        This looks rather complicated, but really it's not — we are providing a number of media query options, as at this time different browsers support different resolution media query types and even units. Brett Jankord has a good explanation at Cross Browser Retina/High Resolution Media Queries.

        +

        This looks rather complicated, but really it's not — we are providing a number of media query options, as at this time different browsers support different resolution media query types and even units. Brett Jankord has a good explanation at Cross Browser Retina/High Resolution Media Queries.

        <video>

        @@ -388,13 +388,13 @@ x-card:nth-child(3) {

        <img>

        -

        HTML images are a more difficult proposition. There is no mechanism inherent in HTML images for serving different image files dependent on viewport size, and, due to a number of irksome browser behavior realities, solutions are more difficult to hack together than you would imagine. There are currently some standards proposals in the works that would provide this — the W3C responsive images community group discussed this problem for ages and arrived at the <picture> element, which provides a similar markup structure to {{HTMLElement("video")}}, with {{HTMLElement("source")}} alternatives selectable via media query results. Another proposal, srcset, was put forward by Apple and takes a slightly different approach, instead providing a new srcset attribute for {{HTMLElement("img")}} inside which image references are placed along with "hints" that the browser can use to work out which image is most suitable to display given its viewport size, resolution, etc. These are not intended to be mutually exclusive.

        +

        HTML images are a more difficult proposition. There is no mechanism inherent in HTML images for serving different image files dependent on viewport size, and, due to a number of irksome browser behavior realities, solutions are more difficult to hack together than you would imagine. There are currently some standards proposals in the works that would provide this — the W3C responsive images community group discussed this problem for ages and arrived at the <picture> element, which provides a similar markup structure to {{HTMLElement("video")}}, with {{HTMLElement("source")}} alternatives selectable via media query results. Another proposal, srcset, was put forward by Apple and takes a slightly different approach, instead providing a new srcset attribute for {{HTMLElement("img")}} inside which image references are placed along with "hints" that the browser can use to work out which image is most suitable to display given its viewport size, resolution, etc. These are not intended to be mutually exclusive.

        This all sounds good. But those solutions are definitely not ready for production yet — both are in a very early stage of standardization, and have no support across browsers. Currently we have to rely on various polyfills and other solutions, none of which are perfect for all situations, so you need to decide which one is right for your particular situation. Some available solutions are as follows:

        HiSRC
        -
        A jQuery plugin that allows you to create small, medium, and large versions of an image, and then serves the appropriate one according to the browser's resolution and available network speed.
        +
        A jQuery plugin that allows you to create small, medium, and large versions of an image, and then serves the appropriate one according to the browser's resolution and available network speed.
        Mobify.js capturing
        A very clever technique from Mozilla that allows you to capture the source of the page before it's parsed. This way, you can swap out image src values with JavaScript depending on browser features, circumventing browser preloading issues. This is promising, but doesn't work very well across older browsers.
        Picturefill
        diff --git a/files/zh-cn/web/security/same-origin_policy/index.html b/files/zh-cn/web/security/same-origin_policy/index.html index 1e39d736b5..187de63a8d 100644 --- a/files/zh-cn/web/security/same-origin_policy/index.html +++ b/files/zh-cn/web/security/same-origin_policy/index.html @@ -111,7 +111,7 @@ translation_of: Web/Security/Same-origin_policy
        • <script src="..."></script> 标签嵌入跨域脚本。语法错误信息只能被同源脚本中捕捉到。
        • -
        • <link rel="stylesheet" href="..."> 标签嵌入CSS。由于CSS的松散的语法规则,CSS的跨域需要一个设置正确的 HTTP 头部 Content-Type 。不同浏览器有不同的限制: IEFirefoxChromeSafari (跳至CVE-2010-0051)部分 和 Opera
        • +
        • <link rel="stylesheet" href="..."> 标签嵌入CSS。由于CSS的松散的语法规则,CSS的跨域需要一个设置正确的 HTTP 头部 Content-Type 。不同浏览器有不同的限制: IEFirefoxChromeSafari (跳至CVE-2010-0051)部分 和 Opera
        • 通过 {{htmlelement("img")}} 展示的图片。支持的图片格式包括PNG,JPEG,GIF,BMP,SVG,...
        • 通过 {{htmlelement("video")}} 和 {{htmlelement("audio")}} 播放的多媒体资源。
        • 通过 <object>、 <embed> 和 <applet> 嵌入的插件。
        • @@ -133,7 +133,7 @@ translation_of: Web/Security/Same-origin_policy

          跨源脚本API访问

          -

          JavaScript 的 API 中,如 iframe.contentWindow {{domxref("window.parent")}}、{{domxref("window.open")}} 和 {{domxref("window.opener")}} 允许文档间直接相互引用。当两个文档的源不同时,这些引用方式将对 Window 和 Location对象的访问添加限制,如下两节所述。

          +

          JavaScript 的 API 中,如 iframe.contentWindow {{domxref("window.parent")}}、{{domxref("window.open")}} 和 {{domxref("window.opener")}} 允许文档间直接相互引用。当两个文档的源不同时,这些引用方式将对 Window 和 Location对象的访问添加限制,如下两节所述。

          为了能让不同源中文档进行交流,可以使用 {{domxref("window.postMessage")}}。

          @@ -257,7 +257,7 @@ translation_of: Web/Security/Same-origin_policy

          参见

          diff --git a/files/zh-cn/web/svg/attribute/mask/index.html b/files/zh-cn/web/svg/attribute/mask/index.html index d357ccf8a8..ff53cdecff 100644 --- a/files/zh-cn/web/svg/attribute/mask/index.html +++ b/files/zh-cn/web/svg/attribute/mask/index.html @@ -31,7 +31,7 @@ translation_of: Web/SVG/Attribute/mask 规范文档 - SVG 1.1 (2nd Edition) + SVG 1.1 (2nd Edition) diff --git a/files/zh-cn/web/svg/content_type/index.html b/files/zh-cn/web/svg/content_type/index.html index d8a28f6f80..e61998aefc 100644 --- a/files/zh-cn/web/svg/content_type/index.html +++ b/files/zh-cn/web/svg/content_type/index.html @@ -96,7 +96,7 @@ DIGIT ::= [0-9]

          基本类型<color>是一个CSS2兼容的规范,针对sRGB颜色空间的颜色。<color>应用在SVG的属性 {{SVGAttr("color")}} 上,也是属性{{SVGAttr("fill")}}、属性{{SVGAttr("stroke")}}、属性{{SVGAttr("stop-color")}}、属性 {{SVGAttr("flood-color")}}和属性{{SVGAttr("lighting-color")}}的定义的组成部分,<color>还提供了可选的基于ICC的颜色规范。

          -

          SVG支持所有的定义在CSS2句法和基本数据类型中的<color>供选择的句法,而且还支持CSS Color Module Level 3中的<color>句法(取决于编译器)。

          +

          SVG支持所有的定义在CSS2句法和基本数据类型中的<color>供选择的句法,而且还支持CSS Color Module Level 3中的<color>句法(取决于编译器)。

          一个<color>可以是一个关键词,或者一个数字化的RGB规范。

          @@ -111,7 +111,7 @@ DIGIT ::= [0-9] hexdigit ::= [0-9A-Fa-f] -

          在这里,color-keyword要于匹配列于CSS Color Module Level 3中的颜色关键词(大小写不敏感)中的一个,要么匹配列于对颜色的用户参考中的一个。

          +

          在这里,color-keyword要于匹配列于CSS Color Module Level 3中的颜色关键词(大小写不敏感)中的一个,要么匹配列于对颜色的用户参考中的一个。

          SVG DOM对<color>的定义,CSS中也做了同样的定义。SVG对颜色的扩展,包括指定基于ICC的颜色的能力,可以使用DOM接口{{domxref("SVGColor")}}来表现。

          -- cgit v1.2.3-54-g00ecf